Layers
- UI layer: generated views you can extend.
- API layer: typed endpoints and helpers.
- Data layer: generated DB schema and queries.
Data Flow
Prompt → Project meta → Chat generation → Preview → Deploy
Deployment Model
Dev branch for iteration, merge to main for production.
Security & Privacy
- Least privilege: only necessary scopes/tokens.
- Observability: critical actions are auditable.
- Isolation: dev/prod separation, one‑way promotion.
Extensibility
- Typed interfaces → safer refactors.
- Modular file structure → reuse and split easily.
- Git‑friendly → reviewable diffs and change control.