An AI-powered git history explorer. Paste a GitHub repository, walk every commit, and understand what changed and why — with AI.
- Commit Timeline — Navigate any public GitHub repository commit-by-commit with keyboard shortcuts (← →)
- Code View — Browse the file tree and read source at any point in history
- Diff View — Inspect what changed in a commit (unified or split) or compare any two commits
- Story Mode — AI narrates the arc of a commit in plain English
- AI Chat — Ask questions about any commit with full file context
- Multi-Provider AI — Works with OpenAI, Anthropic, Gemini, Ollama, LM Studio, GLM, and Kimi
- BYOK — API keys are encrypted server-side per session; never stored in the browser
- Bun (recommended) or Node.js 20+
-
Clone the repository:
git clone https://github.com/Khrees2412/grepbase.git cd grepbase -
Install dependencies:
bun install
-
Create a
.env.localfile:# Required GITHUB_TOKEN=your_github_personal_access_token # Required — must be stable across restarts (session credentials become unreadable if changed) AI_CREDENTIALS_ENCRYPTION_KEY=generate_a_long_random_secret AI_CREDENTIALS_SIGNING_KEY=generate_a_second_long_random_secret # Optional — used as fallback when no user key is configured for a session OPENAI_API_KEY= ANTHROPIC_API_KEY= GEMINI_API_KEY= GLM_API_KEY= KIMI_API_KEY= # Optional ADMIN_API_KEY=generate_an_admin_secret_for_retry_endpoints NEXT_PUBLIC_APP_URL=http://localhost:3000
-
Start the development server:
bun run dev
-
Open http://localhost:3000 and paste a GitHub repository URL to start exploring.
| Layer | Technology |
|---|---|
| Framework | Next.js (App Router) |
| Runtime | Bun |
| Database | SQLite via Drizzle ORM |
| Styling | Vanilla CSS Modules |
| Animation | Framer Motion |
| AI | Vercel AI SDK (multi-provider) |
- On the home page, enter any public GitHub repository URL (e.g.
sindresorhus/is) - Grepbase ingests the commit history into a local SQLite database
- On the Explore page, use ← → to walk commits, or click in the timeline
- Open Settings (⚙) to add your AI provider key and unlock explanations
Pull requests are welcome. For significant changes, open an issue first to discuss the approach.
MIT