自动从多个来源抓取 Cloudflare 节点并转换为 Clash 格式的工具。
- 🚀 自动从 GitHub 等来源抓取节点
- 🔄 支持多种节点格式解析(vmess, vless, trojan, ss 等)
- 📦 自动转换为 Clash 配置格式
- 🔍 节点去重和可用性检测
- ⚡ 使用 GitHub Actions 云端自动运行
- 📊 生成订阅链接
- 🌐 精美的 Web 界面展示节点统计
- 🔎 支持按端口查询节点
- 安装依赖:
npm install-
配置节点源(编辑
config.json) -
运行抓取:
npm start优势:
- ✅ 完全免费,无限带宽
- ✅ 全球 CDN 加速
- ✅ 原生支持 IPv6
- ✅ 可设置访问密码保护
- ✅ 支持私有仓库
快速部署:
- Fork 本仓库(可设为私有)
- 登录 Cloudflare Dashboard
- 进入 Workers & Pages → Create → Connect to Git
- 选择你的仓库,配置构建命令:
npm install && npm start - 部署完成!访问:
https://你的项目名.pages.dev
详细教程:CLOUDFLARE_DEPLOY.md | QUICK_START.md
- Fork 本仓库到你的 GitHub 账号
- 在仓库设置中启用 GitHub Actions
- 启用 GitHub Pages(Settings → Pages)
- 修改
config.json配置你的节点源 - 订阅链接:
https://你的用户名.github.io/仓库名/output/clash.yaml
项目包含一个精美的 Web 界面,可以查看:
- 📊 总节点数和国家/地区分布
- ⏰ 更新频率和最后更新时间
- 📈 节点类型统计图表
- 🌍 国家/地区分布图表
- 🔍 按端口查询节点功能
- 📋 一键复制订阅链接
访问方式:
- 本地:
http://localhost:8080(运行npx http-server) - GitHub Pages:
https://你的用户名.github.io/仓库名/
编辑 config.json 文件:
{
"sources": [
"https://raw.githubusercontent.com/xxx/xxx/main/nodes.txt"
],
"output": {
"clash": "output/clash.yaml",
"base64": "output/nodes.txt"
}
}将生成的订阅链接导入到 Clash 客户端:
https://raw.githubusercontent.com/你的用户名/仓库名/main/output/clash.yaml
- 请遵守当地法律法规
- 节点仅供学习交流使用
- 不保证节点可用性
MIT