How lingu17/codeforage-ai works
CodeForge AI analyzes GitHub repositories, persists scan artifacts, and exposes reports, security findings, pull-request reviews, and cited repository chat through a Next.js dashboard and FastAPI API. The principal flow is authenticated repository import, clone and parse, embedding/indexing, analysis, then retrieval or report access. The README documents major capabilities and limitations; source excerpts show portions of the API, scanner, embedding, and retrieval layers, but not all call sites, so some documented links are cited to the README.
Main entry points: main.py FastAPI endpoints · scanner.py Clone and scan · rag.py Hybrid retrieval · database.py Supabase access
Components 22
Dashboard
- Analysis dashboard
frontend/src/app/dashboard/page.tsx - Repository chat
frontend/src/app/dashboard/chat/page.tsx - PR reviews
frontend/src/app/dashboard/pr-reviews/page.tsx - Security findings
frontend/src/app/dashboard/security/page.tsx - Architecture view
frontend/src/app/dashboard/architecture/page.tsx
API and orchestration
- FastAPI endpoints
backend/main.py - GitHub identity checks
backend/github_client.py - Input validation
backend/validation.py
Repository analysis
- Clone and scan
backend/scanner.py - Quality analysis
backend/quality.py - Review validation
backend/pr_review.py - Scan recovery
backend/scan_recovery.py - Report shaping
backend/reporting.py - Hybrid retrieval
backend/rag.py
Persistence and AI
- Embedding batches
backend/embedding.py - Groq generation
backend/ai_groq.py - Supabase access
backend/database.py
Other components
- Repository owner
- Supabase store
- GitHub
- Gemini
- Groq API
Connections 23
- Repository owner → Analysis dashboard: uses
README.md - Analysis dashboard → FastAPI endpoints: requests analysis
- Repository chat → FastAPI endpoints: requests chat
- PR reviews → FastAPI endpoints: requests review
- Security findings → FastAPI endpoints: reads findings
- Architecture view → FastAPI endpoints: reads graph
- FastAPI endpoints → Input validation: validates input
backend/main.py - FastAPI endpoints → GitHub identity checks: checks GitHub
backend/main.py - FastAPI endpoints → Clone and scan: starts scan
backend/main.py - FastAPI endpoints → Scan recovery: recovers jobs
backend/main.py - FastAPI endpoints → Report shaping: shapes reports
backend/main.py - FastAPI endpoints → Review validation: validates review
backend/main.py - FastAPI endpoints → Hybrid retrieval: retrieves context
backend/main.py - Clone and scan → Quality analysis: analyzes code
backend/scanner.py - Clone and scan → Embedding batches: embeds chunks
backend/scanner.py - Clone and scan → Supabase access: persists scan
backend/scanner.py - Hybrid retrieval → Supabase access: searches chunks
- FastAPI endpoints → Groq generation: generates answers
README.md - Supabase access → Supabase store: reads and writes
backend/database.py - GitHub identity checks → GitHub: checks responses
backend/github_client.py - Embedding batches → Gemini: creates vectors
README.md - Groq generation → Groq API: generates text
README.md - Hybrid retrieval → Supabase store: retrieves chunks
backend/rag.py