| Entry point: One public API gateway; domain Workers have no public routes and are reached by service binding | One place for routing and a smaller attack surface |
| Service boundaries: Independent domain Workers for operations, staff, customers, billing, enquiries, marketing and more | Composability: some projects need every service, others only a subset |
| Data ownership: One D1 database per service; the owning service is the only writer; R2 where a service stores files | Clear ownership; other services go through HTTP or a documented binding |
| Tenancy: JWT organisation and actor from the identity service; organisation-scoped queries; cross-organisation records return 404 | Prepares the platform for SaaS without a database per tenant |
| Authorisation: Permissions checked as service, domain and action, including custom role ticks per category | Fine-grained access beyond a few fixed user types |
| Read cache: KV read-through cache keyed by organisation, resource, place, caller and query; writes clear the resource prefix | Fewer D1 reads without mixing data between tenants or callers |
| Contracts: Zod OpenAPI per service, published to a documentation site | Clients and teammates work from generated, current contracts |
| Clients: React and Astro staff apps, marketing sites, Expo mobile apps, Tauri desktop till prototype | One platform serves web, mobile and desktop |