System Overview
System Shape
| Area | Owns | Detail doc |
|---|---|---|
| Frontend | Workspace UI, auth entry points, client state | Frontend and API |
| Backend | HTTP API, durable writes, workers, AI/service adapters | Runtime Topology |
| Data model | Canonical records, user-scoped records, derived projections | Data Model |
| Content pipeline | Discovery, transcripts, summaries, evaluation, search sync | Content Pipeline |
| Search | Keyword index, semantic vectors, chunking, retrieval modes | Search |
| AI models | Model roles, cooldowns, degradation | AI Models |
| Chat | RAG retrieval, streaming, attribution, budgets | Chat |
| Deployment | Cloud Run, Firebase Hosting, Terraform, secrets, CI/CD | Deployment and Operations |
| Mobile shell | Android tooling, APK workflow, smoke checks | Android Operations |
Repository Map
text
dAstIll/
├── backend/ Rust + Axum API, workers, storage, AI adapters
├── frontend/ SvelteKit frontend
├── docs/ VitePress documentation frontend
├── asr/ OpenAI-compatible podcast transcription service
└── terraform/ Cloud Run, Hosting, IAM, secrets, and billing infrastructureDesign Rules
Canonical Before Derived
Canonical: Transcripts, summaries, metadata, and user-scoped state keep their own storage boundaries.
Derived: Search chunks, keyword indexes, vector embeddings, and generated audio are derived state.
Headless frontends
The backend owns durable writes and worker execution. Frontends call it as clients.
Async background workers
Transcript extraction, summary generation, summary evaluation, channel refreshes, gap scans, and search indexing run through background workers.