Back to Projects

RepoLens

AI-powered codebase analysis platform with AST parsing, automated code health reports, and RAG-based repository Q&A.

#Next.js 16#React 19#TypeScript#PostgreSQL#Prisma ORM#pgvector#RAG#OpenRouter#Vercel AI SDK#Tree-sitter#Auth.js#Stripe#Tailwind CSS
RepoLens
CategoryAI Developer Tool
Duration1 month
RoleFull Stack Developer
StatusProduction Ready

Overview

RepoLens is an AI-powered codebase analysis platform that helps developers understand unfamiliar repositories, identify potential issues, and explore code through intelligent, context-aware conversations. It supports GitHub repository imports and ZIP uploads, using Tree-sitter AST parsing to understand code structure and generate meaningful code chunks. The platform combines static code analysis with AI-powered reviews across architecture, security, performance, code quality, and testing. Its RAG-based chat retrieves relevant code from PostgreSQL with pgvector and provides answers grounded in repository context, including file paths and line references. It also features an interactive Code Explorer, AI-generated file summaries, secure authentication, encrypted GitHub tokens, and Stripe subscription management. Built with Next.js 16, React 19, TypeScript, PostgreSQL, Prisma, pgvector, and OpenRouter, RepoLens demonstrates practical applications of AI, retrieval-augmented generation, and modern full-stack SaaS architecture.

Key Features

Import GitHub repositories or upload ZIP archives for automated codebase analysis.
AST-based code parsing and structural chunking powered by Tree-sitter.
Automatic framework detection for popular JavaScript and TypeScript frameworks.
AI-powered code health reports covering architecture, security, performance, code quality, and testing.
Combined static analysis and LLM-powered code reviews.
Health scoring system with severity-based issue classification: Critical, High, Medium, and Low.
RAG-based repository Q&A using vector similarity search with PostgreSQL and pgvector.
Context-aware AI chat with source references, file paths, and line numbers.
Interactive Code Explorer with file navigation and syntax-highlighted code.
AI-generated file summaries, key function explanations, and dependency insights.
Cloud-first embeddings with a local fallback option.
Secure authentication using Google OAuth, GitHub OAuth, and email/password.
Encrypted GitHub access tokens using AES-256-GCM.
Stripe Checkout, customer portal, subscription management, and usage-based quota enforcement.
Staged analysis pipeline with progress tracking and recovery support.
Responsive dashboard built with Tailwind CSS and shadcn/ui.

Technology Stack

#Next.js 16
#React 19
#TypeScript
#PostgreSQL
#Prisma ORM
#pgvector
#RAG
#OpenRouter
#Vercel AI SDK
#Tree-sitter
#Auth.js
#Stripe
#Tailwind CSS
Previous ProjectDocsy
Next ProjectInvoicePilot