/repo2txt

Web-based tool converts GitHub repository contents into a single formatted text file

Primary LanguageJavaScriptMIT LicenseMIT

GitHub Repo to Text Converter (Local Directory Supported)

https://repo2txt.simplebasedomain.com/

This web-based tool converts GitHub repository (or local directory) contents into a formatted text file for Large Language Model (LLM) prompts. It streamlines the process of transforming repository data into LLM-friendly input.

demo.gif

Features

  • Display GitHub repository structure
  • Select files/directories to include
  • Filter files by extensions
  • Generate formatted text file
  • Copy text to clipboard
  • Download generated text
  • Support for private repositories
  • Browser-based for privacy and security
  • Download zip of selected files
  • Local directory support

This tool runs entirely in the browser, ensuring data security without server-side processing.

To do

  • Compile tailwind css (gh action maybe?)
  • python bindings

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.