How hhari1234/codeforge-ai works
CodeForge AI is a full-stack developer platform: developers use a dashboard to submit code or repositories to AI tools and view or revisit results. Its broad feature set includes project and README generation, code review and explanation, debugging, API documentation, repository analysis, and repository chat. The sampled source shows the repository-analysis and chat paths in more detail; other feature branches are retained from the README and tree. Connections for unsampled feature internals are limited to documented capabilities rather than inferred call chains.
Main entry points: repository_chat.py Chat routes · repository_analyzer.py Analyzer routes · main.py FastAPI application · App.tsx Dashboard SPA
Components 26
Web client
- Dashboard SPA
frontend/src/App.tsx - Repository pages
frontend/src/pages - Repository hooks
frontend/src/hooks - Repository API clients
frontend/src/services - AI tool pages
frontend/src/pages - AI tool clients
frontend/src/services - Authentication UI
frontend/src/services/authService.ts
API and identity
- FastAPI application
backend/app/main.py - Auth routes
backend/app/api/routes/auth.py - Auth service
backend/app/services/auth_service.py - API dependencies
backend/app/api/deps.py
Repository workflows
- Analyzer routes
backend/app/api/routes/repository_analyzer.py - GitHub clone
backend/app/parsers/github_clone.py - Repository ingestion
backend/app/parsers/repo_ingest.py - Repository analysis
backend/app/ai/repository_analyzer/analyzer.py - Analysis records
backend/app/services/repository_analysis_service.py - Chat routes
backend/app/api/routes/repository_chat.py - Repository chat
backend/app/ai/repository_chat/chat.py - Chat indexing
backend/app/ai/repository_chat
AI developer tools
- Tool endpoints
backend/app/api/routes - Tool services
backend/app/services - AI generators
backend/app/ai
Persistence and AI
- SQL database
backend/app/database/session.py - ChromaDB vectors
backend/app/ai/repository_chat/vector_store.py - OpenRouter
Other components
- Developer
Connections 31
- Developer → Dashboard SPA: uses
README.md - Dashboard SPA → Repository pages: routes to
frontend/src/App.tsx - Repository pages → Repository hooks: uses
frontend/src/pages/RepositoryChatPage.tsx - Repository hooks → Repository API clients: calls
frontend/src/hooks/useRepositoryAnalysis.ts - Repository API clients → Analyzer routes: HTTP requests
- Dashboard SPA → AI tool pages: routes to
frontend/src/App.tsx - AI tool pages → AI tool clients: uses
- AI tool clients → Tool endpoints: HTTP requests
- Authentication UI → Auth routes: HTTP requests
frontend/src/services/authService.ts - FastAPI application → Analyzer routes: registers
backend/app/main.py - FastAPI application → Chat routes: registers
backend/app/main.py - FastAPI application → Auth routes: registers
backend/app/main.py - FastAPI application → Tool endpoints: registers
backend/app/main.py - Analyzer routes → GitHub clone: clones
backend/app/api/routes/repository_analyzer.py - Analyzer routes → Repository ingestion: ingests
backend/app/api/routes/repository_analyzer.py - Analyzer routes → Repository analysis: analyzes with
backend/app/api/routes/repository_analyzer.py - Analyzer routes → Analysis records: persists and retrieves
backend/app/api/routes/repository_analyzer.py - Chat routes → Analysis records: loads analysis
backend/app/api/routes/repository_chat.py - Chat routes → GitHub clone: clones
backend/app/api/routes/repository_chat.py - Chat routes → Repository ingestion: ingests
backend/app/api/routes/repository_chat.py - Chat routes → Chat indexing: builds index
backend/app/api/routes/repository_chat.py - Chat routes → Repository chat: runs chat
backend/app/api/routes/repository_chat.py - Auth routes → Auth service: delegates
backend/app/services/auth_service.py - Analysis records → SQL database: stores records
- Auth service → SQL database: stores users
- Chat indexing → ChromaDB vectors: stores vectors
- Tool endpoints → Tool services: delegates
backend/app/api/routes/repository_analyzer.py - Tool services → AI generators: uses AI
- AI generators → OpenRouter: requests completions
README.md - Repository analysis → OpenRouter: requests analysis
README.md - Repository chat → OpenRouter: requests answers
README.md