AI-powered GitHub repository analysis โ just add m before any github.com URL
Website ยท Quick Start ยท Features ยท AI Providers
repolens-show.mp4
Pro tip: Turn any GitHub URL into a RepoLens analysis by adding
mbeforegithub.com. For example:github.com/facebook/reactโmgithub.com/VrianCao/Uptimer
- Repository Overview โ Instant project summary, tech stack detection, and interactive file tree visualization
- Code Browser โ Syntax-highlighted source viewer powered by Shiki, with file outline and breadcrumb navigation
- Issues Scanner โ Automated code quality analysis that detects security vulnerabilities, performance problems, and best practice violations
- Diagrams โ Auto-generated architecture diagrams using Mermaid.js โ dependency graphs, component relationships, and more
- Documentation Generator โ AI-powered docs generation including README, Architecture Overview, API Reference, and Contributing Guide
- AI Chat โ Ask questions about any codebase with full context awareness and 9 specialized AI tools for deep analysis
- Compare โ Side-by-side repository comparison to evaluate alternatives
- Navigate to
mgithub.com/owner/repo(or paste any GitHub URL on the homepage) - RepoLens fetches the entire repo via GitHub's Zipball API in a single download
- Files are indexed and cached in IndexedDB for instant repeat visits
- All tabs become available โ browse code, scan issues, generate docs, chat with AI
RepoLens works with multiple AI providers. You configure API keys directly in the app โ no environment variables needed.
| Provider | Example Models |
|---|---|
| OpenAI | Latest Models |
| Latest Models | |
| Anthropic | Latest Models |
| OpenRouter | Latest Models |
Add a GitHub Personal Access Token (PAT) to access private repositories and raise the API rate limit from 60 to 5,000 requests/hour. When a PAT is configured, GitHub API calls go directly from your browser to api.github.com โ the token never touches the RepoLens server.
- Create a fine-grained PAT on GitHub.
- Grant Contents: Read-only and Metadata: Read-only permissions (select only the repositories you need, or choose All repositories).
- In RepoLens, click the gear icon (Settings) โ GitHub tab โ paste your token โ Test Connection.
| Goal | Scope |
|---|---|
| Private repository access | Contents: Read-only + Metadata: Read-only |
| Public repos (higher rate limit only) | No additional permissions needed |
- The token is stored in your browser's
localStorageโ same as AI API keys. - API calls are made directly from the browser over HTTPS; the token is never sent to the RepoLens server.
- Already signed in with OAuth? OAuth continues to work through server-side proxy routes. You can use either method, or both.
| Requirement | Install | Verify |
|---|---|---|
| Node.js 18+ | nodejs.org | node -v |
| pnpm | pnpm.io | pnpm -v |
| AI API key | At least one: OpenAI, Google AI, Anthropic, or OpenRouter | โ |
git clone https://github.com/zebbern/repolens.git
cd repolens/workproject
pnpm install
pnpm devOpen http://localhost:3000, click the gear icon (Settings), and enter your API key(s).
| Variable | Description |
|---|---|
NEXT_PUBLIC_AUTH_ENABLED=true |
Enable authentication (requires NextAuth setup) |
AI keys are configured in the UI โ no environment variables required for basic usage.
| Action | How |
|---|---|
| Analyze a repo | Add m before any github.com URL โ mgithub.com/owner/repo |
| Paste a URL | Enter any GitHub repo URL on the homepage |
| Browse code | Open the Code tab to view syntax-highlighted files with outline navigation |
| Scan for issues | Open the Issues tab for automated security and quality analysis |
| Generate docs | Open the Docs tab and select a document type |
| Chat with AI | Open the Chat tab and ask questions about the codebase |
| Compare repos | Navigate to the Compare tab to evaluate repositories side-by-side |
| Category | Technology |
|---|---|
| Framework | Next.js 15 (App Router) |
| UI | React 19, Tailwind CSS, shadcn/ui |
| Language | TypeScript 5 |
| AI | Vercel AI SDK v6 |
| Diagrams | Mermaid.js |
| Syntax highlighting | Shiki |
| Repo extraction | JSZip |
| Testing | Vitest, Playwright |
| Deployment | Vercel |
- Fork the repo and create a branch.
- Make your changes.
- Run
pnpm testto verify. - Open a pull request.