Skip to content

System Overview ​

System Shape ​

High-level system context.
AreaOwnsDetail doc
FrontendWorkspace UI, auth entry points, client stateFrontend and API
BackendHTTP API, durable writes, workers, AI/service adaptersRuntime Topology
Data modelCanonical records, user-scoped records, derived projectionsData Model
Content pipelineDiscovery, transcripts, summaries, evaluation, search syncContent Pipeline
SearchKeyword index, semantic vectors, chunking, retrieval modesSearch
AI modelsModel roles, cooldowns, degradationAI Models
ChatRAG retrieval, streaming, attribution, budgetsChat
DeploymentCloud Run, Firebase Hosting, Terraform, secrets, CI/CDDeployment and Operations
Mobile shellAndroid tooling, APK workflow, smoke checksAndroid 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 infrastructure

Design 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.