How montymobile1/devdox-ai-portal-api works
DevDox AI Portal API serves the portal’s user-management and development workflows: authenticate requests, manage Git credentials, browse/select repositories, and request repository analysis. Routes delegate to domain services; repository analysis records pending state and enqueues processing work. The graph also preserves documented preference storage and token-usage analytics, whose implementation is not shown in the sampled source. Relationships use the README and source-index references; unshown integration details are omitted rather than inferred.
Main entry points: routes API routes · main.py FastAPI application · git_tokens.py Git token management · repository.py Repository services
Components 19
API and contracts
- FastAPI application
devdox/app/main.py - API routes
devdox/app/routes - Request and response schemas
devdox/app/schemas - Response formatting
devdox/app/utils/api_response.py - Exception handling
devdox/app/exceptions
Identity and credentials
- Request authentication
devdox/app/utils/auth.py - User webhooks
devdox/app/routes/webhooks.py - Git token management
devdox/app/services/git_tokens.py - Secret encryption
devdox/app/utils/encryption.py
Repository workflow
- Repository services
devdox/app/services/repository.py - Provider selection
devdox/app/utils/git_managers.py - Analysis job queue
devdox/app/services/supabase_queue.py
Persistence and integrations
- Supabase storage
- User preferences
- Token usage analytics
Other components
- Portal frontend
- Clerk identity service
- Git providers
- Context generation service
Connections 19
- Portal frontend → FastAPI application: sends requests
README.md - FastAPI application → API routes: mounts routes
devdox/app/main.py - API routes → Request authentication: authenticates requests
devdox/app/routes/repos.py - API routes → Request and response schemas: validates payloads
devdox/app/routes/repos.py - API routes → Response formatting: formats responses
devdox/app/routes/repos.py - FastAPI application → Exception handling: registers handlers
devdox/app/main.py - Request authentication → Clerk identity service: verifies identity
devdox/app/utils/auth.py - API routes → Git token management: delegates token management
devdox/app/routes/git_tokens.py - Git token management → Secret encryption: encrypts credentials
devdox/app/services/git_tokens.py - Git token management → Git providers: validates provider token
devdox/app/services/git_tokens.py - API routes → Repository services: delegates repository work
devdox/app/routes/repos.py - Repository services → Provider selection: selects provider components
devdox/app/services/repository.py - Repository services → Analysis job queue: enqueues analysis
devdox/app/services/repository.py - User webhooks → Supabase storage: creates user records
devdox/app/routes/webhooks.py - User webhooks → Secret encryption: encrypts user salt
devdox/app/routes/webhooks.py - FastAPI application → Supabase storage: persists portal data
README.md - Analysis job queue → Context generation service: queues analysis tasks
README.md - User preferences → Supabase storage: stores preferences
README.md - Token usage analytics → Supabase storage: stores usage data
README.md