← Open Source
abinthomasonline

repo2txt

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

AI EngineeringPrompt & ScaffoldTypeScript
Open on GitHub
Momentum
+1stars in 24 hours+0.1%
1.84k
Stars
222
Forks
+1
This week
1
Contributors
Created 2024-09-23 · Updated 2026-10-15 · #5290 today
Top developers

abinthomasonline/repo2txt is ranked 5,290 with 1,838 stars.

Same-category comparison

abinthomasonline/repo2txt is ranked 5,290 among these 8 peers; AgibotTech/agibot_x1_infer is ranked 5,291.

Same-category comparison
NameRankMetrics
ANYbotics/elevation_mapping5,263
Language:
C++
Stars:
1,890
Forks:
509
Description:
Robot-centric elevation mapping for rough terrain navigation.
Kosinkadink/ComfyUI-VideoHelperSuite5,265
Language:
Python
Stars:
1,879
Forks:
388
Description:
Nodes related to video workflows.
YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill5,267
Language:
TypeScript
Stars:
1,878
Forks:
201
Datus-ai/Datus-agent5,283
Language:
Python
Stars:
1,856
Forks:
275
AgibotTech/agibot_x1_infer5,291
Language:
C++
Stars:
1,837
Forks:
539
Description:
The inference module for AgiBot X1.
google-labs-code/stitch-sdk5,295
Language:
TypeScript
Stars:
1,832
Forks:
134
Description:
Generate UI screens from text prompts and extract their HTML and screenshots programmatically.
Core-Mate/OpenGUI5,299
Language:
HTML
Stars:
1,817
Forks:
114
Description:
OpenGUI is an Android GUI agent framework for phone-use AI that can see, plan, and operate real mobile apps through the GUI.
Mcp-Brasil/mcp-brasil5,305
Language:
Python
Stars:
1,809
Forks:
286
Description:
MCP Server para 70 APIs públicas brasileiras.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageTypeScript
CategoryAI Engineering
SubcategoryPrompt & Scaffold
Stars1,838
Forks222
Contributors1
Created date2024-09-23
Updated date2026-10-15
Stars in 1 day1
Stars in 7 days1
Rank5,290
Previous rank9,435
Rank change4,145
7-day stars rank9,596
Previous 7-day stars rank12,336
7-day stars rank change2,740
Total stars rank6,817
Previous total stars rank6,816
Total stars rank change-1
README summary

repo2txt 💡 **Looking for the classic version? ** Check out repo2txt-classic **Convert repositories to plain text for LLM prompts** Fast, browser-based tool for AI-assisted development 🔗 **Try it now →** ✨ Features 🔌 Multiple Sources **GitHub** - Public and private repositories with token support **Local Files** - Directory picker for your local projects **Zip Upload** - Drag & drop zip files **GitLab** (Beta) - GitLab repository support **Azure DevOps** (Beta) - Azure Repos integration 🎯 Smart Filtering **Extension Filter** - Select/deselect by file type **Gitignore Support** - Automatically respect . gitignore patterns

**Custom Patterns** - Add your own ignore patterns **Directory Selection** - Cherry-pick specific folders **File Tree Preview** - Visual file selection with virtual scrolling 🚀 Performance **Virtual Scrolling** - Handle repositories with 10,000+ files **Code Splitting** - Lazy-loaded providers for optimal bundle size **Web Workers** - Tokenization runs in background threads **Progressive Loading** - Stream file contents as they load **Smart Caching** - Efficient memory usage for large repos 🎨 Modern UX **Dark Mode** - System, light, and dark themes **Responsive Design** - Works on desktop, tablet, and mobile

**Token Counter** - Real-time GPT token counting **File Statistics** - Per-file token and line counts **Progress Indicators** - Clear feedback during loading 🔒 Privacy First **100% Browser-Based** - No server uploads, all processing is local **No Tracking** - Your code never leaves your device **Secure** - GitHub tokens stored in sessionStorage only **Open Source** - Fully auditable codebase 🚀 Quick Start Use Online Visit abinthomas. Run Locally Build for Production 📖 Usage GitHub Repository 1. Optionally add a personal access token for: Private repositories Higher rate limits

(5000 vs 60 requests/hour) 3. Select files using the tree or extension filters 5. Copy to clipboard or download as **Supported URL formats:** (default branch) Branch names with slashes: ✓ Local Files 1. Select your project folder or upload a zip 4. Same filtering and export options as GitHub 🛠️ Tech Stack **Framework**: React 19 + TypeScript **Build Tool**: Vite 5 **Styling**: Tailwind CSS 3 **State Management**: Zustand **File Handling**: JSZip **Tokenization**: gpt-tokenizer **Virtual Scrolling**: TanStack Virtual **Testing**: Vitest + Playwright **CI

/CD**: GitHub Actions 📊 Project Stats **Bundle Size**: ~330KB main chunk (gzipped) **First Load**: < 2s on 3G **Test Coverage**: 100% E2E test pass rate **Performance**: Lighthouse 95+ across all metrics **Compatibility**: Chrome 90+, Firefox 88+, Safari 14+, Edge 90+ 🤝 Contributing We welcome contributions! md - Development guide and architecture AGENT. md - Detailed design documentation for LLM agents Quick Contribution Guide 📝 License MIT License - see LICENSE for details 🙏 Acknowledgments Built with ❤️ by Abin Thomas Inspired by the need for better LLM context preparation

