https://github.com/dreamcatcher45/git2txt
Convert Git repos to structured text for AI, with minification to save tokens
https://github.com/dreamcatcher45/git2txt
ai git gitingest minify
Last synced: 2 months ago
JSON representation
Convert Git repos to structured text for AI, with minification to save tokens
- Host: GitHub
- URL: https://github.com/dreamcatcher45/git2txt
- Owner: dreamcatcher45
- Created: 2025-04-13T05:25:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-13T08:56:41.000Z (about 1 year ago)
- Last Synced: 2025-04-13T17:18:03.748Z (about 1 year ago)
- Topics: ai, git, gitingest, minify
- Language: TypeScript
- Homepage: https://git2txt.pages.dev
- Size: 172 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git2txt
Git2txt is a web application that allows you to convert public GitHub repositories into text files, making it easy to use codebases as context for Large Language Models (LLMs).
## Description
Git2txt simplifies the process of preparing GitHub repository content for LLM consumption. It provides a user-friendly interface to fetch, select, and format code files from any public GitHub repository, with features like file selection, path inclusion, and text minification.
## Features
- 🔍 Fetch any public GitHub repository
- 📁 Interactive directory tree visualization
- ✅ Selective file inclusion/exclusion
- 📝 Flexible output formatting options:
- Include/exclude file paths
- Minification option to reduce token usage
- 📊 Real-time token count estimation
- 💾 Export options:
- Copy to clipboard
- Download as TXT file
- 🌓 Dark/Light theme support
- 📱 Responsive design
## Technologies Used
- Next.js
- TypeScript
- Tailwind CSS
- Shadcn/ui Components
- GPT Tokenizer
## Usage
1. Visit the application
2. Enter a public GitHub repository URL
3. Wait for the repository files to load
4. Select the files you want to include
- Use checkboxes to select individual files
- Use folder checkboxes to select/deselect all files in a directory
5. Configure output options:
- Toggle "Include File Path" to add file paths in the output
- Toggle "Minify" to reduce whitespace
6. View the token count estimation
7. Copy the result to clipboard or download as a TXT file
## Getting Started
```bash
# Clone the repository
git clone https://github.com/dreamcatcher45/git2txt.git
# Install dependencies
npm install
# Run the development server
npm run dev
```
Open [http://localhost:9002](http://localhost:9002) with your browser to see the result.
## License
MIT License
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.