repo2txt codebase documentation generator

Description

A lightweight command-line tool that converts an entire code repository into a single, structured document — ready for LLM consumption.

Whether you’re feeding a codebase into an AI assistant, creating a snapshot for review, or generating documentation, repo2txt does the heavy lifting. It walks your project directory, renders a clear file tree, and outputs every relevant file into one clean document.

Key features:

  • Outputs to plain text, Markdown, or Word (.docx) formats
  • Renders a Unicode file tree for at-a-glance structure
  • Intelligent binary file detection — only includes what matters
  • Built-in ignores for common noise (.git, node_modules, vendor, and more)
  • Configurable via CLI flags or a simple repo2txt.yaml config file
  • Cross-platform: macOS, Linux, and Windows

Built with Go for speed and simplicity. Available via Homebrew on macOS.

Works with

LinuxmacOSWindows

GitHub Stats

Latest Version
Loading…
Licence
Loading…
Last Release
Loading…
Downloads
Loading…

More Work

Trailhead — Workout-programme Tracker for Android
Trailhead — Workout-programme Tracker for Android

A workout-programme tracker for Android that lines up your next session, reminds you on training days, and counts progress in sessions, not dates. No account, no analytics, no adverts.

Cairn — Body-measurement Tracker for Android & Wear OS
Cairn — Body-measurement Tracker for Android & Wear OS

A body-measurement tracker for Android and Wear OS that logs weight, body composition and heart rate straight into Health Connect — no account, no analytics, no network calls.

Flux Magento 2 Patching Application
Flux Magento 2 Patching Application

A Go CLI tool that checks and updates the ece-patches configuration inside a Magento 2 .magento.env.yaml file, keeping patch state consistent across environments.