开源推荐
morning
GitHub 热门项目:repo2txt
摘要
GitHub项目:repo2txt 仓库地址:https://github.com/abinthomasonline/repo2txt Stars:1836 | 作者:abinthomasonline 项目描述:Web-based tool converts GitHub repository contents into a single formatted text file =========...
repo2txt
https
for
github
com
abinthomasonline
GitHub
file
repositories
and
2026-09-08
1 阅读
约6分钟阅读
GitHub Trending
字号:
GitHub项目:repo2txt
仓库地址:https://github.com/abinthomasonline/repo2txt
星级:1836 | 作者:abinthomasonline
项目描述:基于 Web 的工具将 GitHub 存储库内容转换为单个格式化文本文件
===================================================
自述文件内容:
# repo2txt
[](https://github.com/abinthomasonline/repo2txt/actions/workflows/deploy.yml)
[](https://opensource.org/licenses/MIT)
> 💡 **寻找经典版本?** 查看 [repo2txt-classic](https://github.com/abinthomasonline/repo2txt-classic)
> **将存储库转换为 LLM 提示的纯文本**
> 基于浏览器的快速工具,用于人工智能辅助开发
🔗 **[立即尝试→](https://abinthomas.in/repo2txt/)**
## ✨ 特点
### 🔌 多个来源
- **GitHub** - 具有令牌支持的公共和私人存储库
- **本地文件** - 本地项目的目录选择器
- **Zip 上传** - 拖放 zip 文件
- **GitLab**(测试版)-GitLab 存储库支持
- **Azure DevOps**(测试版)-Azure Repos 集成
### 🎯 智能过滤
- **扩展过滤器** - 按文件类型选择/取消选择
- **Gitignore 支持** - 自动尊重 .gitignore 模式
- **自定义模式** - 添加您自己的忽略模式
- **目录选择** - 精挑细选特定文件夹
- **文件树预览** - 带虚拟滚动的可视化文件选择
### 🚀 性能
- **虚拟滚动** - 处理包含 10,000 多个文件的存储库
- **代码分割** - 延迟加载提供程序以实现最佳包大小
- **Web Workers** - 标记化在后台线程中运行
- **渐进式加载** - 加载时流式传输文件内容
- **智能缓存** - 大型存储库的高效内存使用
### 🎨 现代用户体验
- **深色模式** - 系统、浅色和深色主题
- **响应式设计** - 适用于台式机、平板电脑和移动设备
- **令牌计数器** - 实时 GPT 令牌计数
- **文件统计** - 每个文件的标记和行数
- **进度指示器** - 加载期间清晰的反馈
### 🔒 隐私第一
- **100% 基于浏览器** - 无服务器上传,所有处理均在本地进行
- **无跟踪** - 您的代码永远不会离开您的设备
- **安全** - GitHub 令牌仅存储在 sessionStorage 中
- **开源** - 完全可审计的代码库
## 🚀 快速入门
### 在线使用
访问 [abinthomas.in/repo2txt](https://abinthomas.in/repo2txt/) - 无需安装!
### 本地运行
````bash
# 克隆存储库
git 克隆 https://github.com/abinthomasonline/repo2txt.git
cd repo2txt
# 安装依赖项
npm 安装
# 启动开发服务器
npm 运行开发
# 打开http://localhost:5173/repo2txt/
````
### 为生产而构建
````bash
npm 运行构建
# 输出到./dist文件夹中
````
## 📖 用法
### GitHub 存储库
1. 粘贴 GitHub URL:`https://github.com/facebook/react`
2. (可选)添加个人访问令牌:
- 私人存储库
- 更高的速率限制(5000 与 60 请求/小时)
3. 单击“加载存储库”
4. 使用树或扩展过滤器选择文件
5. 单击“生成输出”
6.复制到剪贴板或下载为“.txt”
**支持的 URL 格式:**
- `https://github.com/owner/repo`(默认分支)
- `https://github.com/ow
这篇文章对您有帮助吗?
订阅66必读
每日精选科技资讯,直达你的邮箱