Skip to content

peterdunson/rendergit-lite

 
 

Repository files navigation

rendergit-lite

Interactive code viewer with selectable files.

rendergit-lite demo

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.


Install

pip install git+https://github.com/peterdunson/rendergit-lite.git

Use

rendergit-lite https://github.com/user/repo

This will:

  1. Clone the repo
  2. Generate an interactive HTML page
  3. Auto-open in your browser

Features

🎯 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!

Options

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

Why?

LLMs hallucinate fake code. This tool lets you:

  1. Render a real repo
  2. Select only the files you need (no 10MB lock files)
  3. Copy clean, real code to your AI assistant

Credits

  • Original rendergit by Andrej Karpathy
  • Interactive selection & UI improvements by Peter Dunson

License

0BSD - do whatever you want

About

Render any git repo into a single static HTML page for humans or LLMs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%