How sathvik2005/living-doc works
Living Docs is an AI engineering knowledge platform. Its central workflow is tenant-scoped API requests that trigger repository analysis or engineering questions, then assemble architecture or knowledge results from graph/vector stores and return them to the dashboard. The repository also includes ingestion, swarm coordination, readiness and audit capabilities, documentation generation, and developer tooling. Some of these are represented by directory-level nodes because their source was not excerpted; edges are limited to relationships shown in excerpts or explicitly documented in the README.
Main entry points: router.py API routes · librarian.py Librarian agent · neo4j_client.py Knowledge graph · swarm.py Swarm API
Components 30
API and tenancy
- FastAPI app
backend/app/main.py - Tenant context
backend/app/core/tenant.py - API routes
backend/app/presentation/api_v1/router.py - Swarm API
backend/app/presentation/api_v1/swarm.py
Knowledge processing
- Git ingestion
backend/app/services/git_ingestion.py - Architecture agent
backend/app/agents/architecture.py - Librarian agent
backend/app/agents/librarian.py - Hybrid search
backend/app/services/search_service.py - Workflow orchestration
backend/app/workflows/orchestrator.py - Agent registry
backend/app/swarm/registry.py - Meta-agents
backend/app/swarm/meta.py - Readiness evaluation
backend/app/services/production_readiness.py - Documentation generation
backend/app/services/doc_generator.py - Self-documentation
backend/app/services/self_doc.py
Knowledge stores
- Knowledge graph
backend/app/infrastructure/graph/neo4j_client.py - Vector index
backend/app/infrastructure/vector/qdrant_client.py - Repository records
backend/app/infrastructure/database/schemas.py - Audit records
backend/app/services/audit_service.py
Product experiences
- Web dashboard
living-docs/app/(app)/dashboard/page.tsx - Architecture explorer
living-docs/app/(app)/dashboard/architecture/page.tsx - Librarian interface
living-docs/app/(app)/librarian/page.tsx - Action review
living-docs/app/(app)/actions/page.tsx - Readiness dashboard
living-docs/app/(app)/dashboard/readiness/page.tsx - Swarm console
living-docs/app/(app)/swarm/page.tsx
Developer platform
- Developer playground
living-docs/app/(app)/developer/page.tsx - Plugin framework
backend/app/plugins/framework.py - Living Docs CLI
cli/livingdocs.py - Python SDK
sdk/python/livingdocs/client.py - TypeScript SDK
sdk/typescript/src/client.ts
Other components
- Engineer
Connections 23
- Engineer → Web dashboard: uses
README.md - FastAPI app → Tenant context: installs middleware
backend/app/main.py - FastAPI app → API routes: mounts routes
backend/app/main.py - API routes → Tenant context: gets tenant
backend/app/presentation/api_v1/router.py - API routes → Swarm API: mounts routes
backend/app/presentation/api_v1/router.py - API routes → Architecture agent: runs analysis
backend/app/presentation/api_v1/router.py - API routes → Librarian agent: runs query
backend/app/presentation/api_v1/router.py - API routes → Knowledge graph: fetches graph
backend/app/presentation/api_v1/router.py - Swarm API → Agent registry: uses registry
backend/app/presentation/api_v1/swarm.py - Swarm API → Meta-agents: uses supervisors
backend/app/presentation/api_v1/swarm.py - Git ingestion → Repository records: inserts repository
backend/app/services/git_ingestion.py - Git ingestion → Knowledge graph: indexes entity
backend/app/services/git_ingestion.py - Architecture agent → Knowledge graph: writes graph
backend/app/agents/architecture.py - Librarian agent → Knowledge graph: reads graph
backend/app/agents/librarian.py - Librarian agent → Vector index: uses vector search
backend/app/agents/librarian.py - Hybrid search → Knowledge graph: reads graph
backend/app/services/search_service.py - Hybrid search → Vector index: searches vectors
backend/app/services/search_service.py - Workflow orchestration → Architecture agent: invokes
backend/app/workflows/orchestrator.py - Workflow orchestration → Librarian agent: invokes
backend/app/workflows/orchestrator.py - Librarian agent → Librarian interface: streams response
README.md - Web dashboard → Architecture explorer: opens explorer
- Web dashboard → Readiness dashboard: opens readiness
- Developer playground → Plugin framework: documents plugins
README.md