Discover and explore top open-source AI tools and projects—updated daily.
Flatten GitHub repos into a single HTML page
New!
Top 28.3% on SourcePulse
This tool addresses the need to quickly access and review code within any Git repository by rendering it into a single, static HTML page. It is designed for developers, code reviewers, and users interacting with Large Language Models (LLMs) who want a streamlined, searchable interface for exploring codebases without navigating complex file structures. The primary benefit is an instant, unified view of all repository code, enhancing efficiency for code review and LLM-based analysis.
How It Works
The tool clones a specified GitHub repository to a temporary directory and then processes its source code. It renders the code into a single static HTML file, incorporating syntax highlighting for code files (via Pygments) and markdown rendering for documentation files like READMEs. The process includes smart filtering to exclude binary or excessively large files, and generates a sidebar for navigation. A key feature is the dual-view mode, allowing users to switch between a human-readable, prettified interface and a CXML text format optimized for copy-pasting into LLMs.
Quick Start & Requirements
pip install -e .
after cloning the repository.rendergit <github_url>
(e.g., rendergit https://github.com/karpathy/nanoGPT
).Highlighted Details
Maintenance & Community
The project is shared by the author (karpathy) who uses it frequently but does not intend to actively maintain or support it. No specific community channels or contribution guidelines beyond the general sharing of the utility are mentioned.
Licensing & Compatibility
Limitations & Caveats
The project is explicitly stated as not intended for active maintenance or support by the author, suggesting potential limitations in future updates or bug fixes. While it handles large codebases, performance with extremely large repositories or a very high number of files might be a consideration, though not explicitly detailed.
1 week ago
Inactive