All product workers

Customer API

swarm-api

Multi-tenant Hono API: tenants, API keys, content, and queue producers.

Exposes HTTP routes for the Swarm product API (D1, KV, Queues). Deploy separately and point a custom domain or workers.dev; connect Pages or clients via fetch once deployed.

Source

Path
apps/api
Entry
src/index.ts
Config
wrangler.jsonc

Bindings (summary)

  • DB (D1)
  • KV
  • QUEUE (producer)
  • vars.ENVIRONMENT

Set real IDs, buckets, and secrets in the Cloudflare dashboard or via wrangler secret put to match this repo’s wrangler file.

Commands

cd apps/api && npm run dev
cd apps/api && npm run deploy