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
Metadata
Release files for rendergit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rendergit-0.2.0.tar.gz | 8.9 kB | Without provenance | Details for rendergit-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rendergit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for rendergit-0.2.0-py3-none-any.whl |
Total release size: 18.0 kB
Release files / rendergit-0.2.0.tar.gz
| Download URL | rendergit-0.2.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
653272d23d41f4d574ed32ee4a6bf77b2e4cbe55de4a688aec1ee738a2503591
|
|
BLAKE2b-256 checksum How to use checksums |
8981eee02406fe15610ca826f69dfbcba522685c0db965e421edc21d73714a8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / rendergit-0.2.0-py3-none-any.whl
| Download URL | rendergit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c678519dedb9d8bb344d92d1554211a1462755f7d4d3d5e21a7b4acac5b94ec7
|
|
BLAKE2b-256 checksum How to use checksums |
62b42aab062726267607d1c8978db58b4735a89c42907d065559be5b481513a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for rendergit 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.