基于 Xget 官方文档设计的纯静态前端辅助工具,无需后端即可使用 URL 转换、配置生成、实例管理等功能。
Xget Hub 是一个轻量级静态前端页面,为 Xget 加速引擎提供可视化操作界面。它完全在浏览器中运行,无需后端服务器,帮助开发者:
注意:本工具仅为 Xget 的辅助前端,实际加速服务需要您自行部署 Xget 或使用公共实例。
wget / curl 快捷命令内置多种包管理器和工具的配置模板:
| 工具 | 配置类型 |
|---|---|
| Git | git config --global url.insteadOf |
| pip / PyPI | pip.conf / 命令行 |
| npm / Bun | .npmrc / 命令行 |
| Docker | daemon.json / 拉取命令 |
| Conda | .condarc / 命令行 |
所有配置自动使用当前选中的 Xget 实例域名。
localStorage)aria2 / wget 实测下载速度访问部署好的公共页面(示例):
https://your-domain.com/xget-hub.html
index.html 文件python3 -m http.server 8080
# 或
npx serve .
http://localhost:8080| 平台 | 说明 |
|---|---|
| GitHub Pages | 直接上传 HTML 文件即可 |
| Vercel / Netlify | 拖拽文件夹或连接仓库一键部署 |
| Cloudflare Pages | 上传静态资源即可 |
https://github.com/microsoft/vscode/releases/...)xget.internal.company.com)内置映射涵盖 Xget 官方文档中的所有平台前缀:
| 类别 | 平台示例 |
|---|---|
| 代码托管 | GitHub (gh), GitLab (gl), Gitea, Codeberg, SourceForge |
| AI/模型 | Hugging Face (hf), Civitai, OpenAI (ip/openai), Claude, Gemini |
| 包管理 | npm, PyPI, Maven, Gradle, Cargo, NuGet, RubyGems, Packagist |
| 容器 | Docker Hub (cr/docker), GHCR, GCR, Quay, ECR |
| Linux | Debian, Ubuntu, Fedora, Rocky, Arch, openSUSE |
| 其他 | Homebrew, Conda, Go, Flathub, arXiv, Jenkins |
完整列表请查看源码中的
PLATFORM_MAP常量。
编辑 loadInstances() 函数中的默认实例数组:
instances = [
{ alias: '官方演示', url: 'xget.xi-xu.me', isDefault: true },
{ alias: '我的内网', url: 'xget.internal:8080', isDefault: false }
];
在 PLATFORM_MAP 数组中追加:
{ name: "新平台", prefix: "new", host: "example.com" }
在 updateConfigSnippets() 函数中添加新的配置生成逻辑。
欢迎提交 Issue 和 Pull Request!
本项目基于 Xget 文档设计,采用 AGPL-3.0 许可证。