karpathy/rendergit
소개
모든 Git 저장소를 사람이나 LLM이 볼 수 있는 하나의 정적 HTML 페이지로 렌더링합니다
웹 및 앱 개발What you can do
- 👤 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
측정된 스타 증가
- in 24h
- +1
- in 7 days
- +6
- in 15 days
- +11
- in 1 month
- +24
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalrendergit
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, static 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
Install and use easily with uv:
uv tool install git+https://github.com/karpathy/rendergit
rendergit https://github.com/karpathy/nanogpt
Alternatively, more manual pip install example:
git clone https://github.com/karpathy/rendergit
cd rendergit
pip install -e .
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
관련 프로젝트 살펴보기
불러오는 중…