Zero Dependencies v1.0 Stable MIT License

Export Your Codebase
for AI Analysis

Transform any repository into a single, structured Markdown file optimized for LLMs. Perfect for ChatGPT, Claude, Gemini, and DeepSeek.

Get Started Star on GitHub
# Linux / macOS
./RepoDoc.sh . "node_modules,dist" 800

# Windows PowerShell
.\RepoDoc.ps1 -TargetDir "." -ExcludeDirs "build"

# Output: code-doc.md ready for AI

Why Developers Choose RepoDoc

Built for efficiency, security, and seamless integration with modern AI workflows.

LLM Optimized

Generates clean Markdown with syntax highlighting and directory trees, providing full context to AI models without token waste.

Zero Dependencies

No Node.js, Python, or Docker required. Runs natively using Bash or PowerShell with zero external package installations.

Smart Filtering

Automatically respects .gitignore, skips binary files, CSVs, and oversized files to keep your documentation lean.

Cross-Platform

Native scripts for Linux, macOS, and Windows ensure consistent behavior across all development environments.

Directory Structure

Includes a visual tree representation of your project, helping AI understand file relationships and architecture.

Secure & Local

Your code never leaves your machine. Processing happens locally, ensuring data privacy and security.

How to Use

Simple commands to generate your documentation in seconds.

Linux & macOS (Bash)
# Make executable first
chmod +x RepoDoc.sh

# Run with defaults
./RepoDoc.sh .

# Advanced usage
./RepoDoc.sh . "node_modules,dist" 800
Windows (PowerShell)
# Basic execution
.\RepoDoc.ps1 -TargetDir "."

# With exclusions
.\RepoDoc.ps1 -TargetDir "." \
  -ExcludeDirs "build,bin" \
  -MaxFileSizeKB 800

Output file: code-doc.md

Works Everywhere You Do

Linux
macOS
Windows