Interactive code viewer with selectable files.
Fork of rendergit by Andrej Karpathy with interactive file selection and improved UI.
Flatten any GitHub repository into a single HTML page, then pick which files you want using checkboxes. Perfect for feeding specific parts of a codebase to ChatGPT/Claude without the bloat.
pip install git+https://github.com/peterdunson/rendergit-lite.git
rendergit-lite https://github.com/user/repo
This will:
- Clone the repo
- Generate an interactive HTML page
- Auto-open in your browser
🎯 Interactive Selection
- Checkbox tree to select/deselect files and folders
- Quick filters: "Python only", "No tests", "Select all"
- Live stats showing selected file count and total size
- LLM view updates automatically based on selection
🧹 Smart Filtering
- Auto-skips bloat:
package-lock.json
,node_modules/
,.venv/
, etc. - Use
--keep-bloat
to disable
🎨 Improved UI
- Modern gradient design
- File type icons (🐍 .py, ⚛️ .jsx, 📄 .md)
- Collapsible sections
- Mobile-friendly
👤 Human View
- Syntax highlighting via Pygments
- Markdown rendering
- Clean, readable layout
🤖 LLM View
- CXML format ready to paste into ChatGPT/Claude
- Updates dynamically based on your file selection
- No hallucinated code!
rendergit-lite https://github.com/user/repo --max-bytes 100000 # Larger file limit
rendergit-lite https://github.com/user/repo --keep-bloat # Don't skip bloat files
rendergit-lite https://github.com/user/repo -o output.html # Save to specific file
rendergit-lite https://github.com/user/repo --no-open # Don't auto-open browser
LLMs hallucinate fake code. This tool lets you:
- Render a real repo
- Select only the files you need (no 10MB lock files)
- Copy clean, real code to your AI assistant
- Original rendergit by Andrej Karpathy
- Interactive selection & UI improvements by Peter Dunson
0BSD - do whatever you want