Just show me the code.
Tired of clicking around complex file hierarchies of GitHub repos? Do you just want to see all of the code on a single page? Enter rendergitplus. Flatten any Git repository (local or remote) into a single, static HTML page with syntax highlighting, markdown rendering, and a clean sidebar navigation. Perfect for code review, exploration, and an instant Ctrl+F experience.
Install and use easily with uv:
uv tool install git+https://github.com/Sohil876/rendergitPlus
rendergitplus https://github.com/karpathy/nanogpt # Remote repository
rendergitplus /path/to/local/repo # Local repositoryAlternatively, more manual pip install example:
git clone https://github.com/Sohil876/rendergitPlus
cd rendergitPlus
pip install -e .
rendergitplus https://github.com/karpathy/nanoGPT # Remote repository
rendergitplus /path/to/local/repo # Local repositoryThe code will:
- Clone the repo (if URL) or use the local directory (if path)
- Render its source code into a single static temporary HTML file
- Automatically open the file in your browser
Once open, you can toggle between two views:
- 👤 Human View: Browse with syntax highlighting, sidebar navigation, visual goodies
- 🤖 LLM View: Copy the entire codebase as CXML text to paste into Claude, ChatGPT, etc.
There's a few other smaller options, see the code.
- Local & remote git repository support - works with Git URLs and local git repositories
- Dual view modes - toggle between Human and LLM views
- 👤 Human view: Pretty interface with syntax highlighting and navigation
- 🤖 LLM view: Raw CXML text format - perfect for copying to Claude/ChatGPT for code analysis
- Syntax highlighting for code files via Pygments
- Markdown rendering for README files and docs
- Smart filtering - skips binaries and oversized files
- Directory tree overview at the top
- Sidebar navigation with file links and sizes
- Responsive design that works on mobile
- Search-friendly - use Ctrl+F to find anything across all files
- LLM‐only output using
-lor--llmargument - Code minification for supported languages (Python, JavaScript, CSS, HTML, JSON) for LLM output via
-mor--minifyargument
I vibe coded this utility a few months ago but I keep using it very often so I figured I'd just share it. I don't super intend to maintain or support it though.
BSD0 go nuts