Components Overview
Components are the infrastructure building blocks of your Aegis Stack application. Each component provides a specific capability like API serving, background tasks, or data persistence.
Components vs Services
Components = Infrastructure capabilities (database, workers, scheduling) Services = Business functionality (auth, AI, comms, insights)
See Services Overview for business-level features.
Evolving Your Stack
Your choices aren't permanent. Components can be added or removed as your requirements change.
Unlike most starters that lock you in at init, Aegis Stack lets you evolve:
- Add components:
aegis add scheduler --project-path ./my-api - Remove components:
aegis remove scheduler --project-path ./my-api - Update templates: Stay current with upstream improvements
For complete workflows with real-world examples, see Evolving Your Stack →
Components
| Component | What you get | |
|---|---|---|
| Backend | FastAPI on uvicorn or granian, lifecycle hooks, in-memory request metrics, API load testing for every route | |
| CLI | Typer, first-class system interface | |
| Frontend | Flet, ships with the Overseer system dashboard | |
| Browser | Remote Chromium in its own container, driven over Playwright: JavaScript pages, sign-ins, a bot that joins a meeting | |
| Database | Postgres (self-hosted or Neon serverless) or SQLite + SQLModel ORM | |
| Deploy | Deployment target (Docker Compose), read by the Overseer | |
| Inference | Local AI models via Ollama or llama.cpp, speech via Kokoro, hearing via speaches, embeddings via llama.cpp | |
| Ingress | Traefik v3 reverse proxy with TLS | |
| MCP | Serves the app's own tools to Claude Desktop, Claude Code or a local model over MCP: the tools you grant, never a write | |
| Observability | Pydantic Logfire tracing + metrics + logging | |
| Redis | Redis for caching, sessions, pub/sub | |
| Runner | Work the app sends out to a coding agent: a queue of runs, and a runner on any machine with the repository that answers them | |
| Scheduler | APScheduler with persistent jobs | |
| Secrets | Encrypted credential store: keys set while the app runs, checked with the provider on paste, never shown again | |
| Storage | S3 object storage for the files an app keeps, SeaweedFS in dev | |
| Web Frontend | Server-rendered pages at /: Jinja2 + htmx + Alpine, Tailwind/DaisyUI styling |
|
| Worker | Pluggable Arq, Taskiq, or Dramatiq |
Component Deployment
Understanding how components deploy and scale is crucial for architectural decisions:
graph TB
subgraph "Multi-Container Architecture"
A0["Ingress<br/>Traefik Proxy"]
A1["Webserver<br/>Backend + Frontend"]
A2["Scheduler<br/>Background Jobs"]
A3["Worker Pool<br/>Task Processing"]
A4["Infrastructure<br/>Redis + Database"]
end
subgraph "Independent Scaling"
B0[Ingress × 1]
B1[Webserver × N]
B2[Scheduler × N]
B3[Worker × N]
B4[Infrastructure × N]
end
A0 --> B0
A1 --> B1
A2 --> B2
A3 --> B3
A4 --> B4
Multi-Container Architecture: Each component runs in its own Docker container (via docker-compose) for isolation and maintainability.
Backend + Frontend Container: FastAPI serves the Flet UI as an integrated web app - this is an architectural choice, not a limitation.
Independent Scaling: Each service can be scaled separately based on demand using Docker Compose replicas or orchestration tools.
Component Composition
Components can be combined to enable different capabilities. For detailed patterns on how components integrate with services and each other, see the Integration Patterns Reference.
Individual components combine to form your complete application. Database + Scheduler + Worker + Auth + AI = A unified, production-ready system.
