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

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.