🚀 GitHub 代理服务

通过 Cloudflare Workers 加速访问 GitHub 资源

https://proxy.site4l.cc

📡 支持的域名

  • api.github.com GitHub API
  • raw.githubusercontent.com 原始文件
  • github.com 仓库、Release 文件
  • gist.githubusercontent.com Gist 文件
  • codeload.github.com 源码下载
  • ghcr.io GitHub Container Registry

🎯 使用方法

直接使用域名(推荐)

# GitHub API
https://proxy.site4l.cc/api.github.com/users/octocat
https://proxy.site4l.cc/api.github.com/repos/sky22333/hubproxy

# Raw 文件
https://proxy.site4l.cc/raw.githubusercontent.com/octocat/Hello-World/master/README

# Release 文件
https://proxy.site4l.cc/github.com/user/repo/releases/download/v1.0.0/file.tar.gz

# 源码下载
https://proxy.site4l.cc/codeload.github.com/user/repo/tar.gz/refs/tags/v1.0.0

快捷前缀格式

# /gh/ 前缀(通用)
https://proxy.site4l.cc/gh/api.github.com/users/octocat

# /github/ 前缀(API专用)
https://proxy.site4l.cc/github/users/octocat
https://proxy.site4l.cc/github/repos/sky22333/hubproxy

# /raw/ 前缀(原始文件)
https://proxy.site4l.cc/raw/octocat/Hello-World/master/README

# /release/ 前缀(Release文件)
https://proxy.site4l.cc/release/user/repo/tag/file.tar.gz

完整 URL 格式

https://proxy.site4l.cc/https://api.github.com/users/octocat
https://proxy.site4l.cc/https://raw.githubusercontent.com/user/repo/main/file.js

💡 使用示例

# 获取用户信息
curl "https://proxy.site4l.cc/api.github.com/users/octocat"

# 下载 README 文件
curl "https://proxy.site4l.cc/raw.githubusercontent.com/octocat/Hello-World/master/README"

# 获取仓库信息
curl "https://proxy.site4l.cc/github/repos/sky22333/hubproxy"

# 带查询参数搜索
curl "https://proxy.site4l.cc/api.github.com/search/repositories?q=linux&sort=stars&per_page=5"

✨ 特性

  • 自动添加 https:// 前缀
  • 支持查询参数
  • 跨域支持 (CORS)
  • 保持原始响应头
  • 30秒超时(Cloudflare Workers 限制)
  • 完全免费(每天10万请求)
  • 全球 CDN 加速

⚠️ 注意事项

  • 仅支持 HTTPS 协议
  • 大文件下载可能超时(>30秒)
  • 请遵守 GitHub API 速率限制
  • 不支持 WebSocket 连接