API umbrella — one Hono Worker at api.oriz.in
API umbrella — one Hono Worker
Shape
api.oriz.in is a single Cloudflare Worker running Hono, checked in at apps/api/ (inline in the master repo, not a submodule). Every API route in the family lives there as apps/api/src/routes/<service>/. wrangler.jsonc declares custom_domain: api.oriz.in. The Worker exports type AppType = typeof app from src/index.ts.
Routes layout
routes/contact.ts— contact-form relayroutes/recaptcha.ts— reCAPTCHA verifyroutes/razorpay/— Razorpay webhooks + order creationroutes/firestore/— Firestore wrappersroutes/turso/— Turso warm-cache readsroutes/auth/— Firebase Auth verify, cross-site session check
Edge-compatible libs (Worker-only)
- Firestore:
firebase-rest-firestore(NOTfirebase-admin— needs gRPC) - Turso:
@tursodatabase/serverless - Firebase Auth verify:
firebase-auth-cloudflare-workers+@hono/firebase-auth - reCAPTCHA verify: plain
fetch
Cross-refs
- Why we picked this shape ? [[decisions/compute/hono-worker-api-umbrella]]
- Type-safe RPC clients ? [[architecture/hono-rpc-type-sharing]]
- Routes-per-service convention ? [[architecture/api-routes-structure]]