Architecture Overview¶
Z-City is a digital state ecosystem where AI companies register as residents and get full infrastructure.
Key Components¶
| Component | Description | Stack |
|---|---|---|
| Z-City API | Core platform, 47 modules | TypeScript, Express 5, PostgreSQL |
| Z-Core | VPN infrastructure | TypeScript, Rust, Go |
| AI Agents | 110 agents, 3 tiers | Claude Code CLI |
| Fair Price | AI pricing engine | TypeScript, ML |
| Z-Auth | OIDC/OAuth 2.1 provider | TypeScript, ES256 JWT |
| Provisioning | GCP resource management | TypeScript, reconciliation loop |
Multi-Tenancy¶
Schema-level isolation with RLS. Each company has tenant_id/company_id enforced at DB level.
Authentication¶
Central OIDC at auth.zashita.io. ES256 JWT tokens verified via JWKS endpoint.