{"id":23715088,"url":"https://github.com/jwygithub/sub-convert","last_synced_at":"2025-09-15T08:13:03.738Z","repository":{"id":269899603,"uuid":"908795966","full_name":"jwyGithub/sub-convert","owner":"jwyGithub","description":"a small tool that provides confusion conversion subscriptions","archived":false,"fork":false,"pushed_at":"2025-09-11T06:11:19.000Z","size":1657,"stargazers_count":67,"open_issues_count":1,"forks_count":55,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-11T09:46:07.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://convert.looby.dpdns.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwyGithub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-27T01:55:33.000Z","updated_at":"2025-09-11T06:10:47.000Z","dependencies_parsed_at":"2024-12-27T03:19:46.831Z","dependency_job_id":"8ec557f8-cfad-4f22-ad1f-504051266c00","html_url":"https://github.com/jwyGithub/sub-convert","commit_stats":null,"previous_names":["jwygithub/sub-convert"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jwyGithub/sub-convert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwyGithub%2Fsub-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwyGithub%2Fsub-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwyGithub%2Fsub-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwyGithub%2Fsub-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwyGithub","download_url":"https://codeload.github.com/jwyGithub/sub-convert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwyGithub%2Fsub-convert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275225890,"owners_count":25427013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-30T20:53:16.297Z","updated_at":"2025-09-15T08:13:03.730Z","avatar_url":"https://github.com/jwyGithub.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sub-convert\n\n一个防止节点泄漏的订阅转换小工具 [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/jwyGithub/sub-convert)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/jwyGithub/sub-convert/release.yml\" alt='status'\u003e\n  \u003cimg src=\"https://img.shields.io/github/issues/jwyGithub/sub-convert\" alt='issues'\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/jwyGithub/sub-convert\" alt='license'\u003e\n\u003c/p\u003e\n\n## ✨ 功能特点\n\n### 📌 在线体验\n\n体验地址：[https://convert.looby.dpdns.org](https://convert.looby.dpdns.org)\n\n### 📌 支持的协议类型\n\n| 协议         | 状态 | url      | base64   | yaml/yml |\n| ------------ | ---- | -------- | -------- | -------- |\n| VLESS        | ✅   | 完全支持 | 完全支持 | 已测试   |\n| VMess        | ✅   | 完全支持 | 完全支持 | 已测试   |\n| Trojan       | ✅   | 完全支持 | 完全支持 | 已测试   |\n| Shadowsocks  | ✅   | 完全支持 | 完全支持 | 已测试   |\n| ShadowsocksR | ✅   | 完全支持 | 完全支持 | 已测试   |\n| Hysteria     | ✅   | 完全支持 | 完全支持 | 已测试   |\n| Hysteria2    | ✅   | 完全支持 | 完全支持 | 已测试   |\n| HY2          | ✅   | 完全支持 | 完全支持 | 已测试   |\n\n### 📦 订阅格式转换支持\n\n- ✅ Base64 编码\n- ✅ YAML 配置\n- 🚧 JSON 配置\n\n### 🔄 支持转换的客户端\n\n- ✅ Clash\n- ✅ sing-box\n- ✅ v2ray\n\n## ⚙️ 配置说明\n\n### 环境变量配置\n\n| 变量名            | 说明                             | 默认值              | 必填 | 备注                               |\n| ----------------- | -------------------------------- | ------------------- | ---- | ---------------------------------- |\n| `BACKEND`         | 转换时的后端服务地址             | `https://url.v1.mk` | ❌   | 真正执行转换的服务地址             |\n| `DEFAULT_BACKEND` | 默认后端服务地址                 | worker服务地址      | ❌   |                                    |\n| `LOCK_BACKEND`    | 是否锁定后端服务                 | `false`             | ❌   |                                    |\n| `CUSTOM_BACKEND`  | 自定义后端服务地址(支持多行配置) | 无                  | ❌   | 每行填写一个                       |\n| `REMOTE_CONFIG`   | 自定义远程配置\u003cbr\u003e(支持多行配置) | `https://xxxxx1`    | ❌   |                                    |\n| `DB`              | 短链服务数据库                   | 无                  | ❌   | 当绑定数据库时，会自动启用短链服务 |\n\n## 📝 使用说明\n\n### ☁️ 部署方式\n\n#### 方式一：Cloudflare Worker\n\n1. 登录到 Cloudflare Dashboard\n2. 进入 Workers \u0026 Pages\n3. 创建新的 Worker\n4. 从 Release 分支下载 `_worker.js`\n5. 将代码复制到 Worker 编辑器中\n6. 点击\"保存并部署\"\n\n#### 方式二：Cloudflare Pages\n\n1. 登录到 Cloudflare Dashboard\n2. 进入 Workers \u0026 Pages\n3. 创建新的 Pages 项目\n4. 选择\"直接上传\"方式\n5. 从 Release 分支下载 `_worker.zip`\n6. 上传压缩包\n7. 等待部署完成\n\n#### 方式三：通过 Git 仓库部署\n\n1. Fork 本仓库到您的 GitHub 账号\n2. 登录到 Cloudflare Dashboard\n3. 进入 Workers \u0026 Pages\n4. 创建新的 Pages 项目\n5. 选择\"连接到 Git\"\n6. 选择您 Fork 的仓库\n7. 设置部署配置：\n    - 构建命令：留空\n    - 构建输出目录：留空\n    - 部署分支：`release`\n8. 点击\"保存并部署\"\n\n### 🔗 访问地址\n\n- Worker 部署：`https://your-worker-name.your-subdomain.workers.dev`\n- Pages 部署：`https://your-project-name.pages.dev`\n\n### 🔗 短链服务\n\n短链服务用于将较长的订阅链接转换为简短的 URL，便于分享和使用。\n\n#### 💾 数据库\n\n- 表名称：`short_url`\n- 字段：\n    - `id`：自增主键\n    - `short_code`：短链码\n    - `short_url`：短链 URL\n    - `long_url`：原始订阅链接\n\n#### 💾 数据库结构\n\n```sql\nCREATE TABLE IF NOT EXISTS short_url (\n    id INTEGER PRIMARY KEY,\n    short_code TEXT,\n    short_url TEXT,\n    long_url TEXT\n);\n```\n\n#### 💾 配置示例\n\n![配置示例](./src/doc/screen/env.png)\n\n#### 💾 数据库部署文档\n\n[Cloudflare D1](https://developers.cloudflare.com/d1/get-started/)\n\n#### 💾 工作原理\n\n\u003cp\u003e\u003cimg src=\"./src/doc/screen/flow.svg\" width=\"200px\" height=\"auto\" alt=\"工作原理\" /\u003e\u003c/p\u003e\n\n#### 💾 提示\n\n- `只有使用部署的worker服务，才有混淆的效果，使用其他后端转换服务没有混淆的效果`\n\n## 🤝 贡献指南\n\n欢迎提交 Issue 和 Pull Request！\n\n## ⚠️ 免责声明\n\n在使用此项目时均被视为已经仔细阅读并完全同意以下条款：\n\n- 此项目仅供个人学习与交流使用，严禁用于商业以及不良用途。\n- 如有发现任何商业行为以及不良用途，此项目作者有权撤销使用权。\n- 使用本软件所存在的风险将完全由其本人承担，此项目作者不承担任何责任。\n- 此项目注明之服务条款外，其它因不当使用本软件而导致的任何意外、疏忽、合约毁坏、诽谤、版权或其他知识产权侵犯及其所造成的任何损失，本软件作者概不负责，亦不承担任何法律责任。\n- 对于因不可抗力或因黑客攻击、通讯线路中断等不能控制的原因造成的服务中断或其他缺陷，导致用户不能正常使用，此项目作者不承担任何责任，但将尽力减少因此给用户造成的损失或影响。\n- 本声明未涉及的问题请参见国家有关法律法规，当本声明与国家有关法律法规冲突时，以国家法律法规为准。\n- 本软件相关声明版权及其修改权、更新权和最终解释权均属此项目作者所有。\n\n## 📄 开源协议\n\n本项目遵循 [LICENSE](./LICENSE) 开源协议。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwygithub%2Fsub-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwygithub%2Fsub-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwygithub%2Fsub-convert/lists"}