Skip to content

About

πŸ” AI-powered automated code review tool that analyzes syntax, performance bottlenecks, and security flaws in pull requests.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Β 
Β 

Repository files navigation

πŸš€ RepoSage β€” AI-Powered Developer Copilot

Automated Code Review Β· Security Scanning Β· Documentation Generation Β· Repository Intelligence

MIT License GSSoC '26 Node.js React Python PRs Welcome


"Stop reviewing code manually. Let AI find the bugs, vulnerabilities, and improvements for you."

Developers spend 60% of their time reading and reviewing code. RepoSage automates this with AI β€” analyzing entire GitHub repositories for bugs, security flaws, performance bottlenecks, and generating comprehensive documentation in seconds.


πŸ“– Documentation Β· πŸ› Report Bug Β· πŸ’‘ Request Feature Β· 🀝 Contribute


πŸ“‹ Table of Contents


✨ Features

πŸ” AI Code Review

Automated detection of bugs, anti-patterns, performance bottlenecks, and style violations powered by LLMs (Llama 3, DeepSeek, Google Gemma).

πŸ›‘οΈ Security Scanner

Regex-based credential detection for API keys, private keys, Twilio tokens, AWS secrets, and common .env file leaks.

πŸ“ README Generator

Automatically generates comprehensive, well-structured documentation for any repository with a single click.

πŸ“Š Complexity Metrics

Static analysis computing Lines of Code, Comment Density, Function Counts, and Complexity Grades (A–F) per file.

🌐 13+ Languages

Full support for Python, JavaScript, TypeScript, Java, Go, Rust, C++, C#, PHP, Ruby, SQL, HTML, and CSS.

🎨 Modern Dashboard

Beautiful React dashboard with Light/Dark themes, file tree search, interactive metrics, and one-click HTML report export.

πŸ€– GitHub Action Bot

Drop-in GitHub Action that posts inline, line-by-line AI review comments directly on your Pull Requests.

πŸ’¬ AI Repository Chat

Ask natural-language questions about any codebase β€” "Explain the authentication flow", "Where are the API routes?"


πŸ—οΈ Architecture

graph TB
    subgraph Frontend["🎨 Frontend (React + Vite)"]
        UI[Dashboard UI]
        Theme[Theme Toggle]
        FileNav[File Navigator]
        Metrics[Metrics Panel]
    end

    subgraph Backend["βš™οΈ Backend (Node.js + Express)"]
        API[REST API]
        Clone[Repo Cloner]
        Scanner[Security Scanner]
        Analyzer[Complexity Analyzer]
        Reporter[Report Exporter]
    end

    subgraph AIEngine["🧠 AI Engine (Python + FastAPI)"]
        LLM[LLM Integration]
        Prompt[Prompt Manager]
        Models[Llama Β· DeepSeek Β· Gemma]
    end

    subgraph GitHubAction["πŸ€– GitHub Action"]
        Webhook[PR Webhook]
        Reviewer[Inline Reviewer]
    end

    UI --> API
    API --> Clone
    Clone --> Scanner
    Clone --> Analyzer
    API --> LLM
    LLM --> Prompt
    Prompt --> Models
    API --> Reporter
    Webhook --> Reviewer
    Reviewer --> API
Loading

The project is split into four independent modules:

Module Tech Description
Frontend React 19 + Vite + Vanilla CSS Interactive dashboard with theme toggle, file search, and metrics visualization
Backend Node.js 18 + Express REST API for repo cloning, security scanning, complexity analysis, and report export
AI Engine Python 3.10 + FastAPI LLM-powered code review, bug detection, and README generation
GitHub Action Bundled JS Runner Automated PR review bot posting inline comments on GitHub

πŸ› οΈ Tech Stack

Layer Technologies
Frontend React Vite CSS3 Lucide
Backend Node.js Express REST API
AI Engine Python FastAPI Groq
AI Models Llama DeepSeek Gemma
DevOps GitHub Actions Git

⚑ Quick Start

Prerequisites

  • Node.js β‰₯ 18 & npm β‰₯ 9
  • Python β‰₯ 3.10 & pip
  • Git
  • A free Groq API Key

Getting Your GROQ API Key

  1. Go to console.groq.com/keys and sign in (or create a free account).
  2. Click Create API Key, give it a name (e.g., reposage), and copy the key.
  3. The key is used by both the Backend (via GROQ_API_KEY env var in backend/.env) and the Frontend (via VITE_GROQ_API_KEY). See the backend setup below.

