How iain-crowe/atlas-api works
Atlas is a FastAPI service-management API: clients authenticate, then manage registered services and request runtime actions or status. The API also exposes host telemetry and Minecraft status through a Unix-socket agent, while SQLite stores users and managed-service records. Authentication and role checks protect the API; Pydantic models define request and response shapes. The excerpts show the API-to-agent boundary and database helpers, but the README is empty and the agent implementation is external or not present in the tree, so its internals are not mapped.
Main entry points: main.py HTTP API · security.py Auth and roles · database.py Service records · bootstrap_admin.py Admin bootstrap
Components 13
API and contracts
- HTTP API
app/main.py - Request responses
app/models.py
Identity and access
- Auth and roles
app/security.py - User records
app/db_models.py - Admin bootstrap
app/bootstrap_admin.py
Service registry
- Service records
app/services/database.py - Managed services
app/db_models.py - Database sessions
app/database.py - SQLite database
Runtime monitoring
- Agent socket client
app/services/runtime/agent.py - Host telemetry helpers
app/services/system.py
Other components
- API client
- Atlas agent
Connections 15
- API client → HTTP API: calls endpoints
app/main.py - HTTP API → Request responses: uses contracts
app/main.py - HTTP API → Auth and roles: checks access
app/main.py - HTTP API → Service records: queries and creates
app/main.py - HTTP API → Managed services: loads records
app/main.py - HTTP API → Agent socket client: requests status and actions
app/main.py - Auth and roles → User records: loads user model
app/security.py - Auth and roles → Service records: looks up username
app/security.py - Admin bootstrap → User records: creates admin
app/bootstrap_admin.py - Admin bootstrap → Auth and roles: hashes password
app/bootstrap_admin.py - Service records → Managed services: queries and writes
app/services/database.py - Database sessions → SQLite database: opens sessions
app/database.py - Service records → Database sessions: uses session
app/services/database.py - Agent socket client → Atlas agent: sends socket requests
app/services/runtime/agent.py - HTTP API → Host telemetry helpers: telemetry link unclear