Flatten a GitHub repo into a single static HTML page for fast skimming and Ctrl+F
Project description
rendergit
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 rendergit. Flatten any GitHub repository into a single, searchable HTML page with syntax highlighting, markdown rendering, and a clean sidebar navigation. Perfect for code review, exploration, and an instant Ctrl+F experience.
Basic usage
Git clone / pip install this repo somewhere:
git clone https://github.com/karpathy/rendergit
cd rendergit
pip install -e .
Now you can just rendergit any GitHub url e.g.:
rendergit https://github.com/karpathy/nanoGPT
The code will:
- Clone the repo to a temporary directory
- 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.
Features
- 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
Contributing
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.
License
BSD0 go nuts
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rendergit-0.2.0.tar.gz.
File metadata
- Download URL: rendergit-0.2.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
653272d23d41f4d574ed32ee4a6bf77b2e4cbe55de4a688aec1ee738a2503591
|
|
| MD5 |
491e439c40ed241cfeafceb0505c63ff
|
|
| BLAKE2b-256 |
8981eee02406fe15610ca826f69dfbcba522685c0db965e421edc21d73714a8f
|
File details
Details for the file rendergit-0.2.0-py3-none-any.whl.
File metadata
- Download URL: rendergit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c678519dedb9d8bb344d92d1554211a1462755f7d4d3d5e21a7b4acac5b94ec7
|
|
| MD5 |
8f4f27d279e201e8332d339cafe3a8b2
|
|
| BLAKE2b-256 |
62b42aab062726267607d1c8978db58b4735a89c42907d065559be5b481513a3
|