Skip to content
Back to search

xget

Ultra-high-performance, secure, all-in-one acceleration engine for developer resources

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/xixu-me-xget/badge.svg)](/listings/xixu-me-xget)

HTML

<a href="/listings/xixu-me-xget"><img src="/api/listings/xixu-me-xget/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

**Pre-deployed Instance: `xget.xi-xu.me`** - For evaluation and trial only, deploy your own instance for production or availability-sensitive workloads

> [!WARNING] > If you self-host it, put it behind authentication, IP allowlists, > or both unless you explicitly intend to run a public mirror.

**URL Converter:** [**`xuc.xi-xu.me`**](https://xuc.xi-xu.me) - Convert any supported platform URL to Xget's acceleration format with one click

**Agent Skills: `npx skills add xixu-me/skills -s xget`**

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 3,123 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. <!-- renoise-banner -->
  2. <p align="center">
  3. <a href="https://renoise.ai/plugin?utm_medium=github&utm_source=xixu">
  4. <img src="https://raw.githubusercontent.com/renoise-ai/renoise-plugins-official/main/assets/icon.svg" alt="Renoise" width="96">
  5. </a>
  6. </p>
  7. <p align="center">
  8. <a href="https://renoise.ai/plugin?utm_medium=github&utm_source=xixu">Renoise MCP</a> · <a href="https://github.com/renoise-ai/renoise-plugins-official">Renoise Skills &amp; CLI</a><br><br>
  9. <strong>Accelerate models, datasets, and packages—then turn those resources into talking-head videos without touching a timeline.</strong>
  10. </p>
  11. <div align="center">
  12. # Xget 🚀
  13. <a href="https://trendshift.io/repositories/14768" target="_blank"><img src="https://trendshift.io/api/badge/repositories/14768" alt="xixu-me%2FXget | Trendshift" width="250" height="55"/></a>
  14. [![Ask Zread](https://img.shields.io/badge/Ask_Zread-_.svg?style=flat&color=00b0aa&labelColor=000000&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuOTYxNTYgMS42MDAxSDIuMjQxNTZDMS44ODgxIDEuNjAwMSAxLjYwMTU2IDEuODg2NjQgMS42MDE1NiAyLjI0MDFWNC45NjAxQzEuNjAxNTYgNS4zMTM1NiAxLjg4ODEgNS42MDAxIDIuMjQxNTYgNS42MDAxSDQuOTYxNTZDNS4zMTUwMiA1LjYwMDEgNS42MDE1NiA1LjMxMzU2IDUuNjAxNTYgNC45NjAxVjIuMjQwMUM1LjYwMTU2IDEuODg2NjQgNS4zMTUwMiAxLjYwMDEgNC45NjE1NiAxLjYwMDFaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik00Ljk2MTU2IDEwLjM5OTlIMi4yNDE1NkMxLjg4ODEgMTAuMzk5OSAxLjYwMTU2IDEwLjY4NjQgMS42MDE1NiAxMS4wMzk5VjEzLjc1OTlDMS42MDE1NiAxNC4xMTM0IDEuODg4MSAxNC4zOTk5IDIuMjQxNTYgMTQuMzk5OUg0Ljk2MTU2QzUuMzE1MDIgMTQuMzk5OSA1LjYwMTU2IDE0LjExMzQgNS42MDE1NiAxMy43NTk5VjExLjAzOTlDNS42MDE1NiAxMC42ODY0IDUuMzE1MDIgMTAuMzk5OSA0Ljk2MTU2IDEwLjM5OTlaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik0xMy43NTg0IDEuNjAwMUgxMS4wMzg0QzEwLjY4NSAxLjYwMDEgMTAuMzk4NCAxLjg4NjY0IDEwLjM5ODQgMi4yNDAxVjQuOTYwMUMxMC4zOTg0IDUuMzEzNTYgMTAuNjg1IDUuNjAwMSAxMS4wMzg0IDUuNjAwMUgxMy43NTg0QzE0LjExMTkgNS42MDAxIDE0LjM5ODQgNS4zMTM1NiAxNC4zOTg0IDQuOTYwMVYyLjI0MDFDMTQuMzk4NCAxLjg4NjY0IDE0LjExMTkgMS42MDAxIDEzLjc1ODQgMS42MDAxWiIgZmlsbD0iI2ZmZiIvPgo8cGF0aCBkPSJNNCAxMkwxMiA0TDQgMTJaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik00IDEyTDEyIDQiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K&logoColor=ffffff)](https://zread.ai/xixu-me/Xget)
  15. [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/xixu-me/xget)
  16. [![codecov](https://codecov.io/github/xixu-me/xget/graph/badge.svg?token=KDFMG9YX8G)](https://codecov.io/github/xixu-me/xget)
  17. [![Chromium](https://img.shields.io/badge/Chromium-4285F4?logo=googlechrome&logoColor=white)](#ecosystem-integration)
  18. [![Firefox](https://img.shields.io/badge/Firefox-FF7139?logo=Firefox&logoColor=white)](#ecosystem-integration)
  19. [![Cloudflare](https://img.shields.io/badge/Cloudflare-F38020?&logo=cloudflare&logoColor=white)](#deploy-to-cloudflare-workers)
  20. [![EdgeOne](https://img.shields.io/badge/EdgeOne-006EFF?&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAACNklEQVR4nJ1W7XHbMAx96ul/lQnCDapOUG3gdIIkG6QjdINOUGeDNhNYmUDuBHIWiNQF/PqDYAxDoMUGdzx+AXgAAQGqSKKAOgAbma8BXMn5DGAv4wlAv6qJ5KVxR3LkOR3NWu9HkcnqzF0EkoMDcsysLd8oOooAb0lOF7wqpYnkzRrgZkVJ8mp0jLFzotscYOC6ZyNjjLbOnTZI7weSjQc4ZoQmkjuSneIdMoADyR9iVKuB0qglWYOT0n9Uys/qPAD4ZHgfAXwzfO/6LLyxcTxbJEdufFi1aEk32l6Z+1Lhep1lQa1aVwI2O3wBsTIFxOoUADzVspgzQp6S1pztATRyvpG5lTNLTUVykssJwF91OQP4bATuAGzVngBexJD0vJW51/u5VpZc4VSUgViMLX1xlIUCoERNLoYE8Ns579S6chTngGYZh1oWjRGoEGOjKSAGP/HovqblDoiJtAfwLPv5xHnqCrbNeK3K8qX9juQDMx3CVpoesXLop7DeATF+2rsKsbo8oizD3zzsjLWk30RHw7N7R5V68/AgMUpeWg9bLLOxL/AniOw1Yp58t/FZi5+mzuFrJJY/Sb6qFzmmV9PMgzBsHUW/eN5gJwdk54Rm4YTXgHPx00p24qEGydFElb3e09nUbpXVuZ+oS/88Z62rJLMelHAJSDqf6LxWSXvS35/+Vr0SlqrPHsBXxOw/o5IGHDLKE4AucS8A7hG7zAIMACryv371WxkfxYhZFD8jFvt+TdE/deK28xBAUlEAAAAASUVORK5CYII=)](#deploy-to-edgeone-pages)
  21. [![Vercel](https://img.shields.io/badge/Vercel-000000?&logo=vercel&logoColor=white)](#deploy-to-vercel)
  22. [![Netlify](https://img.shields.io/badge/Netlify-00C7B7?&logo=netlify&logoColor=white)](#deploy-to-netlify)
  23. [![Deno](https://img.shields.io/badge/Deno-000000?&logo=deno&logoColor=white)](#deploy-to-deno-deploy)
  24. [![Docker](https://img.shields.io/badge/Docker-2496ED?&logo=docker&logoColor=white)](#self-hosted-deployment)
  25. [![Podman](https://img.shields.io/badge/Podman-892CA0?&logo=podman&logoColor=white)](#self-hosted-deployment)
  26. **English** | [汉语(简体)](README.zh-Hans.md) |
  27. [漢語(繁體)](README.zh-Hant.md)
  28. </div>
  29. An ultra-high-performance, secure, all-in-one acceleration engine for developer resources. It provides unified, efficient acceleration for code hosting, model
  30. and dataset hubs, package registries, container registries, AI inference
  31. providers, and more, while handling caching, retries, security headers, and
  32. protocol-specific compatibility behavior for you.
  33. Technical deep dive:
  34. **_[Deep Dive into Xget: A High-Performance, Multi-Protocol, and Secure Acceleration Engine for Developer Resources](https://blog.xi-xu.me/en/2025/10/07/Deep-Dive-into-Xget.html)_**.
  35. Xget was invited onto [GitCode](https://gitcode.com/xixu-me/xget) and
  36. recognized as a G-Star graduation project. As "a widely used public project",
  37. it receives support from OpenAI's
  38. [Codex for Open Source](https://developers.openai.com/community/codex-for-oss)
  39. and has also been spontaneously recommended by several tech creators, including
  40. [Ruan Yifeng](https://www.ruanyifeng.com/blog/2025/12/weekly-issue-379.html#:~:text=Xget),
  41. [GitHubDaily](https://x.com/i/status/1956204203937829256),
  42. [FishC](https://www.bilibili.com/video/BV1EeeBzVEop/), and
  43. [Xuanli 199](https://www.bilibili.com/video/BV197hqzsE8Y/?t=8). Thanks to every
  44. individual, team, and community that supports, shares, recommends, or actively
  45. uses Xget.
  46. ## Supported Platforms
  47. > [!NOTE]
  48. > The badges below point to the relevant usage or deployment sections in this
  49. > README.
  50. [![GitHub](https://img.shields.io/badge/GitHub-181717?&logo=github&logoColor=white)](#github)
  51. [![GitLab](https://img.shields.io/badge/GitLab-FC6D26?&logo=gitlab&logoColor=white)](#gitlab)
  52. [![Gitea](https://img.shields.io/badge/Gitea-609926?&logo=gitea&logoColor=white)](#gitea)
  53. [![Codeberg](https://img.shields.io/badge/Codeberg-2185D0?&logo=codeberg&logoColor=white)](#codeberg)
  54. [![SourceForge](https://img.shields.io/badge/SourceForge-FF6600?&logo=sourceforge&logoColor=white)](#sourceforge)
  55. [![AOSP](https://img.shields.io/badge/AOSP-3DDC84?&logo=android&logoColor=white)](#aosp-android-open-source-project)
  56. [![Hugging Face](https://img.shields.io/badge/Hugging%20Face-FFD21E?&logo=huggingface&logoColor=black)](#hugging-face-mirror)
  57. [![Civitai](https://img.shields.io/badge/Civitai-1971C2)](#civitai-ai-model-platform)
  58. [![npm](https://img.shields.io/badge/npm-CB3837?logo=npm&logoColor=white)](#npm-package-acceleration)
  59. [![PyPI](https://img.shields.io/badge/PyPI-3775A9?logo=pypi&logoColor=white)](#python-package-acceleration)
  60. [![conda](https://img.shields.io/badge/conda-44A833?logo=anaconda&logoColor=white)](#conda-package-acceleration)
  61. [![Maven](https://img.shields.io/badge/Maven-C71A36?logo=apachemaven&logoColor=white)](#maven-package-acceleration)
  62. [![Apache](https://img.shields.io/badge/Apache-D22128?logo=apache&logoColor=white)](#apache-software-download-acceleration)
  63. [![Gradle](https://img.shields.io/badge/Gradle-02303A?logo=gradle&logoColor=white)](#gradle-package-acceleration)
  64. [![Homebrew](https://img.shields.io/badge/Homebrew-FBB040?logo=homebrew&logoColor=black)](#homebrew-package-acceleration)
  65. [![RubyGems](https://img.shields.io/badge/RubyGems-E9573F?logo=rubygems&logoColor=white)](#ruby-package-acceleration)
  66. [![CRAN](https://img.shields.io/badge/CRAN-276DC3?logo=r&logoColor=white)](#r-package-acceleration)
  67. [![CPAN](https://img.shields.io/badge/CPAN-0073A1?logo=perl&logoColor=white)](#perl-package-acceleration)
  68. [![CTAN](https://img.shields.io/badge/CTAN-008080?logo=latex&logoColor=white)](#texlatex-package-acceleration)
  69. [![Go](https://img.shields.io/badge/Go-00ADD8?logo=go&logoColor=white)](#go-module-acceleration)
  70. [![NuGet](https://img.shields.io/badge/NuGet-004880?logo=nuget&logoColor=white)](#nuget-package-acceleration)
  71. [![Rust](https://img.shields.io/badge/Rust-000000?logo=rust&logoColor=white)](#rust-package-acceleration)
  72. [![Packagist](https://img.shields.io/badge/Packagist-F28D1A?logo=packagist&logoColor=white)](#php-package-acceleration)
  73. [![Flathub](https://img.shields.io/badge/Flathub-000000?logo=flathub&logoColor=white)](#flathub-repository-mirror)
  74. [![Debian](https://img.shields.io/badge/Debian-A81D33?logo=debian&logoColor=white)](#debianubuntu-apt-configuration)
  75. [![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?logo=ubuntu&logoColor=white)](#debianubuntu-apt-configuration)
  76. [![Fedora](https://img.shields.io/badge/Fedora-51A2DA?logo=fedora&logoColor=white)](#fedora-dnf-configuration)
  77. [![Rocky Linux](https://img.shields.io/badge/Rocky%20Linux-10B981?logo=rockylinux&logoColor=white)](#rocky-linux-dnf-configuration)
  78. [![openSUSE](https://img.shields.io/badge/openSUSE-73BA25?logo=opensuse&logoColor=white)](#opensuse-zypper-configuration)
  79. [![Arch Linux](https://img.shields.io/badge/Arch%20Linux-1793D1?logo=archlinux&logoColor=white)](#arch-linux-pacman-configuration)
  80. [![arXiv](https://img.shields.io/badge/arXiv-B31B1B?logo=arxiv&logoColor=white)](#arxiv-paper-download)
  81. [![F-Droid](https://img.shields.io/badge/F--Droid-1976D2?logo=f-droid&logoColor=white)](#f-droid-repository-mirror)
  82. [![Jenkins](https://img.shields.io/badge/Jenkins-D24939?logo=jenkins&logoColor=white)](#jenkins-plugin-download)
  83. [![Container Registries](https://img.shields.io/badge/Container%20Registries-262261?logo=opencontainersinitiative&logoColor=white)](#container-registries)
  84. [![AI Inference Providers](https://img.shields.io/badge/AI%20Inference%20Providers-94A3B8?logo=openrouter&logoColor=white)](#ai-inference-providers)
  85. ## Quick Start
  86. **Pre-deployed Instance: `xget.xi-xu.me`** - For evaluation and trial only,
  87. deploy your own instance for production or availability-sensitive workloads
  88. > [!WARNING]
  89. > If you self-host it, put it behind authentication, IP allowlists,
  90. > or both unless you explicitly intend to run a public mirror.
  91. **URL Converter:** [**`xuc.xi-xu.me`**](https://xuc.xi-xu.me) - Convert any
  92. supported platform URL to Xget's acceleration format with one click
  93. **Agent Skills: `npx skills add xixu-me/skills -s xget`**
  94. ## Why Xget
  95. ### Performance-Oriented Design
  96. - **Global Edge Runtime**: Built on Cloudflare Workers and designed to run
  97. close to users and upstream services
  98. - **Protocol-Aware Handling**: Supports HTTP/3, range requests, Git traffic,
  99. container registry flows, and AI inference APIs
  100. - **Cache and Retry Pipeline**: Includes edge caching for compatible
  101. responses, retry logic for transient upstream failures, and request
  102. normalization for supported platforms
  103. - **Connection Reuse**: Uses standard HTTP connection reuse and keep-alive
  104. behavior where the runtime and upstream allow it
  105. - **Request Timing Visibility**: Can expose timing data through
  106. `X-Performance-Metrics` headers where protocol compatibility allows
  107. ### Deep Multi-Platform Integration
  108. - **All-in-One Multi-Platform Support**: Unified support for mainstream
  109. platforms in various development scenarios
  110. - **Intelligent Recognition and Conversion**: Automatically recognizes platform
  111. prefixes and converts to correct URL structures for target platforms
  112. - **Consistent Acceleration Experience**: Enjoy unified and stable ultra-fast
  113. download experience regardless of file type or source
  114. ### Enterprise-Grade Security
  115. - **Multi-Layer Security Headers**:
  116. - `Strict-Transport-Security`: Enforces HTTPS transmission, prevents
  117. man-in-the-middle attacks
  118. - `X-Frame-Options: DENY`: Prevents clickjacking attacks
  119. - `Content-Security-Policy`: Strict content security policy
  120. - `Referrer-Policy`: Controls referrer information leakage
  121. - `Permissions-Policy`: Restricts privacy-sensitive browser features by
  122. default
  123. - `X-XSS-Protection`: Legacy compatibility header for older browsers
  124. - **Request Validation Mechanism**:
  125. - HTTP method whitelist: Regular requests limited to GET/HEAD, while Git/LFS,
  126. container registry, AI inference, and Hugging Face API traffic allow `POST`,
  127. `PUT`, `PATCH`, and `DELETE` as needed
  128. - Path length limit: Prevents excessively long URL attacks (max 2048
  129. characters)
  130. - Input sanitization: Prevents path traversal and injection attacks
  131. - **Timeout Protection**: 30-second request timeout, prevents resource
  132. exhaustion and malicious requests
  133. ### Modern Architecture and Reliability
  134. - **Intelligent Retry Mechanism**:
  135. - Maximum 3 retries with linear delay strategy (1000ms × retry count)
  136. - Automatic error recovery, improved download success rate
  137. - Timeout detection and interruption handling
  138. - **Efficient Caching Strategy**:
  139. - Strategy-based cache durations keep mutable metadata fresh while caching
  140. immutable artifacts longer
  141. - Git operations skip caching to ensure real-time data
  142. - Edge caching based on Cloudflare Cache API and Cloudflare fetch cache
  143. controls
  144. - **Performance Monitoring System**:
  145. - Built-in `PerformanceMonitor` class for real-time tracking of request stage
  146. durations
  147. - Detailed performance data provided via `X-Performance-Metrics` response
  148. header
  149. - Cache hit rate statistics and optimization recommendations
  150. ### Full Git Protocol Compatibility
  151. - **Smart Protocol Detection**:
  152. - Automatically recognizes Git-specific endpoints (`/info/refs`,
  153. `/git-upload-pack`, `/git-receive-pack`)
  154. - Detects Git client User-Agent patterns
  155. - Supports query parameters like `service=git-upload-pack`
  156. - **Complete Operation Support**:
  157. - `git clone`: Full repository cloning, supports shallow clones and branch
  158. specification
  159. - `git push`: Code push and branch management
  160. - `git pull/fetch`: Incremental updates and remote synchronization
  161. - `git submodule`: Recursive submodule cloning
  162. - **Protocol Optimization**:
  163. - Preserves Git-specific request headers and authentication information
  164. - Smart User-Agent handling (default `git/2.34.1`)
  165. - Supports Git LFS large file transfer
  166. ### Ecosystem Integration
  167. - **Dedicated Browser Extension**:
  168. [Xget Now](https://github.com/xixu-me/Xget-Now) provides seamless experience
  169. - Automatic URL redirection, no manual URL modification needed
  170. - Support for custom Xget instance domains
  171. - Multi-platform preference settings and blacklist/whitelist management
  172. - Local processing ensures privacy and security
  173. - **Download Tool Compatibility**: Perfect support for wget, cURL, aria2, IDM,
  174. and other mainstream download tools
  175. - **CI/CD Integration**: Can be used directly in GitHub Actions, GitLab CI, and
  176. other environments
  177. ## Architecture
  178. ### Request Processing Flow
  179. ```mermaid
  180. graph TD
  181. Request[User Request / User-Agent] --> Identify{Identify Platform}
  182. Identify -->|Invalid| Error[Return Error]
  183. Identify -->|Valid| Transform[Transform Path]
  184. Transform --> CheckProtocol{Check Protocol}
  185. CheckProtocol -->|Git| GitHandler[Git Protocol Adapter]
  186. CheckProtocol -->|Docker| DockerHandler[Docker Protocol Adapter]
  187. CheckProtocol -->|AI| AIHandler[AI Inference Adapter]
  188. CheckProtocol -->|Standard| StdHandler[Standard Adapter]
  189. GitHandler --> Upstream[Fetch Upstream]
  190. DockerHandler --> Upstream
  191. AIHandler --> Upstream
  192. StdHandler --> CacheCheck{Check Cache}
  193. CacheCheck -->|Hit| ReturnCache[Return Cached Response]
  194. CacheCheck -->|Miss| Upstream
  195. Upstream -->|Success| ProcessResponse[Process Response]
  196. Upstream -->|Failure| Retry{Retry?}
  197. Retry -->|Yes| Wait["Wait (Backoff)"] --> Upstream
  198. Retry -->|No| Error
  199. ProcessResponse --> Finalize[Add Headers & Return]
  200. Finalize --> Response[Response]
  201. ```
  202. ### Component Architecture
  203. ```mermaid
  204. classDiagram
  205. class Worker {
  206. +fetch(request)
  207. }
  208. class AppHandler {
  209. +handleRequest(request, env, ctx)
  210. }
  211. class PlatformCatalog {
  212. +PLATFORM_CATALOG
  213. }
  214. class PlatformRouting {
  215. +transformPath()
  216. +resolveTarget()
  217. }
  218. class Validation {
  219. +validateRequest()
  220. +isDockerRequest()
  221. }
  222. class GitProtocol {
  223. +configureGitHeaders()
  224. +isGitRequest()
  225. }
  226. class DockerProtocol {
  227. +handleDockerAuth()
  228. +fetchToken()
  229. }
  230. class AIProtocol {
  231. +configureAIHeaders()
  232. }
  233. class UpstreamPipeline {
  234. +tryReadCachedResponse()
  235. +fetchUpstreamResponse()
  236. }
  237. class ResponsePipeline {
  238. +finalizeResponse()
  239. }
  240. class Security {
  241. +addSecurityHeaders()
  242. }
  243. class Performance {
  244. +monitor()
  245. }
  246. Worker --> AppHandler
  247. AppHandler --> PlatformCatalog
  248. AppHandler --> PlatformRouting
  249. AppHandler --> Validation
  250. AppHandler --> GitProtocol
  251. AppHandler --> DockerProtocol
  252. AppHandler --> AIProtocol
  253. AppHandler --> UpstreamPipeline
  254. AppHandler --> ResponsePipeline
  255. AppHandler --> Security
  256. AppHandler --> Performance
  257. PlatformRouting --> PlatformCatalog
  258. ```
  259. ## URL Conversion Rules
  260. Using the pre-deployed instance **`xget.xi-xu.me`** or your own deployed
  261. instance, simply replace the domain and add the platform prefix:
  262. ### Conversion Format
  263. | Platform | Platform Prefix | Original URL Format | Accelerated URL Format |
  264. | ---------------------- | --------------- | -------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
  265. | GitHub | `gh` | `https://github.com/...` | `https://xget.xi-xu.me/gh/...` |
  266. | GitHub Gist | `gist` | `https://gist.github.com/...` | `https://xget.xi-xu.me/gist/...` |
  267. | GitLab | `gl` | `https://gitlab.com/...` | `https://xget.xi-xu.me/gl/...` |
  268. | Gitea | `gitea` | `https://gitea.com/...` | `https://xget.xi-xu.me/gitea/...` |
  269. | Codeberg | `codeberg` | `https://codeberg.org/...` | `https://xget.xi-xu.me/codeberg/...` |
  270. | SourceForge | `sf` | `https://sourceforge.net/...` | `https://xget.xi-xu.me/sf/...` |
  271. | AOSP | `aosp` | `https://android.googlesource.com/...` | `https://xget.xi-xu.me/aosp/...` |
  272. | Hugging Face | `hf` | `https://huggingface.co/...` | `https://xget.xi-xu.me/hf/...` |
  273. | Civitai | `civitai` | `https://civitai.com/...` | `https://xget.xi-xu.me/civitai/...` |
  274. | npm | `npm` | `https://registry.npmjs.org/...` | `https://xget.xi-xu.me/npm/...` |
  275. | PyPI | `pypi` | `https://pypi.org/...` | `https://xget.xi-xu.me/pypi/...` |
  276. | conda | `conda` | `https://repo.anaconda.com/...` and `https://conda.anaconda.org/...` | `https://xget.xi-xu.me/conda/...` and `https://xget.xi-xu.me/conda/community/...` |
  277. | Maven | `maven` | `https://repo1.maven.org/...` | `https://xget.xi-xu.me/maven/...` |
  278. | Apache | `apache` | `https://downloads.apache.org/...` | `https://xget.xi-xu.me/apache/...` |
  279. | Gradle | `gradle` | `https://plugins.gradle.org/...` | `https://xget.xi-xu.me/gradle/...` |
  280. | Homebrew | `homebrew` | `https://github.com/Homebrew/...` | `https://xget.xi-xu.me/homebrew/...` |
  281. | RubyGems | `rubygems` | `https://rubygems.org/...` | `https://xget.xi-xu.me/rubygems/...` |
  282. | CRAN | `cran` | `https://cran.r-project.org/...` | `https://xget.xi-xu.me/cran/...` |
  283. | CPAN | `cpan` | `https://www.cpan.org/...` | `https://xget.xi-xu.me/cpan/...` |
  284. | CTAN | `ctan` | `https://tug.ctan.org/...` | `https://xget.xi-xu.me/ctan/...` |
  285. | Go Modules | `golang` | `https://proxy.golang.org/...` | `https://xget.xi-xu.me/golang/...` |
  286. | NuGet | `nuget` | `https://api.nuget.org/...` | `https://xget.xi-xu.me/nuget/...` |
  287. | Rust Crates | `crates` | `https://crates.io/...` | `https://xget.xi-xu.me/crates/...` |
  288. | Packagist | `packagist` | `https://repo.packagist.org/...` | `https://xget.xi-xu.me/packagist/...` |
  289. | Flathub | `flathub` | `https://dl.flathub.org/...` | `https://xget.xi-xu.me/flathub/...` |
  290. | Debian | `debian` | `https://deb.debian.org/...` | `https://xget.xi-xu.me/debian/...` |
  291. | Ubuntu | `ubuntu` | `https://archive.ubuntu.com/...` | `https://xget.xi-xu.me/ubuntu/...` |
  292. | Fedora | `fedora` | `https://mirrors.kernel.org/fedora/...` | `https://xget.xi-xu.me/fedora/...` |
  293. | Rocky Linux | `rocky` | `https://download.rockylinux.org/...` | `https://xget.xi-xu.me/rocky/...` |
  294. | openSUSE | `opensuse` | `https://download.opensuse.org/...` | `https://xget.xi-xu.me/opensuse/...` |
  295. | Arch Linux | `arch` | `https://geo.mirror.pkgbuild.com/...` | `https://xget.xi-xu.me/arch/...` |
  296. | arXiv | `arxiv` | `https://arxiv.org/...` | `https://xget.xi-xu.me/arxiv/...` |
  297. | F-Droid | `fdroid` | `https://f-droid.org/...` | `https://xget.xi-xu.me/fdroid/...` |
  298. | Jenkins Plugins | `jenkins` | `https://updates.jenkins.io/...` | `https://xget.xi-xu.me/jenkins/...` |
  299. | Container Registries | `cr` | See [Container Registries](#container-registries) | See [Container Registries](#container-registries) |
  300. | AI Inference Providers | `ip` | See [AI Inference Providers](#ai-inference-providers) | See [AI Inference Providers](#ai-inference-providers) |
  301. ### Platform Conversion Examples
  302. #### GitHub
  303. ```url
  304. # Original URL
  305. https://github.com/microsoft/vscode/archive/refs/heads/main.zip
  306. # Converted (add gh prefix)
  307. https://xget.xi-xu.me/gh/microsoft/vscode/archive/refs/heads/main.zip
  308. ```
  309. #### GitHub Gist
  310. ```url
  311. # Original URL
  312. https://gist.github.com/xixu-me/e2ea9db6b1f143892495f796fef18631/raw/3b8807172ee492d0da3a7e370b0fb88fc97b53e6/Free-ChatGPT-Paid-Plan.md
  313. # Converted (add gist prefix)
  314. https://xget.xi-xu.me/gist/xixu-me/e2ea9db6b1f143892495f796fef18631/raw/3b8807172ee492d0da3a7e370b0fb88fc97b53e6/Free-ChatGPT-Paid-Plan.md
  315. ```
  316. #### GitLab
  317. ```url
  318. # Original URL
  319. https://gitlab.com/gitlab-org/gitlab/-/archive/master/gitlab-master.zip
  320. # Converted (add gl prefix)
  321. https://xget.xi-xu.me/gl/gitlab-org/gitlab/-/archive/master/gitlab-master.zip
  322. ```
  323. #### Gitea
  324. ```url
  325. # Original URL
  326. https://gitea.com/gitea/gitea/archive/master.zip
  327. # Converted (add gitea prefix)
  328. https://xget.xi-xu.me/gitea/gitea/gitea/archive/master.zip
  329. ```
  330. #### Codeberg
  331. ```url
  332. # Original URL
  333. https://codeberg.org/forgejo/forgejo/archive/forgejo.zip
  334. # Converted (add codeberg prefix)
  335. https://xget.xi-xu.me/codeberg/forgejo/forgejo/archive/forgejo.zip
  336. ```
  337. #### SourceForge
  338. ```url
  339. # Original URL
  340. https://sourceforge.net/projects/sevenzip/files/7-Zip/23.01/7z2301-x64.exe/download
  341. # Converted (add sf prefix)
  342. https://xget.xi-xu.me/sf/projects/sevenzip/files/7-Zip/23.01/7z2301-x64.exe/download
  343. ```
  344. #### AOSP (Android Open Source Project)
  345. ```url
  346. # AOSP project original URL
  347. https://android.googlesource.com/platform/frameworks/base
  348. # Converted (add aosp prefix)
  349. https://xget.xi-xu.me/aosp/platform/frameworks/base
  350. # AOSP device tree original URL
  351. https://android.googlesource.com/device/google/pixel
  352. # Converted (add aosp prefix)
  353. https://xget.xi-xu.me/aosp/device/google/pixel
  354. ```
  355. #### Hugging Face
  356. ```url
  357. # Model file original URL
  358. https://huggingface.co/microsoft/DialoGPT-medium/resolve/main/pytorch_model.bin
  359. # Converted (add hf prefix)
  360. https://xget.xi-xu.me/hf/microsoft/DialoGPT-medium/resolve/main/pytorch_model.bin
  361. # Dataset file original URL
  362. https://huggingface.co/datasets/rajpurkar/squad/resolve/main/plain_text/train-00000-of-00001.parquet
  363. # Converted (add hf prefix)
  364. https://xget.xi-xu.me/hf/datasets/rajpurkar/squad/resolve/main/plain_text/train-00000-of-00001.parquet
  365. ```
  366. #### Civitai
  367. ```url
  368. # AI model download original URL
  369. https://civitai.com/api/download/models/128713
  370. # Converted (add civitai prefix)
  371. https://xget.xi-xu.me/civitai/api/download/models/128713
  372. # Model API original URL
  373. https://civitai.com/api/v1/models/7240
  374. # Converted (add civitai prefix)
  375. https://xget.xi-xu.me/civitai/api/v1/models/7240
  376. # Model version API original URL
  377. https://civitai.com/api/v1/model-versions/128713
  378. # Converted (add civitai prefix)
  379. https://xget.xi-xu.me/civitai/api/v1/model-versions/128713
  380. ```
  381. #### npm
  382. ```url
  383. # Package file original URL
  384. https://registry.npmjs.org/react/-/react-18.2.0.tgz
  385. # Converted (add npm prefix)
  386. https://xget.xi-xu.me/npm/react/-/react-18.2.0.tgz
  387. # Package metadata original URL
  388. https://registry.npmjs.org/lodash
  389. # Converted (add npm prefix)
  390. https://xget.xi-xu.me/npm/lodash
  391. ```
  392. #### PyPI
  393. ```url
  394. # Python package file original URL
  395. https://pypi.org/packages/source/r/requests/requests-2.31.0.tar.gz
  396. # Converted (add pypi prefix)
  397. https://xget.xi-xu.me/pypi/packages/source/r/requests/requests-2.31.0.tar.gz
  398. # Wheel file original URL
  399. https://pypi.org/packages/py3/r/requests/requests-2.31.0-py3-none-any.whl
  400. # Converted (add pypi prefix)
  401. https://xget.xi-xu.me/pypi/packages/py3/r/requests/requests-2.31.0-py3-none-any.whl
  402. ```
  403. #### conda
  404. ```url
  405. # Default channel package file original URL
  406. https://repo.anaconda.com/pkgs/main/linux-64/numpy-1.24.3-py311h08b1b3b_1.conda
  407. # Converted (add conda prefix)
  408. https://xget.xi-xu.me/conda/pkgs/main/linux-64/numpy-1.24.3-py311h08b1b3b_1.conda
  409. # Community channel metadata original URL
  410. https://conda.anaconda.org/conda-forge/linux-64/repodata.json
  411. # Converted (add conda/community prefix)
  412. https://xget.xi-xu.me/conda/community/conda-forge/linux-64/repodata.json
  413. ```
  414. #### Maven
  415. ```url
  416. # Maven Central Repository JAR file original URL
  417. https://repo1.maven.org/maven2/org/springframework/spring-core/5.3.21/spring-core-5.3.21.jar
  418. # Converted (add maven prefix)
  419. https://xget.xi-xu.me/maven/maven2/org/springframework/spring-core/5.3.21/spring-core-5.3.21.jar
  420. # Maven metadata original URL
  421. https://repo1.maven.org/maven2/org/apache/commons/commons-lang3/maven-metadata.xml
  422. # Converted (add maven prefix)
  423. https://xget.xi-xu.me/maven/maven2/org/apache/commons/commons-lang3/maven-metadata.xml
  424. ```
  425. #### Apache Software Download
  426. ```url
  427. # Apache software download original URL
  428. https://downloads.apache.org/kafka/3.6.1/kafka_2.13-3.6.1.tgz
  429. # Converted (add apache prefix)
  430. https://xget.xi-xu.me/apache/kafka/3.6.1/kafka_2.13-3.6.1.tgz
  431. # Apache Maven download original URL
  432. https://downloads.apache.org/maven/maven-3/3.9.5/binaries/apache-maven-3.9.5-bin.tar.gz
  433. # Converted (add apache prefix)
  434. https://xget.xi-xu.me/apache/maven/maven-3/3.9.5/binaries/apache-maven-3.9.5-bin.tar.gz
  435. # Apache Spark download original URL
  436. https://downloads.apache.org/spark/spark-3.5.0/spark-3.5.0-bin-hadoop3.tgz
  437. # Converted (add apache prefix)
  438. https://xget.xi-xu.me/apache/spark/spark-3.5.0/spark-3.5.0-bin-hadoop3.tgz
  439. ```
  440. #### Gradle
  441. ```url
  442. # Gradle plugin portal JAR file original URL
  443. https://plugins.gradle.org/m2/org/gradle/gradle-hello-world-plugin/0.2/gradle-hello-world-plugin-0.2.jar
  444. # Converted (add gradle prefix)
  445. https://xget.xi-xu.me/gradle/m2/org/gradle/gradle-hello-world-plugin/0.2/gradle-hello-world-plugin-0.2.jar
  446. # Gradle plugin metadata original URL
  447. https://plugins.gradle.org/m2/com/github/ben-manes/gradle-versions-plugin/0.51.0/gradle-versions-plugin-0.51.0.module
  448. # Converted (add gradle prefix)
  449. https://xget.xi-xu.me/gradle/m2/com/github/ben-manes/gradle-versions-plugin/0.51.0/gradle-versions-plugin-0.51.0.module
  450. ```
  451. #### Homebrew
  452. ```url
  453. # Homebrew formula repository original URL
  454. https://github.com/Homebrew/homebrew-core/raw/HEAD/Formula/g/git.rb
  455. # Converted (add homebrew prefix)
  456. https://xget.xi-xu.me/homebrew/homebrew-core/raw/HEAD/Formula/g/git.rb
  457. # Homebrew API original URL
  458. https://formulae.brew.sh/api/formula/git.json
  459. # Converted (add homebrew/api prefix)
  460. https://xget.xi-xu.me/homebrew/api/formula/git.json
  461. # Homebrew Bottles original URL
  462. https://ghcr.io/v2/homebrew/core/git/manifests/2.39.0
  463. # Converted (add homebrew/bottles prefix)
  464. https://xget.xi-xu.me/homebrew/bottles/v2/homebrew/core/git/manifests/2.39.0
  465. ```
  466. #### RubyGems
  467. ```url
  468. # RubyGems package file original URL
  469. https://rubygems.org/gems/rails-7.0.4.gem
  470. # Converted (add rubygems prefix)
  471. https://xget.xi-xu.me/rubygems/gems/rails-7.0.4.gem
  472. # RubyGems API original URL
  473. https://rubygems.org/api/v1/gems/nokogiri.json
  474. # Converted (add rubygems prefix)
  475. https://xget.xi-xu.me/rubygems/api/v1/gems/nokogiri.json
  476. ```
  477. #### CRAN
  478. ```url
  479. # CRAN package file original URL
  480. https://cran.r-project.org/src/contrib/ggplot2_3.5.2.tar.gz
  481. # Converted (add cran prefix)
  482. https://xget.xi-xu.me/cran/src/contrib/ggplot2_3.5.2.tar.gz
  483. # CRAN package metadata original URL
  484. https://cran.r-project.org/web/packages/dplyr/DESCRIPTION
  485. # Converted (add cran prefix)
  486. https://xget.xi-xu.me/cran/web/packages/dplyr/DESCRIPTION
  487. ```
  488. #### CPAN (Perl Package Management)
  489. ```url
  490. # CPAN module original URL
  491. https://www.cpan.org/modules/by-module/DBI/DBI-1.643.tar.gz
  492. # Converted (add cpan prefix)
  493. https://xget.xi-xu.me/cpan/modules/by-module/DBI/DBI-1.643.tar.gz
  494. # CPAN author package original URL
  495. https://www.cpan.org/authors/id/T/TI/TIMB/DBI-1.643.tar.gz
  496. # Converted (add cpan prefix)
  497. https://xget.xi-xu.me/cpan/authors/id/T/TI/TIMB/DBI-1.643.tar.gz
  498. ```
  499. #### CTAN (TeX/LaTeX Package Management)
  500. ```url
  501. # CTAN package file original URL
  502. https://tug.ctan.org/tex-archive/macros/latex/contrib/beamer.zip
  503. # Converted (add ctan prefix)
  504. https://xget.xi-xu.me/ctan/tex-archive/macros/latex/contrib/beamer.zip
  505. # CTAN font file original URL
  506. https://tug.ctan.org/tex-archive/fonts/cm/pk/ljfour/public/cm/dpi600/cmr10.pk
  507. # Converted (add ctan prefix)
  508. https://xget.xi-xu.me/ctan/tex-archive/fonts/cm/pk/ljfour/public/cm/dpi600/cmr10.pk
  509. ```
  510. #### Go Modules
  511. ```url
  512. # Go module proxy original URL
  513. https://proxy.golang.org/github.com/gin-gonic/gin/@v/v1.9.1.zip
  514. # Converted (add golang prefix)
  515. https://xget.xi-xu.me/golang/github.com/gin-gonic/gin/@v/v1.9.1.zip
  516. # Go module info original URL
  517. https://proxy.golang.org/github.com/gorilla/mux/@v/list
  518. # Converted (add golang prefix)
  519. https://xget.xi-xu.me/golang/github.com/gorilla/mux/@v/list
  520. ```
  521. #### NuGet
  522. ```url
  523. # NuGet package download original URL
  524. https://api.nuget.org/v3-flatcontainer/newtonsoft.json/13.0.3/newtonsoft.json.13.0.3.nupkg
  525. # Converted (add nuget prefix)
  526. https://xget.xi-xu.me/nuget/v3-flatcontainer/newtonsoft.json/13.0.3/newtonsoft.json.13.0.3.nupkg
  527. # NuGet package metadata original URL
  528. https://api.nuget.org/v3/registration5-semver1/microsoft.aspnetcore.app/index.json
  529. # Converted (add nuget prefix)
  530. https://xget.xi-xu.me/nuget/v3/registration5-semver1/microsoft.aspnetcore.app/index.json
  531. ```
  532. #### Rust Crates
  533. ```url
  534. # Crate download original URL
  535. https://crates.io/api/v1/crates/serde/1.0.0/download
  536. # Converted (add crates prefix)
  537. https://xget.xi-xu.me/crates/serde/1.0.0/download
  538. # Crate metadata original URL
  539. https://crates.io/api/v1/crates/serde
  540. # Converted (add crates prefix)
  541. https://xget.xi-xu.me/crates/serde
  542. # Crate search original URL
  543. https://crates.io/api/v1/crates?q=serde
  544. # Converted (add crates prefix)
  545. https://xget.xi-xu.me/crates/?q=serde
  546. ```
  547. #### Packagist
  548. ```url
  549. # Packagist package metadata original URL
  550. https://repo.packagist.org/p2/symfony/console.json
  551. # Converted (add packagist prefix)
  552. https://xget.xi-xu.me/packagist/p2/symfony/console.json
  553. # Packagist package list original URL
  554. https://repo.packagist.org/packages/list.json
  555. # Converted (add packagist prefix)
  556. https://xget.xi-xu.me/packagist/packages/list.json
  557. ```
  558. #### Flathub
  559. ```url
  560. # Flathub repository original URL
  561. https://dl.flathub.org/repo/summary
  562. # Converted (add flathub prefix)
  563. https://xget.xi-xu.me/flathub/repo/summary
  564. # Flathub app reference original URL
  565. https://dl.flathub.org/repo/appstream/org.gnome.gedit.flatpakref
  566. # Converted (add flathub prefix)
  567. https://xget.xi-xu.me/flathub/repo/appstream/org.gnome.gedit.flatpakref
  568. ```
  569. #### Linux Distributions
  570. ```url
  571. # Debian package original URL
  572. https://deb.debian.org/debian/pool/main/c/curl/curl_7.88.1-10+deb12u4_amd64.deb
  573. # Converted (add debian prefix)
  574. https://xget.xi-xu.me/debian/debian/pool/main/c/curl/curl_7.88.1-10+deb12u4_amd64.deb
  575. # Ubuntu package original URL
  576. https://archive.ubuntu.com/ubuntu/pool/main/g/git/git_2.34.1-1ubuntu1.9_amd64.deb
  577. # Converted (add ubuntu prefix)
  578. https://xget.xi-xu.me/ubuntu/ubuntu/pool/main/g/git/git_2.34.1-1ubuntu1.9_amd64.deb
  579. # Fedora package original URL
  580. https://mirrors.kernel.org/fedora/releases/39/Everything/x86_64/os/Packages/n/nginx-1.24.0-1.fc39.x86_64.rpm
  581. # Converted (add fedora prefix)
  582. https://xget.xi-xu.me/fedora/releases/39/Everything/x86_64/os/Packages/n/nginx-1.24.0-1.fc39.x86_64.rpm
  583. # Rocky Linux package original URL
  584. https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/b/bash-5.1.8-6.el9.x86_64.rpm
  585. # Converted (add rocky prefix)
  586. https://xget.xi-xu.me/rocky/pub/rocky/9/BaseOS/x86_64/os/Packages/b/bash-5.1.8-6.el9.x86_64.rpm
  587. # openSUSE package original URL
  588. https://download.opensuse.org/distribution/leap/15.5/repo/oss/x86_64/vim-9.0.1572-150500.20.8.1.x86_64.rpm
  589. # Converted (add opensuse prefix)
  590. https://xget.xi-xu.me/opensuse/distribution/leap/15.5/repo/oss/x86_64/vim-9.0.1572-150500.20.8.1.x86_64.rpm
  591. # Arch Linux package original URL
  592. https://geo.mirror.pkgbuild.com/core/os/x86_64/linux-6.6.10.arch1-1-x86_64.pkg.tar.zst
  593. # Converted (add arch prefix)
  594. https://xget.xi-xu.me/arch/core/os/x86_64/linux-6.6.10.arch1-1-x86_64.pkg.tar.zst
  595. ```
  596. #### arXiv
  597. ```url
  598. # arXiv paper PDF original URL
  599. https://arxiv.org/pdf/2301.07041.pdf
  600. # Converted (add arxiv prefix)
  601. https://xget.xi-xu.me/arxiv/pdf/2301.07041.pdf
  602. # arXiv paper source original URL
  603. https://arxiv.org/e-print/2301.07041
  604. # Converted (add arxiv prefix)
  605. https://xget.xi-xu.me/arxiv/e-print/2301.07041
  606. ```
  607. #### F-Droid
  608. ```url
  609. # F-Droid app APK original URL
  610. https://f-droid.org/repo/org.fdroid.fdroid_1016050.apk
  611. # Converted (add fdroid prefix)
  612. https://xget.xi-xu.me/fdroid/repo/org.fdroid.fdroid_1016050.apk
  613. # F-Droid app metadata original URL
  614. https://f-droid.org/api/v1/packages/org.fdroid.fdroid
  615. # Converted (add fdroid prefix)
  616. https://xget.xi-xu.me/fdroid/api/v1/packages/org.fdroid.fdroid
  617. ```
  618. #### Jenkins Plugins
  619. ```url
  620. # Jenkins update center original URL
  621. https://updates.jenkins.io/update-center.json
  622. # Converted (add jenkins prefix)
  623. https://xget.xi-xu.me/jenkins/update-center.json
  624. # Jenkins plugin download original URL
  625. https://updates.jenkins.io/download/plugins/maven-plugin/3.27/maven-plugin.hpi
  626. # Converted (add jenkins prefix)
  627. https://xget.xi-xu.me/jenkins/download/plugins/maven-plugin/3.27/maven-plugin.hpi
  628. ```
  629. #### Container Registries
  630. Xget supports multiple container registries, using the `cr/[Registry Prefix]`
  631. format:
  632. | Container Registry | Registry Prefix | Original URL Format | Accelerated URL Format |
  633. | ---------------------------- | --------------- | ------------------------------------------- | ------------------------------------------- |
  634. | Docker Hub | `docker` | `https://registry-1.docker.io/...` | `https://xget.xi-xu.me/cr/docker/...` |
  635. | Quay.io | `quay` | `https://quay.io/...` | `https://xget.xi-xu.me/cr/quay/...` |
  636. | Google Container Registry | `gcr` | `https://gcr.io/...` | `https://xget.xi-xu.me/cr/gcr/...` |
  637. | Microsoft Container Registry | `mcr` | `https://mcr.microsoft.com/...` | `https://xget.xi-xu.me/cr/mcr/...` |
  638. | Amazon Public ECR | `ecr` | `https://public.ecr.aws/...` | `https://xget.xi-xu.me/cr/ecr/...` |
  639. | GitHub Container Registry | `ghcr` | `https://ghcr.io/...` | `https://xget.xi-xu.me/cr/ghcr/...` |
  640. | GitLab Container Registry | `gitlab` | `https://registry.gitlab.com/...` | `https://xget.xi-xu.me/cr/gitlab/...` |
  641. | Red Hat Registry | `redhat` | `https://registry.redhat.io/...` | `https://xget.xi-xu.me/cr/redhat/...` |
  642. | Oracle Container Registry | `oracle` | `https://container-registry.oracle.com/...` | `https://xget.xi-xu.me/cr/oracle/...` |
  643. | Cloudsmith | `cloudsmith` | `https://docker.cloudsmith.io/...` | `https://xget.xi-xu.me/cr/cloudsmith/...` |
  644. | DigitalOcean Registry | `digitalocean` | `https://registry.digitalocean.com/...` | `https://xget.xi-xu.me/cr/digitalocean/...` |
  645. | VMware Registry | `vmware` | `https://projects.registry.vmware.com/...` | `https://xget.xi-xu.me/cr/vmware/...` |
  646. | Kubernetes Registry | `k8s` | `https://registry.k8s.io/...` | `https://xget.xi-xu.me/cr/k8s/...` |
  647. | Heroku Registry | `heroku` | `https://registry.heroku.com/...` | `https://xget.xi-xu.me/cr/heroku/...` |
  648. | SUSE Registry | `suse` | `https://registry.suse.com/...` | `https://xget.xi-xu.me/cr/suse/...` |
  649. | openSUSE Registry | `opensuse` | `https://registry.opensuse.org/...` | `https://xget.xi-xu.me/cr/opensuse/...` |
  650. | Gitpod Registry | `gitpod` | `https://registry.gitpod.io/...` | `https://xget.xi-xu.me/cr/gitpod/...` |
  651. ```url
  652. # Docker Hub original URL (official images)
  653. https://registry-1.docker.io/v2/library/nginx/manifests/latest
  654. # Converted (add cr/docker prefix)
  655. https://xget.xi-xu.me/cr/docker/v2/nginx/manifests/latest
  656. # Docker Hub original URL (user images)
  657. https://registry-1.docker.io/v2/nginxinc/nginx-unprivileged/manifests/latest
  658. # Converted (add cr/docker prefix)
  659. https://xget.xi-xu.me/cr/docker/v2/nginxinc/nginx-unprivileged/manifests/latest
  660. # GitHub Container Registry original URL
  661. https://ghcr.io/v2/nginxinc/nginx-unprivileged/manifests/latest
  662. # Converted (add cr/ghcr prefix)
  663. https://xget.xi-xu.me/cr/ghcr/v2/nginxinc/nginx-unprivileged/manifests/latest
  664. # Google Container Registry original URL
  665. https://gcr.io/v2/distroless/base/manifests/latest
  666. # Converted (add cr/gcr prefix)
  667. https://xget.xi-xu.me/cr/gcr/v2/distroless/base/manifests/latest
  668. ```
  669. For use cases, see
  670. [Container Image Acceleration](#container-image-acceleration).
  671. #### AI Inference Providers
  672. Xget supports API acceleration for many mainstream AI inference providers, using
  673. the `ip/[AI Provider Prefix]` format:
  674. | AI Inference Provider | Provider Prefix | Original URL Format | Accelerated URL Format |
  675. | --------------------- | --------------- | ----------------------------------------------- | -------------------------------------------- |
  676. | OpenAI | `openai` | `https://api.openai.com/...` | `https://xget.xi-xu.me/ip/openai/...` |
  677. | Anthropic | `anthropic` | `https://api.anthropic.com/...` | `https://xget.xi-xu.me/ip/anthropic/...` |
  678. | Gemini | `gemini` | `https://generativelanguage.googleapis.com/...` | `https://xget.xi-xu.me/ip/gemini/...` |
  679. | Vertex AI | `vertexai` | `https://aiplatform.googleapis.com/...` | `https://xget.xi-xu.me/ip/vertexai/...` |
  680. | Cohere | `cohere` | `https://api.cohere.ai/...` | `https://xget.xi-xu.me/ip/cohere/...` |
  681. | Mistral AI | `mistralai` | `https://api.mistral.ai/...` | `https://xget.xi-xu.me/ip/mistralai/...` |
  682. | xAI | `xai` | `https://api.x.ai/...` | `https://xget.xi-xu.me/ip/xai/...` |
  683. | GitHub Models | `githubmodels` | `https://models.github.ai/...` | `https://xget.xi-xu.me/ip/githubmodels/...` |
  684. | NVIDIA API | `nvidiaapi` | `https://integrate.api.nvidia.com/...` | `https://xget.xi-xu.me/ip/nvidiaapi/...` |
  685. | Perplexity | `perplexity` | `https://api.perplexity.ai/...` | `https://xget.xi-xu.me/ip/perplexity/...` |
  686. | Groq | `groq` | `https://api.groq.com/...` | `https://xget.xi-xu.me/ip/groq/...` |
  687. | Cerebras | `cerebras` | `https://api.cerebras.ai/...` | `https://xget.xi-xu.me/ip/cerebras/...` |
  688. | SambaNova | `sambanova` | `https://api.sambanova.ai/...` | `https://xget.xi-xu.me/ip/sambanova/...` |
  689. | Siray | `siray` | `https://api.siray.ai/...` | `https://xget.xi-xu.me/ip/siray/...` |
  690. | HF Inference | `huggingface` | `https://router.huggingface.co/...` | `https://xget.xi-xu.me/ip/huggingface/...` |
  691. | Together | `together` | `https://api.together.xyz/...` | `https://xget.xi-xu.me/ip/together/...` |
  692. | Replicate | `replicate` | `https://api.replicate.com/...` | `https://xget.xi-xu.me/ip/replicate/...` |
  693. | Fireworks | `fireworks` | `https://api.fireworks.ai/...` | `https://xget.xi-xu.me/ip/fireworks/...` |
  694. | Nebius | `nebius` | `https://api.studio.nebius.ai/...` | `https://xget.xi-xu.me/ip/nebius/...` |
  695. | Jina | `jina` | `https://api.jina.ai/...` | `https://xget.xi-xu.me/ip/jina/...` |
  696. | Voyage AI | `voyageai` | `https://api.voyageai.com/...` | `https://xget.xi-xu.me/ip/voyageai/...` |
  697. | Fal AI | `falai` | `https://fal.run/...` | `https://xget.xi-xu.me/ip/falai/...` |
  698. | Novita | `novita` | `https://api.novita.ai/...` | `https://xget.xi-xu.me/ip/novita/...` |
  699. | Burncloud | `burncloud` | `https://ai.burncloud.com/...` | `https://xget.xi-xu.me/ip/burncloud/...` |
  700. | OpenRouter | `openrouter` | `https://openrouter.ai/...` | `https://xget.xi-xu.me/ip/openrouter/...` |
  701. | Poe | `poe` | `https://api.poe.com/...` | `https://xget.xi-xu.me/ip/poe/...` |
  702. | Featherless AI | `featherlessai` | `https://api.featherless.ai/...` | `https://xget.xi-xu.me/ip/featherlessai/...` |
  703. | Hyperbolic | `hyperbolic` | `https://api.hyperbolic.xyz/...` | `https://xget.xi-xu.me/ip/hyperbolic/...` |
  704. ```url
  705. # OpenAI API original URL
  706. https://api.openai.com/v1/chat/completions
  707. # Converted (add ip/openai prefix)
  708. https://xget.xi-xu.me/ip/openai/v1/chat/completions
  709. # Claude API original URL
  710. https://api.anthropic.com/v1/messages
  711. # Converted (add ip/anthropic prefix)
  712. https://xget.xi-xu.me/ip/anthropic/v1/messages
  713. # Gemini API original URL
  714. https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
  715. # Converted (add ip/gemini prefix)
  716. https://xget.xi-xu.me/ip/gemini/v1beta/models/gemini-2.5-flash:generateContent
  717. # HF Inference API original URL
  718. https://router.huggingface.co/hf-inference/models/openai/whisper-large-v3
  719. # Converted (add ip/huggingface prefix)
  720. https://xget.xi-xu.me/ip/huggingface/hf-inference/models/openai/whisper-large-v3
  721. ```
  722. For use cases, see
  723. [AI Inference API Acceleration](#ai-inference-api-acceleration).
  724. ## Use Cases
  725. ### Git Operations and Configuration
  726. #### Git Operations
  727. ```bash
  728. # Clone repository
  729. git clone https://xget.xi-xu.me/gh/microsoft/vscode.git
  730. # Clone specific branch
  731. git clone -b main https://xget.xi-xu.me/gh/facebook/react.git
  732. # Shallow clone (latest commit only)
  733. git clone --depth 1 https://xget.xi-xu.me/gh/torvalds/linux.git
  734. # Clone GitLab repository
  735. git clone https://xget.xi-xu.me/gl/gitlab-org/gitlab.git
  736. # Clone Gitea repository
  737. git clone https://xget.xi-xu.me/gitea/gitea/gitea.git
  738. # Clone Codeberg repository
  739. git clone https://xget.xi-xu.me/codeberg/forgejo/forgejo.git
  740. # Clone SourceForge repository
  741. git clone https://xget.xi-xu.me/sf/projects/mingw-w64/code.git
  742. # Clone AOSP repository
  743. git clone https://xget.xi-xu.me/aosp/platform/frameworks/base.git
  744. # Add remote repository
  745. git remote add upstream https://xget.xi-xu.me/gh/[owner]/[repository].git
  746. # Pull updates
  747. git pull https://xget.xi-xu.me/gh/microsoft/vscode.git main
  748. # Recursive submodule clone
  749. git clone --recursive https://xget.xi-xu.me/gh/[username]/[repository-with-submodules].git
  750. ```
  751. #### Git Global Acceleration Configuration
  752. ```bash
  753. # Configure Git to use Xget for specific domains
  754. git config --global url."https://xget.xi-xu.me/gh/".insteadOf "https://github.com/"
  755. git config --global url."https://xget.xi-xu.me/gl/".insteadOf "https://gitlab.com/"
  756. git config --global url."https://xget.xi-xu.me/gitea/".insteadOf "https://gitea.com/"
  757. git config --global url."https://xget.xi-xu.me/codeberg/".insteadOf "https://codeberg.org/"
  758. git config --global url."https://xget.xi-xu.me/sf/".insteadOf "https://sourceforge.net/"
  759. git config --global url."https://xget.xi-xu.me/aosp/".insteadOf "https://android.googlesource.com/"
  760. # Verify configuration
  761. git config --global --get-regexp url
  762. # Now all git clone operations for relevant platforms will automatically use Xget
  763. git clone https://github.com/microsoft/vscode.git # Automatically converted to Xget URL
  764. git clone https://gitlab.com/gitlab-org/gitlab.git # Automatically converted to Xget URL
  765. git clone https://codeberg.org/forgejo/forgejo.git # Automatically converted to Xget URL
  766. git clone https://android.googlesource.com/platform/frameworks/base.git # Automatically converted to Xget URL
  767. ```
  768. ### Mainstream Download Tool Integration
  769. #### wget Download
  770. ```bash
  771. # Download single file
  772. wget https://xget.xi-xu.me/gh/microsoft/vscode/archive/refs/heads/main.zip
  773. # Resume download
  774. wget -c https://xget.xi-xu.me/hf/microsoft/DialoGPT-large/resolve/main/pytorch_model.bin
  775. # Batch download
  776. wget -i urls.txt # urls.txt contains multiple Xget URLs
  777. ```
  778. #### cURL Download
  779. ```bash
  780. # Basic download
  781. curl -L -O https://xget.xi-xu.me/gh/golang/go/archive/refs/tags/go1.22.0.tar.gz
  782. # Show progress bar
  783. curl -L --progress-bar -o model.bin https://xget.xi-xu.me/hf/openai/whisper-large-v3/resolve/main/pytorch_model.bin
  784. # Set user agent
  785. curl -L -H "User-Agent: MyApp/1.0" https://xget.xi-xu.me/gl/gitlab-org/gitlab-runner/-/archive/main/gitlab-runner-main.zip
  786. ```
  787. #### aria2 Multi-threaded Download
  788. ```bash
  789. # Multi-threaded download of large files
  790. aria2c -x 16 -s 16 https://xget.xi-xu.me/hf/microsoft/DialoGPT-large/resolve/main/pytorch_model.bin
  791. # Resume download
  792. aria2c -c https://xget.xi-xu.me/gh/microsoft/vscode/archive/refs/heads/main.zip
  793. # Batch download configuration file
  794. aria2c -i download-list.txt # File containing multiple Xget URLs
  795. ```
  796. ### Hugging Face Mirror
  797. ```python
  798. import os
  799. from transformers import AutoTokenizer, AutoModelForCausalLM
  800. # Set environment variable to make transformers library automatically use Xget mirror
  801. os.environ['HF_ENDPOINT'] = 'https://xget.xi-xu.me/hf'
  802. # Define model name
  803. model_name = 'microsoft/DialoGPT-medium'
  804. print(f"Downloading model from mirror: {model_name}")
  805. # Use AutoModelForCausalLM to load dialogue generation model
  806. # Since we set the environment variable above, no additional parameters are needed here
  807. tokenizer = AutoTokenizer.from_pretrained(model_name)
  808. model = AutoModelForCausalLM.from_pretrained(model_name)
  809. print("Model and tokenizer loaded successfully!")
  810. # You can now use the tokenizer and model
  811. # For example:
  812. # new_user_input_ids = tokenizer.encode("Hello, how are you?", return_tensors='pt')
  813. # chat_history_ids = model.generate(new_user_input_ids, max_length=1000, pad_token_id=tokenizer.eos_token_id)
  814. # print(tokenizer.decode(chat_history_ids[:, new_user_input_ids.shape[-1]:][0], skip_special_tokens=True))
  815. ```
  816. ### Civitai AI Model Platform
  817. ```python
  818. import requests
  819. # Set API base URL to use Xget
  820. base_url = "https://xget.xi-xu.me/civitai"
  821. # Get model information
  822. def get_model_info(model_id):
  823. """Get Civitai model information"""
  824. url = f"{base_url}/api/v1/models/{model_id}"
  825. response = requests.get(url)
  826. return response.json()
  827. # Download model
  828. def download_model(model_version_id, output_path):
  829. """Download Civitai model file"""
  830. download_url = f"{base_url}/api/download/models/{model_version_id}"
  831. print(f"Downloading model version {model_version_id}...")
  832. response = requests.get(download_url, stream=True)
  833. response.raise_for_status()
  834. with open(output_path, 'wb') as f:
  835. for chunk in response.iter_content(chunk_size=8192):
  836. f.write(chunk)
  837. print(f"Model downloaded to: {output_path}")
  838. # Usage example
  839. model_id = 7240 # Example model ID
  840. model_info = get_model_info(model_id)
  841. print(f"Model name: {model_info['name']}")
  842. # Download first model version
  843. if model_info['modelVersions']:
  844. version_id = model_info['modelVersions'][0]['id']
  845. download_model(version_id, f"model_{version_id}.safetensors")
  846. ```
  847. ### npm Package Acceleration
  848. #### Configure npm to Use Xget Mirror
  849. ```bash
  850. # Temporarily use Xget mirror
  851. npm install --registry https://xget.xi-xu.me/npm/
  852. # Globally configure npm mirror
  853. npm config set registry https://xget.xi-xu.me/npm/
  854. # Verify configuration
  855. npm config get registry
  856. ```
  857. #### Configure Bun to Use Xget Mirror
  858. ```toml
  859. # bunfig.toml (project-level) or ~/.bunfig.toml (global)
  860. [install]
  861. registry = "https://xget.xi-xu.me/npm/"
  862. ```
  863. ```bash
  864. # Install dependencies with Bun
  865. bun install
  866. # Bun also supports .npmrc, so you can reuse existing npm registry settings
  867. echo "registry=https://xget.xi-xu.me/npm/" > .npmrc
  868. bun install
  869. ```
  870. #### Use in Project (npm / Bun)
  871. ```bash
  872. # Configure project-level mirror in .npmrc (.npmrc can be reused by npm / Bun)
  873. echo "registry=https://xget.xi-xu.me/npm/" > .npmrc
  874. # Install dependencies with npm
  875. npm install
  876. # Install dependencies with Bun
  877. bun install
  878. ```
  879. ### Python Package Acceleration
  880. #### Configure pip to Use Xget Mirror
  881. ```bash
  882. # Temporarily use Xget mirror
  883. pip install requests -i https://xget.xi-xu.me/pypi/simple/
  884. # Globally configure pip mirror
  885. pip config set global.index-url https://xget.xi-xu.me/pypi/simple/
  886. pip config set global.trusted-host xget.xi-xu.me
  887. # Verify configuration
  888. pip config list
  889. ```
  890. #### Use in Project
  891. ```bash
  892. # Create pip.conf file (Linux/macOS)
  893. mkdir -p ~/.pip
  894. cat > ~/.pip/pip.conf << EOF
  895. [global]
  896. index-url = https://xget.xi-xu.me/pypi/simple/
  897. trusted-host = xget.xi-xu.me
  898. EOF
  899. # Or create pip.conf in project root directory
  900. cat > pip.conf << EOF
  901. [global]
  902. index-url = https://xget.xi-xu.me/pypi/simple/
  903. trusted-host = xget.xi-xu.me
  904. EOF
  905. # Install using configuration file
  906. pip install -r requirements.txt --config-file pip.conf
  907. ```
  908. #### Specify Mirror in requirements.txt
  909. ```txt
  910. # requirements.txt
  911. --index-url https://xget.xi-xu.me/pypi/simple/
  912. --trusted-host xget.xi-xu.me
  913. requests>=2.25.0
  914. numpy>=1.21.0
  915. pandas>=1.3.0
  916. matplotlib>=3.4.0
  917. ```
  918. ### conda Package Acceleration
  919. #### Configure conda to Use Xget Mirror
  920. ```bash
  921. # Configure default channel mirrors
  922. conda config --add default_channels https://xget.xi-xu.me/conda/pkgs/msys2
  923. conda config --add default_channels https://xget.xi-xu.me/conda/pkgs/r
  924. conda config --add default_channels https://xget.xi-xu.me/conda/pkgs/main
  925. # Configure all community channel mirrors (recommended)
  926. conda config --set channel_alias https://xget.xi-xu.me/conda/community
  927. # Or configure specific community channels
  928. conda config --add channels https://xget.xi-xu.me/conda/community/conda-forge
  929. conda config --add channels https://xget.xi-xu.me/conda/community/bioconda
  930. # Set channel priority
  931. conda config --set channel_priority strict
  932. # Verify configuration
  933. conda config --show
  934. ```
  935. #### Configure in .condarc
  936. The .condarc file can be placed in the user home directory (`~/.condarc`) or
  937. project root directory:
  938. ```yaml
  939. default_channels:
  940. - https://xget.xi-xu.me/conda/pkgs/main
  941. - https://xget.xi-xu.me/conda/pkgs/r
  942. - https://xget.xi-xu.me/conda/pkgs/msys2
  943. channel_alias: https://xget.xi-xu.me/conda/community
  944. channel_priority: strict
  945. show_channel_urls: true
  946. ```
  947. #### Use Environment File
  948. The environment file can directly specify complete mirror URLs:
  949. ```yaml
  950. # environment.yml
  951. name: myproject
  952. channels:
  953. - https://xget.xi-xu.me/conda/pkgs/main
  954. - https://xget.xi-xu.me/conda/pkgs/r
  955. - https://xget.xi-xu.me/conda/community/bioconda
  956. - https://xget.xi-xu.me/conda/community/conda-forge
  957. dependencies:
  958. - python=3.11
  959. - numpy>=1.24.0
  960. - pandas>=2.0.0
  961. - matplotlib>=3.7.0
  962. - scipy>=1.10.0
  963. - pip
  964. - pip:
  965. - requests>=2.28.0
  966. ```
  967. ```bash
  968. # Create environment using environment file
  969. conda env create -f environment.yml
  970. # Update environment
  971. conda env update -f environment.yml
  972. ```
  973. ### Maven Package Acceleration
  974. #### Configure Maven to Use Xget Mirror
  975. ```xml
  976. <!-- Configure Maven mirror in ~/.m2/settings.xml -->
  977. <settings>
  978. <mirrors>
  979. <mirror>
  980. <id>xget-maven-central</id>
  981. <mirrorOf>central</mirrorOf>
  982. <name>Xget Maven Central Mirror</name>
  983. <url>https://xget.xi-xu.me/maven/maven2</url>
  984. </mirror>
  985. </mirrors>
  986. </settings>
  987. ```
  988. #### Use in Project
  989. ```xml
  990. <!-- Configure project-level mirror in pom.xml -->
  991. <project>
  992. <repositories>
  993. <repository>
  994. <id>xget-maven-central</id>
  995. <name>Xget Maven Central</name>
  996. <url>https://xget.xi-xu.me/maven/maven2</url>
  997. </repository>
  998. </repositories>
  999. <pluginRepositories>
  1000. <pluginRepository>
  1001. <id>xget-maven-central</id>
  1002. <name>Xget Maven Central</name>
  1003. <url>https://xget.xi-xu.me/maven/maven2</url>
  1004. </pluginRepository>
  1005. </pluginRepositories>
  1006. </project>
  1007. ```
  1008. ```bash
  1009. # Specify mirror using command line
  1010. mvn clean install -Dmaven.repo.remote=https://xget.xi-xu.me/maven/maven2
  1011. # Download specific dependency
  1012. mvn dependency:get -Dartifact=org.springframework:spring-core:5.3.21 \
  1013. -DremoteRepositories=https://xget.xi-xu.me/maven/maven2
  1014. ```
  1015. ### Apache Software Download Acceleration
  1016. #### Download Apache Software Using Xget
  1017. ```bash
  1018. # Download Apache Kafka
  1019. wget https://xget.xi-xu.me/apache/kafka/3.6.1/kafka_2.13-3.6.1.tgz
  1020. # Download Apache Maven
  1021. curl -L -O https://xget.xi-xu.me/apache/maven/maven-3/3.9.5/binaries/apache-maven-3.9.5-bin.tar.gz
  1022. # Download Apache Spark
  1023. aria2c https://xget.xi-xu.me/apache/spark/spark-3.5.0/spark-3.5.0-bin-hadoop3.tgz
  1024. # Download Apache Hadoop
  1025. wget https://xget.xi-xu.me/apache/hadoop/common/hadoop-3.3.6/hadoop-3.3.6.tar.gz
  1026. # Download Apache Flink
  1027. curl -L -O https://xget.xi-xu.me/apache/flink/flink-1.18.1/flink-1.18.1-bin-scala_2.12.tgz
  1028. ```
  1029. #### Common Apache Software Downloads
  1030. ```bash
  1031. # Big data related
  1032. wget https://xget.xi-xu.me/apache/hive/hive-3.1.3/apache-hive-3.1.3-bin.tar.gz
  1033. wget https://xget.xi-xu.me/apache/hbase/2.5.7/hbase-2.5.7-bin.tar.gz
  1034. wget https://xget.xi-xu.me/apache/zookeeper/zookeeper-3.8.4/apache-zookeeper-3.8.4-bin.tar.gz
  1035. # Web servers
  1036. wget https://xget.xi-xu.me/apache/httpd/httpd-2.4.59.tar.gz
  1037. wget https://xget.xi-xu.me/apache/tomcat/tomcat-10/v10.1.19/bin/apache-tomcat-10.1.19.tar.gz
  1038. # Development tools
  1039. wget https://xget.xi-xu.me/apache/ant/1.10.14/apache-ant-1.10.14-bin.tar.gz
  1040. wget https://xget.xi-xu.me/apache/netbeans/netbeans/20/netbeans-20-bin.zip
  1041. ```
  1042. ### Gradle Package Acceleration
  1043. #### Configure Gradle to Use Xget Mirror
  1044. ```gradle
  1045. // Configure Gradle mirror in build.gradle
  1046. repositories {
  1047. maven {
  1048. url 'https://xget.xi-xu.me/maven/maven2'
  1049. }
  1050. gradlePluginPortal {
  1051. url 'https://xget.xi-xu.me/gradle/m2'
  1052. }
  1053. }
  1054. // Configure plugin repositories
  1055. pluginManagement {
  1056. repositories {
  1057. maven {
  1058. url 'https://xget.xi-xu.me/gradle/m2'
  1059. }
  1060. gradlePluginPortal()
  1061. }
  1062. }
  1063. ```
  1064. #### Global Configuration
  1065. ```gradle
  1066. // Configure global mirror in ~/.gradle/init.gradle
  1067. allprojects {
  1068. repositories {
  1069. maven {
  1070. url 'https://xget.xi-xu.me/maven/maven2'
  1071. }
  1072. }
  1073. }
  1074. settingsEvaluated { settings ->
  1075. settings.pluginManagement {
  1076. repositories {
  1077. maven {
  1078. url 'https://xget.xi-xu.me/gradle/m2'
  1079. }
  1080. gradlePluginPortal()
  1081. }
  1082. }
  1083. }
  1084. ```
  1085. ```bash
  1086. # Specify mirror using command line
  1087. gradle build -Dmaven.repo.remote=https://xget.xi-xu.me/maven/maven2
  1088. # Refresh dependencies
  1089. gradle build --refresh-dependencies
  1090. ```
  1091. ### Homebrew Package Acceleration
  1092. #### Configure Homebrew to Use Xget Mirror
  1093. ```bash
  1094. # Set Homebrew environment variables to use Xget mirror
  1095. export HOMEBREW_BREW_GIT_REMOTE="https://xget.xi-xu.me/homebrew/brew.git"
  1096. export HOMEBREW_CORE_GIT_REMOTE="https://xget.xi-xu.me/homebrew/homebrew-core.git"
  1097. export HOMEBREW_API_DOMAIN="https://xget.xi-xu.me/homebrew/api"
  1098. export HOMEBREW_BOTTLE_DOMAIN="https://xget.xi-xu.me/homebrew/bottles"
  1099. # Update Homebrew
  1100. brew update
  1101. ```
  1102. #### Long-term Configuration
  1103. ```bash
  1104. # For bash users, add to ~/.bash_profile
  1105. echo 'export HOMEBREW_BREW_GIT_REMOTE="https://xget.xi-xu.me/homebrew/brew.git"' >> ~/.bash_profile
  1106. echo 'export HOMEBREW_CORE_GIT_REMOTE="https://xget.xi-xu.me/homebrew/homebrew-core.git"' >> ~/.bash_profile
  1107. echo 'export HOMEBREW_API_DOMAIN="https://xget.xi-xu.me/homebrew/api"' >> ~/.bash_profile
  1108. echo 'export HOMEBREW_BOTTLE_DOMAIN="https://xget.xi-xu.me/homebrew/bottles"' >> ~/.bash_profile
  1109. # For zsh users, add to ~/.zprofile
  1110. echo 'export HOMEBREW_BREW_GIT_REMOTE="https://xget.xi-xu.me/homebrew/brew.git"' >> ~/.zprofile
  1111. echo 'export HOMEBREW_CORE_GIT_REMOTE="https://xget.xi-xu.me/homebrew/homebrew-core.git"' >> ~/.zprofile
  1112. echo 'export HOMEBREW_API_DOMAIN="https://xget.xi-xu.me/homebrew/api"' >> ~/.zprofile
  1113. echo 'export HOMEBREW_BOTTLE_DOMAIN="https://xget.xi-xu.me/homebrew/bottles"' >> ~/.zprofile
  1114. ```
  1115. #### Use in Project
  1116. ```bash
  1117. # Install packages
  1118. brew install git
  1119. # Search packages
  1120. brew search python
  1121. # Update packages
  1122. brew upgrade
  1123. # View installed packages
  1124. brew list
  1125. ```
  1126. #### Verify Mirror Configuration
  1127. ```bash
  1128. # Check Homebrew configuration
  1129. brew config
  1130. # View environment variables
  1131. echo $HOMEBREW_API_DOMAIN
  1132. echo $HOMEBREW_BOTTLE_DOMAIN
  1133. ```
  1134. ### Ruby Package Acceleration
  1135. #### Configure RubyGems to Use Xget Mirror
  1136. ```bash
  1137. # Temporarily use Xget mirror
  1138. gem install rails --source https://xget.xi-xu.me/rubygems/
  1139. # Globally configure RubyGems mirror
  1140. gem sources --add https://xget.xi-xu.me/rubygems/
  1141. gem sources --remove https://rubygems.org/
  1142. # Verify configuration
  1143. gem sources -l
  1144. ```
  1145. #### Use in Project
  1146. ```ruby
  1147. # Configure project-level mirror in Gemfile
  1148. source 'https://xget.xi-xu.me/rubygems/'
  1149. gem 'rails', '~> 7.0.0'
  1150. gem 'pg', '~> 1.1'
  1151. gem 'puma', '~> 5.0'
  1152. ```
  1153. ```bash
  1154. # Install using bundle
  1155. bundle config mirror.https://rubygems.org https://xget.xi-xu.me/rubygems/
  1156. bundle install
  1157. ```
  1158. ### R Package Acceleration
  1159. #### Configure R to Use Xget CRAN Mirror
  1160. ```r
  1161. # Temporarily use Xget CRAN mirror in R
  1162. install.packages("ggplot2", repos = "https://xget.xi-xu.me/cran/")
  1163. # Globally configure CRAN mirror
  1164. options(repos = c(CRAN = "https://xget.xi-xu.me/cran/"))
  1165. # Verify configuration
  1166. getOption("repos")
  1167. ```
  1168. #### Configure in .Rprofile
  1169. ```r
  1170. # Configure global mirror in .Rprofile file in user home directory
  1171. options(repos = c(
  1172. CRAN = "https://xget.xi-xu.me/cran/",
  1173. BioCsoft = "https://bioconductor.org/packages/release/bioc",
  1174. BioCann = "https://bioconductor.org/packages/release/data/annotation",
  1175. BioCexp = "https://bioconductor.org/packages/release/data/experiment"
  1176. ))
  1177. # Set download method
  1178. options(download.file.method = "libcurl")
  1179. ```
  1180. #### Use in Project
  1181. ```r
  1182. # Specify mirror in project's renv.lock or script
  1183. renv::init()
  1184. renv::settings$repos.override(c(CRAN = "https://xget.xi-xu.me/cran/"))
  1185. # Install packages
  1186. install.packages(c("dplyr", "ggplot2", "tidyr"))
  1187. # Or use pak package manager
  1188. pak::pkg_install("tidyverse", repos = "https://xget.xi-xu.me/cran/")
  1189. ```
  1190. ```bash
  1191. # Install packages using R script in command line
  1192. Rscript -e "options(repos = c(CRAN = 'https://xget.xi-xu.me/cran/')); install.packages('ggplot2')"
  1193. # Batch install packages
  1194. Rscript -e "
  1195. options(repos = c(CRAN = 'https://xget.xi-xu.me/cran/'))
  1196. packages <- c('dplyr', 'ggplot2', 'tidyr', 'readr')
  1197. install.packages(packages)
  1198. "
  1199. ```
  1200. ### Perl Package Acceleration
  1201. #### Configure CPAN to Use Xget Mirror
  1202. ```bash
  1203. # Configure CPAN to use Xget mirror
  1204. cpan o conf urllist push https://xget.xi-xu.me/cpan/
  1205. cpan o conf commit
  1206. # Or directly edit configuration file ~/.cpan/CPAN/MyConfig.pm
  1207. # Add:
  1208. # 'urllist' => [q[https://xget.xi-xu.me/cpan/]],
  1209. ```
  1210. #### Use cpanm to Install Modules
  1211. ```bash
  1212. # Install cpanm (if not available)
  1213. curl -L https://cpanmin.us | perl - --sudo App::cpanminus
  1214. # Install modules using Xget mirror
  1215. cpanm --mirror https://xget.xi-xu.me/cpan/ DBI
  1216. cpanm --mirror https://xget.xi-xu.me/cpan/ Mojolicious
  1217. # Install dependencies from Makefile.PL
  1218. cpanm --mirror https://xget.xi-xu.me/cpan/ --installdeps .
  1219. ```
  1220. #### Use in Project
  1221. ```perl
  1222. # List dependencies in cpanfile
  1223. requires 'DBI';
  1224. requires 'Mojolicious';
  1225. requires 'JSON';
  1226. # Then install using Xget mirror
  1227. cpanm --mirror https://xget.xi-xu.me/cpan/ --installdeps .
  1228. ```
  1229. ### TeX/LaTeX Package Acceleration
  1230. #### Configure TeX Live to Use Xget CTAN Mirror
  1231. ```bash
  1232. # Configure tlmgr to use Xget CTAN mirror
  1233. tlmgr option repository https://xget.xi-xu.me/ctan/systems/texlive/tlnet
  1234. # Update package database
  1235. tlmgr update --self --all
  1236. # Install packages
  1237. tlmgr install beamer
  1238. tlmgr install tikz
  1239. ```
  1240. #### Configure MiKTeX to Use Xget Mirror
  1241. ```bash
  1242. # Windows MiKTeX configuration
  1243. mpm --set-repository=https://xget.xi-xu.me/ctan/systems/win32/miktex
  1244. # Update package database
  1245. mpm --update-db
  1246. # Install packages
  1247. mpm --install=beamer
  1248. mpm --install=pgf
  1249. ```
  1250. #### Use in Project
  1251. ```bash
  1252. # Automatically install missing packages during LaTeX document compilation
  1253. pdflatex --shell-escape document.tex
  1254. # Or manually install specific packages
  1255. tlmgr install caption
  1256. tlmgr install subcaption
  1257. tlmgr install algorithm2e
  1258. ```
  1259. ### Go Module Acceleration
  1260. #### Configure Go to Use Xget Proxy
  1261. ```bash
  1262. # Configure Go module proxy
  1263. export GOPROXY=https://xget.xi-xu.me/golang,direct
  1264. export GOSUMDB=off
  1265. # Or permanently configure
  1266. go env -w GOPROXY=https://xget.xi-xu.me/golang,direct
  1267. go env -w GOSUMDB=off
  1268. # Verify configuration
  1269. go env GOPROXY
  1270. ```
  1271. #### Use in Project
  1272. ```bash
  1273. # Download dependencies
  1274. go mod download
  1275. # Update dependencies
  1276. go get -u ./...
  1277. # Clean module cache
  1278. go clean -modcache
  1279. ```
  1280. ### NuGet Package Acceleration
  1281. #### Configure NuGet to Use Xget Mirror
  1282. ```bash
  1283. # Add Xget package source
  1284. dotnet nuget add source https://xget.xi-xu.me/nuget/v3/index.json -n xget
  1285. # List package sources
  1286. dotnet nuget list source
  1287. # Use in project
  1288. dotnet restore --source https://xget.xi-xu.me/nuget/v3/index.json
  1289. ```
  1290. #### Configure in NuGet.Config
  1291. ```xml
  1292. <!-- NuGet.Config -->
  1293. <?xml version="1.0" encoding="utf-8"?>
  1294. <configuration>
  1295. <packageSources>
  1296. <add key="xget" value="https://xget.xi-xu.me/nuget/v3/index.json" />
  1297. </packageSources>
  1298. </configuration>
  1299. ```
  1300. ### Rust Package Acceleration
  1301. #### Configure Cargo to Use Xget Mirror
  1302. ```bash
  1303. # Configure Cargo to use Xget mirror (in ~/.cargo/config.toml)
  1304. mkdir -p ~/.cargo
  1305. cat >> ~/.cargo/config.toml << EOF
  1306. [source.crates-io]
  1307. replace-with = "xget"
  1308. [source.xget]
  1309. registry = "https://xget.xi-xu.me/crates/"
  1310. EOF
  1311. # Verify configuration
  1312. cargo search serde
  1313. ```
  1314. #### Use in Project
  1315. ```toml
  1316. # Can use dependencies normally in Cargo.toml
  1317. [dependencies]
  1318. serde = "1.0"
  1319. tokio = "1.0"
  1320. reqwest = "0.11"
  1321. ```
  1322. ```bash
  1323. # Xget will be automatically used when building the project
  1324. cargo build
  1325. # Update dependencies
  1326. cargo update
  1327. # Add new dependency
  1328. cargo add clap
  1329. ```
  1330. ### PHP Package Acceleration
  1331. #### Configure Composer to Use Xget Mirror
  1332. ```bash
  1333. # Globally configure Composer mirror
  1334. composer config -g repo.packagist composer https://xget.xi-xu.me/packagist/
  1335. # Project-level configuration
  1336. composer config repo.packagist composer https://xget.xi-xu.me/packagist/
  1337. # Verify configuration
  1338. composer config -l
  1339. ```
  1340. #### Configure in composer.json
  1341. ```json
  1342. {
  1343. "repositories": [
  1344. {
  1345. "type": "composer",
  1346. "url": "https://xget.xi-xu.me/packagist/"
  1347. }
  1348. ],
  1349. "require": {
  1350. "symfony/console": "^6.0",
  1351. "guzzlehttp/guzzle": "^7.0"
  1352. }
  1353. }
  1354. ```
  1355. ### Flathub Repository Mirror
  1356. #### Configure Flatpak / Flathub to Use Xget Mirror
  1357. ```bash
  1358. # If Flathub has not been added before, import the official descriptor
  1359. # first so Flatpak trusts the Flathub signing key.
  1360. flatpak remote-add --if-not-exists flathub \
  1361. https://dl.flathub.org/repo/flathub.flatpakrepo
  1362. # Then repoint the existing Flathub remote to the Xget mirror
  1363. flatpak remote-modify flathub \
  1364. --url=https://xget.xi-xu.me/flathub/repo/
  1365. # Restore the default upstream when needed
  1366. flatpak remote-modify flathub \
  1367. --url=https://dl.flathub.org/repo/
  1368. ```
  1369. Xget mirrors the Flathub OSTree repository endpoint. On current Flatpak clients,
  1370. importing a mirrored `.flatpakrepo` descriptor or adding the mirrored repository
  1371. directly may still fall back to the upstream Flathub URL or fail to import the
  1372. signing key, so `flatpak remote-modify ... --url=...` is the reliable setup. For
  1373. system-wide remotes, run the same commands with `sudo`.
  1374. #### Supported Flathub Services
  1375. ```url
  1376. # OSTree repository metadata
  1377. https://xget.xi-xu.me/flathub/repo/config
  1378. https://xget.xi-xu.me/flathub/repo/summary
  1379. https://xget.xi-xu.me/flathub/repo/summary.sig
  1380. https://xget.xi-xu.me/flathub/repo/summary.idx
  1381. https://xget.xi-xu.me/flathub/repo/summaries/...
  1382. # Flatpak remote descriptor
  1383. https://xget.xi-xu.me/flathub/repo/flathub.flatpakrepo
  1384. # App reference descriptor
  1385. https://xget.xi-xu.me/flathub/repo/appstream/[app-id].flatpakref
  1386. # Repository objects and static deltas
  1387. https://xget.xi-xu.me/flathub/repo/objects/...
  1388. https://xget.xi-xu.me/flathub/repo/deltas/...
  1389. https://xget.xi-xu.me/flathub/repo/delta-indexes/...
  1390. ```
  1391. #### Usage Examples
  1392. ```bash
  1393. # Verify that the saved remote URL now points to Xget
  1394. flatpak remotes --show-details
  1395. # Inspect remote contents
  1396. flatpak remote-ls flathub
  1397. # Install an app after repointing the Flathub remote
  1398. flatpak install flathub org.gnome.gedit
  1399. # Install directly from a rewritten .flatpakref
  1400. flatpak install --from \
  1401. https://xget.xi-xu.me/flathub/repo/appstream/org.gnome.gedit.flatpakref
  1402. # Print libcurl HTTP traces when troubleshooting
  1403. OSTREE_DEBUG_HTTP=1 flatpak remote-ls flathub
  1404. # Update installed apps and runtimes
  1405. flatpak update
  1406. ```
  1407. ### Linux Distribution Acceleration
  1408. #### Debian/Ubuntu APT Configuration
  1409. ```bash
  1410. # Backup original source list
  1411. sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
  1412. # Configure Debian mirror
  1413. echo "deb https://xget.xi-xu.me/debian/debian bookworm main" | sudo tee /etc/apt/sources.list
  1414. echo "deb https://xget.xi-xu.me/debian/debian-security bookworm-security main" | sudo tee -a /etc/apt/sources.list
  1415. # Configure Ubuntu mirror
  1416. echo "deb https://xget.xi-xu.me/ubuntu/ubuntu jammy main restricted universe multiverse" | sudo tee /etc/apt/sources.list
  1417. echo "deb https://xget.xi-xu.me/ubuntu/ubuntu jammy-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
  1418. # Update package list
  1419. sudo apt update
  1420. ```
  1421. #### Fedora DNF Configuration
  1422. ```bash
  1423. # Configure Fedora mirror
  1424. sudo sed -i 's|^metalink=|#metalink=|g' /etc/yum.repos.d/fedora*.repo
  1425. sudo sed -i 's|^#baseurl=http://download.example/pub/fedora/linux|baseurl=https://xget.xi-xu.me/fedora/pub/fedora/linux|g' /etc/yum.repos.d/fedora*.repo
  1426. # Update package cache
  1427. sudo dnf makecache
  1428. ```
  1429. #### Rocky Linux DNF Configuration
  1430. ```bash
  1431. # Configure Rocky Linux mirror
  1432. sudo sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/rocky*.repo
  1433. sudo sed -i 's|^#baseurl=http://dl.rockylinux.org|baseurl=https://xget.xi-xu.me/rocky|g' /etc/yum.repos.d/rocky*.repo
  1434. # Update package cache
  1435. sudo dnf makecache
  1436. ```
  1437. #### openSUSE Zypper Configuration
  1438. ```bash
  1439. # Configure openSUSE Leap mirror
  1440. sudo zypper mr -d repo-oss
  1441. sudo zypper ar -f https://xget.xi-xu.me/opensuse/distribution/leap/15.5/repo/oss/ repo-oss-xget
  1442. # Configure openSUSE Tumbleweed mirror
  1443. sudo zypper mr -d repo-oss
  1444. sudo zypper ar -f https://xget.xi-xu.me/opensuse/tumbleweed/repo/oss/ repo-oss-xget
  1445. # Refresh software sources
  1446. sudo zypper refresh
  1447. # Verify configuration
  1448. sudo zypper lr -u
  1449. ```
  1450. #### Arch Linux Pacman Configuration
  1451. ```bash
  1452. # Backup original mirror list
  1453. sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
  1454. # Configure Arch Linux mirror
  1455. echo 'Server = https://xget.xi-xu.me/arch/$repo/os/$arch' | sudo tee /etc/pacman.d/mirrorlist
  1456. # Update package database
  1457. sudo pacman -Sy
  1458. ```
  1459. ### Academic Resource Acceleration
  1460. #### arXiv Paper Download
  1461. ```bash
  1462. # Download arXiv paper PDF
  1463. wget https://xget.xi-xu.me/arxiv/pdf/2301.07041.pdf
  1464. # Download paper source
  1465. curl -L -O https://xget.xi-xu.me/arxiv/e-print/2301.07041
  1466. # Batch download multiple papers
  1467. for id in 2301.07041 2302.13971 2303.08774; do
  1468. wget https://xget.xi-xu.me/arxiv/pdf/${id}.pdf
  1469. done
  1470. ```
  1471. #### Use in Academic Tools
  1472. ```python
  1473. # Use arXiv accelerated download in Python
  1474. import requests
  1475. def download_arxiv_paper(arxiv_id, output_path):
  1476. url = f"https://xget.xi-xu.me/arxiv/pdf/{arxiv_id}.pdf"
  1477. response = requests.get(url)
  1478. if response.status_code == 200:
  1479. with open(output_path, 'wb') as f:
  1480. f.write(response.content)
  1481. print(f"Downloaded {arxiv_id} to {output_path}")
  1482. else:
  1483. print(f"Failed to download {arxiv_id}")
  1484. # Download paper
  1485. download_arxiv_paper("2301.07041", "attention_is_all_you_need.pdf")
  1486. ```
  1487. ### F-Droid Repository Mirror
  1488. #### Configure F-Droid Client to Use Xget Mirror
  1489. 1. In F-Droid app, go to **Settings** → **Repositories**
  1490. 2. Click **+** and enter repository URL: `https://xget.xi-xu.me/fdroid/repo`
  1491. 3. Click **Add** then click **Add Mirror**
  1492. #### Supported F-Droid Services
  1493. ```url
  1494. # F-Droid app APK download
  1495. https://xget.xi-xu.me/fdroid/repo/[package-name]_[version-code].apk
  1496. # F-Droid repository index
  1497. https://xget.xi-xu.me/fdroid/repo/index-v1.jar
  1498. # F-Droid app icons
  1499. https://xget.xi-xu.me/fdroid/repo/icons-640/[package-name].[version-code].png
  1500. # F-Droid API endpoints
  1501. https://xget.xi-xu.me/fdroid/api/v1/packages/[package-name]
  1502. ```
  1503. #### Usage Examples
  1504. ```bash
  1505. # Directly download F-Droid client APK

Lines 2,001–3,123 are not shown. The link to the file on GitHub has every line.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.