Files
xget/index.html
T
2024-11-01 19:08:30 +08:00

133 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Xget - Fast File Download Proxy</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
max-width: 800px;
margin: 0 auto;
padding: 20px;
color: #333;
}
h1 {
color: #2563eb;
text-align: center;
margin-bottom: 40px;
}
.platform-box {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
}
code {
background: #e2e8f0;
padding: 2px 6px;
border-radius: 4px;
font-family: 'Courier New', Courier, monospace;
}
.example {
background: #334155;
color: #fff;
padding: 15px;
border-radius: 8px;
overflow-x: auto;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin: 30px 0;
}
.feature-card {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 20px;
}
.feature-card h3 {
color: #2563eb;
margin-top: 0;
}
</style>
</head>
<body>
<h1>🚀 Xget</h1>
<p>
Xget is a fast and reliable file download proxy service powered by Cloudflare Workers. It provides accelerated access to files from
various platforms including GitHub, GitLab, HuggingFace, and Kaggle.
</p>
<div class="features">
<div class="feature-card">
<h3>⚡ Fast</h3>
<p>Powered by Cloudflare's global network for optimal performance</p>
</div>
<div class="feature-card">
<h3>🛡️ Secure</h3>
<p>Built-in security headers and file type filtering</p>
</div>
<div class="feature-card">
<h3>🔄 Cached</h3>
<p>Automatic caching for faster repeated access</p>
</div>
</div>
<h2>How to Use</h2>
<p>Simply prefix your file URL with our service URL and the appropriate platform identifier:</p>
<div class="platform-box">
<h3>Supported Platforms:</h3>
<ul>
<li><code>/gh/</code> - GitHub Raw Content</li>
<li><code>/gl/</code> - GitLab Files</li>
<li><code>/hf/</code> - HuggingFace Files</li>
<li><code>/kg/</code> - Kaggle Datasets</li>
<li><code>/url/</code> - Direct URLs</li>
</ul>
</div>
<h2>Examples</h2>
<h3>GitHub Example:</h3>
<div class="example">
<code>https://your-worker.workers.dev/gh/username/repo/branch/path/to/file</code>
</div>
<h3>GitLab Example:</h3>
<div class="example">
<code>https://your-worker.workers.dev/gl/username/repo/-/blob/branch/path/to/file</code>
</div>
<h3>Direct URL Example:</h3>
<div class="example">
<code>https://your-worker.workers.dev/url/https://example.com/file.zip</code>
</div>
<h2>Limitations</h2>
<ul>
<li>Maximum path length: 2048 characters</li>
<li>Supported HTTP methods: GET, HEAD</li>
<li>Blocked file types: .php, .exe, .dll, .bat, .cmd, .sh</li>
<li>Cache duration: 24 hours</li>
</ul>
<footer style="text-align: center; margin-top: 40px; padding: 20px; border-top: 1px solid #e2e8f0">
<p>Powered by Cloudflare Workers</p>
</footer>
</body>
</html>