Make repositories self-explanatory with AI-powered insights and analytics
Features β’ Tech Stack β’ Getting Started β’ Roadmap β’ Vision
CodeScope is a full-stack Next.js application that connects to GitHub, analyzes repositories, tracks contributor activity, and uses AI to answer questions about your codebase.
It gives teams a live dashboard of commits, ownership, analytics, and an AI chat system to ask things like:
π¬ "What changed in the API folder yesterday?"
π¬ "Who worked on the Stripe integration the most?"
π¬ "Explain this commit in plain English."
π¬ "Who should I talk to about authentication bugs?"
No more digging through Git logs or guessing who owns what file β AI, analytics, and collaboration all in one dashboard.
- Login via GitHub OAuth
- Connect a GitHub repo or entire organization
- Automatically sync commits, contributors, and file changes
- Webhook support β updates in real-time when collaborators push code
Each developer gets their own profile with:
- Total commits, additions/deletions
- Most-touched files / modules
- Ownership heatmap of the repo
- Recent commits and activity timeline
- Commits per day/week/month
- Top contributors by code volume
- Most changed directories & files
- High-risk files (high churn + low ownership)
Ask questions like:
- "What changed in /routes/api last week?"
- "Who primarily contributed to the payments service?"
- "Show me the summary of PR #52"
- "Explain this commit like I'm 5."
The chatbot uses:
- β GPT-4o / GPT-5
- β Commit history + metadata
- β File ownership data
- β Contributor context
| Layer | Technology |
| Frontend | Next.js (App Router), TypeScript, TailwindCSS, shadcn/ui |
| Backend | Node.js via Next.js API Routes |
| Database | Supabase (PostgreSQL + Auth + Realtime) |
| Auth | GitHub OAuth with NextAuth.js or Supabase Auth |
| AI | OpenAI GPT-4o / GPT-5 |
| Hosting | Vercel (frontend + API), Supabase (database) |
/app
/dashboard β main analytics UI
/chat β AI assistant interface
/api
/auth β GitHub OAuth
/github β repo sync, webhooks
/commits β fetch commit summaries
/chat β AI Q&A endpoint
/lib
supabase.ts β Supabase client
github.ts β GitHub REST + GraphQL helpers
ai.ts β GPT summarization + chat logic
db.ts β Supabase query functions
/supabase
schema.sql β database tables & relations
users(id, github_id, name, avatar_url)
repos(id, owner, name, default_branch)
contributors(id, github_username, name, avatar_url, email)
commits(sha, repo_id, contributor_id, message, timestamp, additions, deletions)
files(id, repo_id, path, latest_sha)
commit_files(id, commit_sha, file_id, additions, deletions, status)
ai_summaries(commit_sha, summary, tags[], model)
ownership(file_id, contributor_id, ownership_score)Note: Setup instructions coming soon as the project develops!
# Clone repository
git clone https://github.com/your-username/codescope.git
cd codescope
# Install dependencies
npm install
# Set up environment
cp .env.example .env.local
# Run development server
npm run devThen open http://localhost:3000 in your browser.
Create a .env.local file with:
# GitHub OAuth
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
# Supabase
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
# OpenAI
OPENAI_API_KEY=your_openai_api_key- Initialize Next.js project & Supabase
- Configure GitHub OAuth login
- Basic dashboard layout
- Connect GitHub repo/org
- Store commits, files, contributors in Supabase
- Display activity graph + list of commits
- Build dynamic developer pages
- Ownership & contributions analytics
- On new commit β send diff to GPT
- Save
{summary, files, tags}in DB - Show on commit page
- Build
/chatpage with repo-aware AI assistant - Query GitHub + Supabase + GPT
- Answer questions about codebase & contributors
You are analyzing a GitHub commit.
Commit message: "{commit_message}"
Diff:
{diff_content}
Summarize:
1. What changed
2. Why it changed
3. Key files involved
Output JSON under 120 words:
{
"summary": "...",
"files": [...],
"owners": [...],
"tags": ["api", "auth", ...]
}
The AI analyzes commit diffs, file changes, and contributor patterns to provide intelligent insights about your codebase.
CodeScope makes repositories self-explanatory.
No more digging through Git logs or guessing who owns what file β AI, analytics, and collaboration all in one dashboard.
- π Instant Insights: Understand what happened in your repo without manual investigation
- π€ Better Collaboration: Know who to ask about specific parts of the codebase
- π Data-Driven Decisions: Track contribution patterns and code ownership
- π€ AI-Powered: Let GPT explain complex changes in simple language
- β‘ Real-Time Updates: Stay synced with GitHub via webhooks
We welcome contributions! Please check out our Git Rules for workflow and branch naming conventions.
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'feat: add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License.
Built with β€οΈ for developers who want to understand their code better