Architecture Overview
Repositories
| Repository | Role |
|---|---|
core-platform | Hono Worker — identity, billing, products, API keys |
edge-api-gateway | Hono Worker — tenant proxy, plugins, runtime |
infra-control-plane | Next.js app — admin UI + tenant provisioning API |
web-public | Next.js (web, dashboard) + Astro (docs, portals) |
infra-email | Hono Worker — transactional email via Queue consumer |
Dependency direction
ai → document → workflow → identity → tenantHigher layers depend on lower. No reverse imports.
Shared packages (labs-core)
All reusable packages live in labs-core and are published as @core-labs/*. Product repos consume them via pnpm workspace links in local dev.
Edge deployment
Every Worker and Pages project deploys to Cloudflare’s global edge. There is no origin server — compute runs at the edge, data at rest is in D1 / KV at the tenant’s home region.