finds.dev← search

// the find

cmliu/WorkerVless2sub

★ 6,282 · JavaScript · Apache-2.0 · updated Sep 2026

自动化批量替换生成优选线路 VMess / VLESS / Trojan 节点的 优选订阅生成器

A single Cloudflare Worker script that builds proxy subscription files (VLESS/Trojan/VMess node lists) by templating a user's credentials into a set of Cloudflare CDN IPs/domains that route well into mainland China, with output formats for v2ray, clash, and singbox clients. It's for people already running a censorship-circumvention proxy node who want an easy way to generate and keep refreshing their client config without hand-editing files.

Uses Cloudflare's edge network as a reverse-proxy front for VLESS/Trojan traffic, so the whole thing runs as one Worker with no backend server to maintain. ADDAPI/ADDCSV support pulling in externally-hosted IP lists and filtering by a measured speed threshold (DLS), so the node list can improve over time without redeploying. Dynamic UUID rotation (KEY+TIME+UPTIME) regenerates credentials on a schedule, useful if the node is shared. Supports both Pages and raw Worker deployment plus clash/singbox config generation via a query param, covering the main client ecosystems.

It's one large _worker.js file configured through several dozen overloaded environment variables (TOKEN, HOST, UUID, PASSWORD, PATH, SNI, TYPE, ADD, ADDAPI, ADDCSV, PROXYIP, CMPROXYIPS, SOCKS5DATA, TGTOKEN...) with no modularization and no tests, so tracing behavior means reading the whole script. SCV=true disables TLS certificate verification and is just another string env var next to everything else — an easy footgun for someone copy-pasting an example. Clash/singbox conversion depends on a third-party subconverter backend (SUBAPI, pointed at the author's own service by default) rather than anything self-contained, so you're trusting an external black box for part of the output. The CSV/txt IP lists it ships are static snapshots from a separate speed-test tool that isn't part of this repo, so 'optimized' routes go stale unless you maintain that pipeline yourself.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →