mirror of
https://github.com/hanzoai/catalog.git
synced 2026-10-30 18:46:06 +00:00
Serves the public read-only catalog (models, pricing, plans; extensible via src/registry.js) from a Cloudflare Worker at catalog.hanzo.ai, so cloud-api can drop AUTH_PUBLIC_PATHS and be fully authenticated. Serving order (never empty): Cache API -> KV -> origin (pricing.hanzo.ai) read-through -> bundled snapshot. Daily cron refreshes KV + warms the edge. Authorization-bearing requests are proxied to authed cloud-api (auth-branch).
16 lines
419 B
JSON
16 lines
419 B
JSON
{
|
|
"name": "hanzo-public-catalog",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Cloudflare edge-cached, daily-refreshed public read-only catalog (models, pricing, plans) for Hanzo.",
|
|
"scripts": {
|
|
"test": "node --test 'test/*.test.mjs'",
|
|
"snapshot": "node scripts/snapshot.mjs",
|
|
"dev": "wrangler dev",
|
|
"deploy": "wrangler deploy"
|
|
},
|
|
"devDependencies": {
|
|
"wrangler": "^4.0.0"
|
|
}
|
|
}
|