Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 1.79 KB

File metadata and controls

86 lines (58 loc) · 1.79 KB

AI Impact Analysis Dashboard

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.

Setup

Backend

  1. Install dependencies:
uv venv
source .venv/bin/activate
uv pip install modal codegen fastapi
  1. Deploy or serve the Modal endpoint:
modal serve backend/api.py
modal deploy backend/api.py

Frontend

  1. Install dependencies:
cd frontend
npm install
  1. Update the API endpoint: Edit the fetch URL on line 29 in components/repo-analysis-dashboard.tsx to point to your Modal endpoint:
 fetch(`[your-modal-deployment-url]/analyze?repo_full_name=${repoFullName}`, {
    method: 'POST',
    })
  1. Start the development server:
npm run dev

Usage

  1. Visit the dashboard in your browser (default: http://localhost:3000)
  2. Enter a GitHub repository name (format: username/repo)
  3. 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

Architecture

  • 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

Learn More

Contributing

Feel free to submit issues and enhancement requests!