RepoToPrompt is a desktop tool designed for developers. It converts your entire project structure (files & folders) into a single, optimized text file ready for LLMs like ChatGPT, Claude, or Gemini.
- Recursive Scanning: Drag & drop folders to scan entire projects.
- Smart Ignoring: Automatically respects
.gitignoreand filters outnode_modules, binary files, and system junk. - Token Counter: Real-time token estimation (GPT-4 tokenizer) to fit context limits.
- Security Scan: Detects accidental API keys (OpenAI, AWS, etc.) before you copy.
- LLM-Optimized Output: Formats code with XML tags
<file path="...">and generates an ASCII file tree.
- Download and install the app.
- Drag your project folder (e.g.,
src) into the drop zone. - Review the file list, stats, and security warnings.
- Click Copy to Clipboard and paste it into ChatGPT!
If you want to build it from source:
# Clone the repository
git clone [https://github.com/XXXDoriXXX/RepoToPrompt.git](https://github.com/XXXDoriXXX/RepoToPrompt.git)
# Go into the app folder
cd RepoToPrompt
# Install dependencies
npm install
# Run the app
npm start
