A high-performance web utility designed to prepare deeply nested GitHub documentation for LLMs, PDF converters, and offline reading. It resolves GitHub directory URLs or local ZIP archives, flattens the file structure, and sanitizes MDX/JSX into clean Markdown.
- Gemini 3 Flash-Preview
- GitHub Tree Resolution: Provide a URL (e.g.,
facebook/react/tree/main/docs) and the app will stream the files directly via GitHub API. - Directory Flattening: Converts
docs/api/auth.mdintodocs__api__auth.mdto prevent filename collisions in flat environments. - MDX to Markdown: Strips JSX tags, converts Admonitions (
<Note>,<Warning>) into standard blockquotes, and removes JS imports/exports. - Asset Handling: Replaces relative image/file links with stylish dummy placeholders to ensure documents remain readable without local assets.
- ISO A4 PDF Export: Includes a built-in print engine with Table of Contents and Cover Page generation.
- Privacy First: All processing happens locally in your browser. No data is uploaded to a server.
Access the live tool at: humiditron.github.io/md_utility
Pull and run the pre-compiled image:
docker run -p 3000:3000 ghcr.io/humiditron/md_utility:latestAccess at http://localhost:3000.
git clone https://github.com/humiditron/md_utility.git
cd your-repo-name
npm install
npm run dev- Separator: Choose between
__,--, or.for path flattening. - Strip Root: Automatically removes the top-level GitHub folder (e.g.,
repo-main/). - Placeholder Style: Select from various banner styles for missing assets.
- Dark Mode: Fully supports system-level dark/light theme switching.
MIT - Created for the developer community.