1. Clone the Repository

git clone https://github.com/kalyan-1845/ai-code-reviewer.git
cd ai-code-reviewer

2. Backend Setup

cd backend
npm install
cp .env.example .env    # Add your GROQ_API_KEY
npm run dev              # Starts on http://localhost:5000

3. AI Engine Setup

cd ai-engine
pip install -r requirements.txt
uvicorn app:app --reload  # Starts on http://localhost:8000

4. Frontend Setup

cd frontend
npm install
npm run dev              # Starts on http://localhost:3000

πŸ’‘ Tip: Open http://localhost:3000 in your browser, paste any public GitHub repo URL, and click Analyze to see RepoSage in action!


πŸ€– GitHub Action Integration

Add automated AI code review to any repository in 2 minutes:

# .github/workflows/reposage-review.yml
name: RepoSage AI Reviewer
on:
  pull_request:
    types: [opened, synchronize]

jobs:
  review:
    runs-on: ubuntu-latest
    permissions:
      pull-requests: write
    steps:
      - name: Checkout Code
        uses: actions/checkout@v4
      - name: Run RepoSage AI PR Audit
        uses: kalyan-1845/ai-code-reviewer/github-action@main
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          groq-api-key: ${{ secrets.GROQ_API_KEY }}

The bot will automatically post inline, line-by-line review comments on every new PR!


πŸ“Š API Reference

For complete endpoint documentation with request/response examples, see API.md.

Endpoint Method Description
/api/analyze POST Analyze a GitHub repository
/api/reports/html POST Export audit report as HTML
/api/chat POST Chat with a repository using AI
/analyze POST AI Engine direct analysis (FastAPI)

πŸ—ΊοΈ Roadmap

See our full ROADMAP.md for the detailed project roadmap.

Phase Status Highlights
Phase 1: MVP βœ… Complete Repo import, AI review, README generation, Dashboard UI
Phase 2: Core Enhancements βœ… Complete 13+ languages, report export, security scanner, model selection
Phase 3: Advanced Features βœ… Complete AI repo chat, architecture diagrams, PR bot, complexity metrics
Phase 4: Community & Scale 🚧 In Progress Audit history, PDF export, settings modal, composition charts
Phase 5: GSSoC Epics πŸš€ Active VS Code Extension, AI RAG Vector System, Analytics Dashboard

🌟 Active GSSoC '26 Epics

We have recently opened 45 new granular issues across 3 massive architectural epics for our GSSoC contributors!

  1. πŸ”Œ Native VS Code Extension: Bring RepoSage directly into the developer's IDE.
  2. 🧠 AI RAG System (Vector DB): Upgrade our chat feature with ChromaDB to query entire repositories using embeddings.
  3. πŸ“Š Multi-Repo Analytics Dashboard: Build an enterprise-grade tracking dashboard for engineering managers.

Want to help us build these? Jump into our Issues tab and filter by the epic or gssoc labels!


🀝 Contributing

We are proudly part of GirlScript Summer of Code (GSSoC) '26! πŸŽ‰

We welcome contributions from everyone β€” whether you're a first-time open-source contributor or a seasoned developer.

How to Get Started

  1. πŸ“– Read our Contributing Guidelines
  2. 🏷️ Browse Good First Issues for beginner-friendly tasks
  3. πŸ’¬ Comment on an issue to get assigned
  4. 🍴 Fork, code, and submit a PR!

Note: Please wait for an admin/mentor to assign the issue before starting work to avoid duplicate efforts.


πŸ‘₯ Contributors

Thanks to all the amazing people who have contributed to RepoSage! πŸ’™


⭐ Support the Project

If you find RepoSage useful, please consider giving it a ⭐ on GitHub β€” it helps the project grow and motivates us to keep improving!

Star this repo Fork this repo Watch this repo


πŸ“œ License

This project is licensed under the MIT License β€” see the LICENSE file for details.


Built with ❀️ by Bhoompally Kalyan Reddy and the open-source community.

RepoSage β€” Making code review smarter, one repository at a time.

About

πŸ” AI-powered automated code review tool that analyzes syntax, performance bottlenecks, and security flaws in pull requests.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages