Skip to content

Architecture Overview

Repositories

RepositoryRole
core-platformHono Worker — identity, billing, products, API keys
edge-api-gatewayHono Worker — tenant proxy, plugins, runtime
infra-control-planeNext.js app — admin UI + tenant provisioning API
web-publicNext.js (web, dashboard) + Astro (docs, portals)
infra-emailHono Worker — transactional email via Queue consumer

Dependency direction

ai → document → workflow → identity → tenant

Higher 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.