Architecture Map
Use this page to orient quickly inside the codebase.
Directory map
src/pages/: Astro routes and server-rendered page entriessrc/components/: reusable UI building blockssrc/services/: framework-agnostic business logicsrc/pages/api/: HTTP API endpointssrc/cli/:awcommand definitionssrc/db/: schema, migration, connection, seed scriptsdocs/sites/: Starlight user/developer docs sitedocs/architecture/: ADRs and deeper architecture decisions
Request flow
Browser/Client -> Astro page route (src/pages) -> Service layer (src/services) -> DB abstraction (src/db) -> Response (HTML/JSON)For operational automations, the flow can enter through CLI first:
CLI (src/cli) -> Service layer (src/services) -> DB abstraction (src/db)Design principle
Keep business rules in services so UI, API, and CLI stay consistent and easier to test.
Continue with Developer Feature Workflow for change sequencing.