{"id":24908504,"url":"https://github.com/zsokami/cvt","last_synced_at":"2026-03-09T13:01:43.835Z","repository":{"id":273724406,"uuid":"901957476","full_name":"zsokami/cvt","owner":"zsokami","description":"ACL4SSR Mannix 订阅转换极速版 用于在 Clash(Meta/mihomo)、Clash proxies、base64 和 uri 订阅格式之间进行快速转换，纯 TypeScript 实现，最大化转换速度","archived":false,"fork":false,"pushed_at":"2026-02-09T03:41:50.000Z","size":2097,"stargazers_count":66,"open_issues_count":0,"forks_count":43,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-09T09:42:44.095Z","etag":null,"topics":["acl4ssr","clash","cloudflare-workers","deno","mihomo","netlify","serverless","subconverter","typescript","v2ray","vercel"],"latest_commit_sha":null,"homepage":"https://sub.com.mp","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zsokami.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11T16:22:26.000Z","updated_at":"2026-02-09T03:41:54.000Z","dependencies_parsed_at":"2025-03-03T12:23:43.195Z","dependency_job_id":"922c53f7-3fc5-4ed3-9e0c-531519b8968f","html_url":"https://github.com/zsokami/cvt","commit_stats":null,"previous_names":["zsokami/cvt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zsokami/cvt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsokami%2Fcvt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsokami%2Fcvt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsokami%2Fcvt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsokami%2Fcvt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zsokami","download_url":"https://codeload.github.com/zsokami/cvt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsokami%2Fcvt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30297111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["acl4ssr","clash","cloudflare-workers","deno","mihomo","netlify","serverless","subconverter","typescript","v2ray","vercel"],"created_at":"2025-02-02T02:20:02.350Z","updated_at":"2026-03-09T13:01:43.809Z","avatar_url":"https://github.com/zsokami.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ACL4SSR Mannix 订阅转换极速版\n\n用于在 Clash(Meta/mihomo)、Clash proxies、base64 和 uri 订阅格式之间进行快速转换，纯 TypeScript 实现，最大化转换速度\n\nemoji、代理策略组和路由规则与 [ACL4SSR_Online_Full_Mannix.ini](https://github.com/zsokami/ACL4SSR) 大致相同，url-test 间隔时间改为随节点数变化，最少 15 秒\n\n||URI|Clash|\n|-|:-:|:-:|\n|http|✔️|✔️|\n|socks5|✔️|✔️|\n|ss|✔️|✔️|\n|ssr|✔️|✔️|\n|mieru|❌|✔️|\n|snell|❌|✔️|\n|vmess|✔️|✔️|\n|vless|✔️|✔️|\n|trojan|✔️|✔️|\n|hysteria|✔️|✔️|\n|hysteria2|✔️|✔️|\n|tuic|✔️|✔️|\n|wireguard|✔️|✔️|\n|ssh|❌|✔️|\n|anytls|✔️|✔️|\n|sudoku|❌|✔️|\n|masque|❌|✔️|\n\n## 远程转换\n\n[配套 Web 前端](https://github.com/zsokami/scweb)\n\n用法\n\n```\nhttps://arx.cc[/!\u003cargs\u003e]/\u003cfrom\u003e\n```\n\n`\u003cargs\u003e`\n\n参数列表，格式：`key=value\u0026key2=value2...`\n\n| 参数 | 默认 | 说明 |\n| - | - | - |\n| to | clash | 目标订阅格式，支持 clash、clash-proxies、base64、uri 或 auto(Clash 客户端则 clash 否则 base64)，该参数可省略 `to=` 前缀 |\n| ua | 无 | 覆盖 User-Agent 请求头 |\n| filename | 无 | 覆盖文件名 |\n| ndl | 无 | 存在该参数则返回无 DNS 泄漏(No_DNS_Leak)配置 |\n| filter | 无 | 筛选节点，见 [筛选语法](#筛选语法) |\n| hide | 无 | 在 proxy-groups 中隐藏指定节点，在 proxies 中仍保留，和 dialer-proxy 配合以隐藏前置节点，见 [筛选语法](#筛选语法) |\n| meta | 从 User-Agent 中判断 | 设置为 0 去除仅 Meta/mihomo 内核支持的节点/策略，以兼容原版 Clash，设置为 1 则强制包含 Meta/mihomo 功能 |\n\n`\u003cfrom\u003e`\n\nhttp/s 订阅链接、用 base64/base64url 编码的订阅内容或 Data URL\n\n可以是除 http/s 代理的 uri，但需 URL 编码\n\n多个先用 | 分隔，然后再 URL 编码\n\n获取零节点订阅用 empty，可用于去广告\n\n例子\n\n```\nhttps://arx.cc/https://example.com/subscribe?token=xxx\n```\n```\nhttps://arx.cc/!auto\u0026ndl/https://example.com/subscribe?token=xxx\n```\n\n### 筛选语法\n\n基本条件语法：`[[\u003c字段\u003e] \u003c匹配运算符\u003e] \u003c正则表达式\u003e`\n\n字段、运算符、正则表达式之间的空格会被忽略\n\n\u003c字段\u003e\n\n要匹配的节点字段，可使用 `.` 和 `[]` 表示字段路径，如\n\n- `name`（省略字段默认为 `name`）\n- `type`\n- `plugin-opts.tls`\n- `alpn[0]`\n- `$`（表示所有字段）\n\n若字段为对象或数组，则有任一子孙字段匹配即条件成立\n\n\u003c匹配运算符\u003e\n\n- `:` 表示部分匹配，且忽略大小写，对应否定运算符：`!:` 或 `!`\n- `=` 表示完整匹配，且区分大小写，对应否定运算符：`!=`\n\n省略字段和运算符默认为 `name:`\n\n可使用 `and`、`or`、`not` 和括号 `()` 组合多个条件\n\n例子\n\n- `CN`、`name:CN` 名称**包含** CN 的节点，**忽略**大小写\n- `=CN`、`name=CN` 名称**为** CN 的节点，**区分**大小写\n- `^CN$` 名称**为** CN 的节点，**忽略**大小写\n- `=.*CN.*` 名称**包含** CN 的节点，**区分**大小写\n- `not CN`、`not name:CN`、`!:CN`、`name!:CN` 名称**不**包含 CN 的节点，忽略大小写\n- `^(🇭🇰|🇸🇬)` 名称开头为 🇭🇰 或 🇸🇬 的节点\n- `type=ss` 类型为 ss 的节点\n- `ws-opts.headers.Host:^hk` WS Host 开头为 hk 的节点\n- `reality-opts:.*` 使用了 Reality 的节点\n- `alpn=h3` alpn 中包含 h3 的节点\n- `中转 and type=ss` 名称包含 “中转” 且类型为 ss 的节点\n\n### Serverless / Edge 部署\n\n#### Cloudflare Workers\n\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/zsokami/cvt)\n\nDemo: `https://c.arx.cc/`\n\n#### Vercel\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/zsokami/cvt)\n\nDemo: `https://v.arx.cc/`\n\n#### Netlify\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/zsokami/cvt)\n\nDemo: `https://arx.cc/`\n\n#### Deno Deploy\n\n[![Deploy on Deno](https://deno.com/button)](https://console.deno.com/new?clone=https://github.com/zsokami/cvt)\n\nDemo: `https://d.arx.cc/`\n\n#### Koyeb\n\n[![Deploy to Koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/deploy?type=git\u0026name=cvt\u0026repository=zsokami%2Fcvt\u0026branch=main\u0026builder=dockerfile\u0026instance_type=free\u0026ports=8000%3Bhttp2%3B%2F)\n\nDemo: `https://cvt.koyeb.app/`\n\n## 本地转换\n\n### 本地服务\n\n需先安装 [Deno](https://deno.com/)\n\n运行\n\n```sh\ndeno run -A https://raw.githubusercontent.com/zsokami/cvt/main/main.ts\n```\n\n指定端口\n\n```sh\ndeno run -A https://raw.githubusercontent.com/zsokami/cvt/main/main.ts 8000\n```\n\n指定主机名/IP:端口\n\n```sh\ndeno run -A https://raw.githubusercontent.com/zsokami/cvt/main/main.ts [::1]:8000\n```\n\n更新版本并运行\n\n```sh\ndeno run -A -r https://raw.githubusercontent.com/zsokami/cvt/main/main.ts\n```\n\n查看版本\n\n```\nhttp://127.0.0.1:8000/version\n```\n\n### 命令行\n\n需先安装 [Deno](https://deno.com/)\n\n用法\n\n```sh\ndeno run -A https://raw.githubusercontent.com/zsokami/cvt/main/scripts/cvt.ts [-o \u003cpath\u003e] [\u003cfrom\u003e] [\u003cto\u003e] [-ua \u003cua\u003e] [-ndl] [-filter \u003cfilter\u003e] [-hide \u003chide\u003e] [-meta \u003c0|1\u003e]\n```\n\n参数\n\n- `-o \u003cpath\u003e` 输出路径\n\n- `\u003cfrom\u003e` http/s 订阅链接、除 http/s 代理的 uri、用 base64/base64url 编码的订阅内容或 Data URL，多个用 | 分隔。获取零节点订阅用 empty，可用于去广告\n\n- `\u003cto\u003e` clash、clash-proxies、base64、uri 或 auto(若 ua 含 clash 则 clash 否则 base64)\n\n- `-ua \u003cua\u003e` User-Agent 请求头\n\n- `-ndl` 无 DNS 泄漏\n\n- `-filter \u003cfilter\u003e` 筛选节点，见 [筛选语法](#筛选语法)\n\n- `-hide \u003chide\u003e` 在 proxy-groups 中隐藏指定节点，在 proxies 中仍保留，和 dialer-proxy 配合以隐藏前置节点，见 [筛选语法](#筛选语法)\n\n- `-meta \u003c0|1\u003e` 设置为 0 去除仅 Meta/mihomo 内核支持的节点/策略，以兼容原版 Clash，设置为 1 则强制包含 Meta/mihomo 功能，默认从 User-Agent 中判断\n\n例子\n\n```sh\ndeno run -A https://raw.githubusercontent.com/zsokami/cvt/main/scripts/cvt.ts -o clash.yaml 'https://example.com/subscribe?token=xxx'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsokami%2Fcvt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzsokami%2Fcvt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsokami%2Fcvt/lists"}