Flexible Cloudflare Worker architecture supporting both:
- Unified Worker - Single worker handling all services
- Multi-Worker with Gateway - Separate workers with service bindings
- chittyos-platform-live - Main platform with AI, Durable Objects, and KV
- chitty-bridge - Bridge service
- cloudeto-cto-mcp - CTO MCP service
- chittyconsultant - Consultant service
- chittychain-migrated - Chain service
- chitty-landing - Landing page
- chitty-website - Website (Pages)
- Single worker with path-based routing
- Shared KV namespaces and Durable Objects
- Workers AI integration
- Handles all 73 domains
# Install dependencies
npm install
# Deploy single worker handling all services
npm run deploy:production# Deploy gateway and all service workers
wrangler deploy --config wrangler.multi.toml
# For development
./scripts/dev-multi.sh/platform/*- Platform services/bridge/*- Bridge API/consultant/*- Consultant tools/chain/*- Chain services/cto/*- CTO MCP/health- Health check endpoint
- 2 KV Namespaces (need to be created in ChittyCorp account)
- 3 Durable Objects (AIGatewayState, ChittyOSPlatformState, SyncState)
- Workers AI binding
- Download actual worker code from client account
- Create KV namespaces in ChittyCorp
- Migrate KV data
- Deploy and test
- Update DNS records
- Delete workers from client account