Thanks to all contributors 🔗 Links **Website**: abinthomas. in/repo2txt **Issues**: GitHub Issues **Discussions**: GitHub Discussions **Changelog**: Releases ⭐ Star History If you find this project helpful, please consider giving it a star!

Frequently asked questions

How many stars and forks are recorded?

abinthomasonline/repo2txt has 1,838 stars and 222 forks.

What is the repository rank?

abinthomasonline/repo2txt is ranked 5,290.

What language and category are recorded?

abinthomasonline/repo2txt has 1,838 stars, uses TypeScript and belongs to AI Engineering.

Which repository is closest in rank?

abinthomasonline/repo2txt is compared with AgibotTech/agibot_x1_infer, ranked 5,291 with 1,837 stars.

README

repo2txt

💡 Looking for the classic version? Check out repo2txt-classic

Convert repositories to plain text for LLM prompts Fast, browser-based tool for AI-assisted development

🔗 Try it now →

✨ Features

🔌 Multiple Sources

  • GitHub - Public and private repositories with token support
  • Local Files - Directory picker for your local projects
  • Zip Upload - Drag & drop zip files
  • GitLab (Beta) - GitLab repository support
  • Azure DevOps (Beta) - Azure Repos integration

🎯 Smart Filtering

  • Extension Filter - Select/deselect by file type
  • Gitignore Support - Automatically respect .gitignore patterns
  • Custom Patterns - Add your own ignore patterns
  • Directory Selection - Cherry-pick specific folders
  • File Tree Preview - Visual file selection with virtual scrolling

🚀 Performance

  • Virtual Scrolling - Handle repositories with 10,000+ files
  • Code Splitting - Lazy-loaded providers for optimal bundle size
  • Web Workers - Tokenization runs in background threads
  • Progressive Loading - Stream file contents as they load
  • Smart Caching - Efficient memory usage for large repos

🎨 Modern UX

  • Dark Mode - System, light, and dark themes
  • Responsive Design - Works on desktop, tablet, and mobile
  • Token Counter - Real-time GPT token counting
  • File Statistics - Per-file token and line counts
  • Progress Indicators - Clear feedback during loading

🔒 Privacy First

  • 100% Browser-Based - No server uploads, all processing is local
  • No Tracking - Your code never leaves your device
  • Secure - GitHub tokens stored in sessionStorage only
  • Open Source - Fully auditable codebase

🚀 Quick Start

Use Online

Visit abinthomas.in/repo2txt - no installation needed!

Run Locally

# Clone the repository
git clone https://github.com/abinthomasonline/repo2txt.git
cd repo2txt

# Install dependencies
npm install

# Start dev server
npm run dev

# Open http://localhost:5173/repo2txt/

Build for Production

npm run build
# Output in ./dist folder

📖 Usage

GitHub Repository

  1. Paste a GitHub URL: https://github.com/facebook/react
  2. Optionally add a personal access token for:
    • Private repositories
    • Higher rate limits (5000 vs 60 requests/hour)
  3. Click "Load Repository"
  4. Select files using the tree or extension filters
  5. Click "Generate Output"
  6. Copy to clipboard or download as .txt

Supported URL formats:

  • https://github.com/owner/repo (default branch)
  • https://github.com/owner/repo/tree/branch-name
  • https://github.com/owner/repo/tree/branch-name/path/to/folder
  • Branch names with slashes: feature/test/branch-name ✓

Local Files

  1. Switch to "Local" provider
  2. Choose "Directory" or "Zip File"
  3. Select your project folder or upload a zip
  4. Same filtering and export options as GitHub

🛠️ Tech Stack

  • Framework: React 19 + TypeScript
  • Build Tool: Vite 5
  • Styling: Tailwind CSS 3
  • State Management: Zustand
  • File Handling: JSZip
  • Tokenization: gpt-tokenizer
  • Virtual Scrolling: TanStack Virtual
  • Testing: Vitest + Playwright
  • CI/CD: GitHub Actions

📊 Project Stats

  • Bundle Size: ~330KB main chunk (gzipped)
  • First Load: < 2s on 3G
  • Test Coverage: 100% E2E test pass rate
  • Performance: Lighthouse 95+ across all metrics
  • Compatibility: Chrome 90+, Firefox 88+, Safari 14+, Edge 90+

🤝 Contributing

We welcome contributions! Please see:

Quick Contribution Guide

# Fork and clone
git clone https://github.com/YOUR_USERNAME/repo2txt.git

# Create branch
git checkout -b feature/amazing-feature

# Make changes and test
npm run test:unit
npm run test:e2e

# Commit and push
git commit -m "Add amazing feature"
git push origin feature/amazing-feature

# Open pull request

📝 License

MIT License - see LICENSE for details

🙏 Acknowledgments

  • Built with ❤️ by Abin Thomas
  • Inspired by the need for better LLM context preparation
  • Thanks to all contributors

🔗 Links

⭐ Star History

If you find this project helpful, please consider giving it a star! It helps others discover the tool.


Made with 🤖 for AI developers

Nearby in the ranking
Similar items