AI-Powered Repository Intelligence, Code Quality Analysis, & Architecture Visualization Platform.
Key Features β’ System Architecture β’ Directory Structure β’ Getting Started β’ Deployment β’ License
RepoGPT is a premium developer-onboarding and codebase intelligence platform designed to eliminate code discovery friction. By pasting a public GitHub repository URL, the system clones, traverses, and parses the codebase locally using customized AST-signature extractors to generate comprehensive interactive charts, semantic document libraries, deep code quality audits, and context-aware chat interfaces.
It compiles code hierarchies in real time and interfaces directly with local LLMs (via Ollama) or falls back to a high-fidelity local semantic retrieval engine (TF-IDF + Cosine Similarity) when offline.
- β‘ Real-Time Repository Ingestion: Securely clones public Git repositories and scans their folder structures in seconds. It integrates directly with the live GitHub REST API to pull 100% accurate, paginated metadata (including total commits, contributors, and active branches).
- π AST-Signature Extraction Engine: Recursively scans and parses source files across major language ecosystems (JavaScript, TypeScript, Python, Java, Go, Rust, PHP). It intelligently maps out classes, function scopes, API routes, third-party libraries, and internal import/export dependency structures.
- π Interactive Code Quality Dashboard: Dynamically generates stunning, animated visual analytics powered by
Recharts. It automatically analyzes Code Originality (detecting duplicated lines and blocks), maps Language Distribution, and identifies structural Security Vulnerabilities categorized by Critical, High, and Medium risk profiles. - π Premium PDF Executive Reporting: Instantly generates high-fidelity, dark-mode PDF reports on-the-fly using
jsPDF. These downloadable reports feature custom graphic banners, beautiful typography, and comprehensive embedded data visualizations perfectly suited for stakeholder reviews.
- πΈοΈ Interactive Architecture Visualization: Employs
@xyflow/reactto render highly interactive, zoomable codebase graphs. It maps physical files into semantic nodes and dependency trees, allowing developers to visually navigate complex system architectures and data flows. - π¬ Context-Aware Semantic Code Chat: Converse naturally with any parsed repository. The system maps your queries against local code snippets using TF-IDF tokenization and cosine similarity to retrieve the exact code context. It then pipes this context through local LLMs (via Ollama) or a native fallback parser. It also includes persistent, quick-suggested query pills for rapid testing.
- π‘οΈ Autonomous Rate Limiting: Features a built-in, self-healing serverless state management system. It securely limits users to 5 deep codebase scans per device every 24 hours. The engine automatically prunes stale scans and dead files in the background to permanently prevent local database bloat.
RepoGPT uses a highly optimized ingestion pipeline to fetch and process repositories:
π View Ingestion Pipeline Details
- Live GitHub API Call: Securely queries the live GitHub API for core statistics and metadata parity.
- Git Blobless Clone: Clones the repo with
--filter=blob:noneto download only metadata initially, fetching file contents lazily on-demand to save bandwidth. - Noise Exclusions: Bypasses testing, documentation, and asset folders (
tests,docs,website,.github) to speed up file walks. - AST Traverser & Scorer: Scans the files to parse imports, exports, functions, class symbols, and scores files for code originality and security risks.
- Local Storage Store: Saves the resulting repository map and chunks into JSON cache folders under
data/, managed by the 24-hour rate limiter. - Interactive Dashboard: Displays code quality charts, React Flow diagrams, and semantic chat interfaces.
RepoGPT/
βββ data/ # Local File-Based database (tracked files, chats, indices)
β βββ scans.json # Rate limiting and autonomous scan tracking
β βββ indexes/ # AST and semantic search indices per repository
β βββ chats/ # Saved RAG chat sessions
βββ public/ # Static media assets and branding elements
β βββ Report Banner.png # Graphic banner for PDF exports
β βββ Favicon.png # Website Favicon
βββ src/
βββ app/ # Next.js App Router workspace
β βββ api/ # Fullstack API Endpoints (analyze, chat, docs)
β βββ dashboard/ # Multi-tab dashboard (Quality, Chat, Visualize, Docs)
β βββ layout.tsx # Root HTML layout and metadata configurations
β βββ page.tsx # Interactive landing page with clone progress stepper
βββ components/ # Premium animated Tailwind + Framer Motion components
βββ lib/ # Core modules and helper libraries
βββ parser.ts # AST traverser, GitHub API fetcher, and complexity scorer
βββ rag.ts # Local LLM adapter & Semantic search matching
βββ storage.ts # File-based DB adapter & 24hr Rate Limiter module
Follow these instructions to download, install, and run RepoGPT on your local machine.
Ensure you have the following software installed:
- Node.js (v18.x or newer): Essential to run the Next.js development server. Download it from nodejs.org.
- Git CLI: Needed to clone the codebase and ingest target repositories. Download it from git-scm.com. Ensure
gitis added to your environmentPATH. - Ollama (Optional): If you want conversational AI chat capability powered by local LLMs. Download it from ollama.com.
Open your terminal (Command Prompt, PowerShell, or Terminal on macOS/Linux) and run:
# 1. Clone the project code
git clone https://github.com/jaymore4501/RepoGPT.git
# 2. Navigate into the cloned project folder
cd RepoGPT
# 3. Install all necessary dependencies
npm installOnce dependencies are installed, start the local development server:
npm run devYour terminal will print a local address (usually http://localhost:3000). Open this link in your web browser to access the RepoGPT landing page.
To interact with the codebase using conversational AI:
- Launch the Ollama app on your machine.
- Run the following command in a new terminal window to download and run the code-focused model:
ollama run deepseek-coder
- Once the model is loaded, refresh your RepoGPT browser tab. The badge on the Chat page will change to Ollama Active.
- Note: If Ollama is offline or not installed, RepoGPT automatically falls back to Fallback Mode (using TF-IDF syntax extraction) to retrieve relevant files and details.
For a detailed walkthrough on deploying RepoGPT to cloud platforms (DigitalOcean App Platform, Render, Railway) or running it on a self-hosted Ubuntu VPS, please refer to the dedicated Deployment Guide.
Build the optimized production bundle and start the server:
# Build the application
npm run build
# Start the compiled bundle
npm run startThe server will start running on port 3000.
This project is licensed under the MIT License.

