A web dashboard for visualizing AI-generated code contributions in your codebase. This dashboard provides detailed insights about AI vs human contributions, helping understand the role of AI in a codebase development process.
- Install dependencies:
uv venv
source .venv/bin/activate
uv pip install modal codegen fastapi- Deploy or serve the Modal endpoint:
modal serve backend/api.pymodal deploy backend/api.py- Install dependencies:
cd frontend
npm install- Update the API endpoint:
Edit the fetch URL on line 29 in
components/repo-analysis-dashboard.tsxto point to your Modal endpoint:
fetch(`[your-modal-deployment-url]/analyze?repo_full_name=${repoFullName}`, {
method: 'POST',
})- Start the development server:
npm run dev- Visit the dashboard in your browser (default: http://localhost:3000)
- Enter a GitHub repository name (format: username/repo)
- Click "Analyze Repo" to generate insights
The dashboard will display:
- Summary statistics of AI contributions
- Monthly contribution timeline
- Top files with AI contributions
- High-impact AI-authored symbols
- Contributor breakdown visualization
-
Backend: Modal-deployed FastAPI service that:
- Clones and analyzes repositories
- Processes git history
- Calculates AI impact metrics
- Returns structured analysis data
-
Frontend: Next.js application with:
- Interactive charts
- Visualized AI impact metrics
Feel free to submit issues and enhancement requests!