← knowledge.oriz.in

One Hono Worker at api.oriz.in is the entire API layer

decision apicloudflarehonoworkersarchitecture

One Hono Worker at api.oriz.in is the entire API layer

Decision

The family runs ONE Cloudflare Hono Worker at api.oriz.in, checked in at apps/api/ in the master repo. All 11+ sites and every extension hit it for: Razorpay webhooks, contact-form relay, reCAPTCHA verify, cross-site session check, Firestore wrappers, Turso warm-cache reads, Firebase Auth verify.

Why

Cloudflare's own docs say: "if the logic is used by more than one application, Pages Functions would not be a good use case." Pages Functions can't use Cloudflare Secrets Store, and splitting the same auth / CORS / reCAPTCHA verification across 11 sites' Functions would 11× duplicate the code without buying any quota relief (100K req/day is per-account regardless). One umbrella Worker is the obvious centralisation.

Implications

Cross-refs