{"id":17793392,"url":"https://github.com/surfboardv2ray/trojan-worker","last_synced_at":"2025-04-07T12:03:39.683Z","repository":{"id":259127412,"uuid":"862629246","full_name":"Surfboardv2ray/Trojan-worker","owner":"Surfboardv2ray","description":"Route Trojan v2ray configs traffic through Cloudflare, in addition to vmess and vless.","archived":false,"fork":false,"pushed_at":"2025-01-06T18:42:36.000Z","size":948,"stargazers_count":64,"open_issues_count":0,"forks_count":41,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T12:03:33.385Z","etag":null,"topics":["cdn","cf","cloudflare","cloudflare-workers","trojan","trojan-worker","v2ray","vless","vmess","worker"],"latest_commit_sha":null,"homepage":"https://t.me/Surfboardv2ray","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Surfboardv2ray.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}},"created_at":"2024-09-24T23:29:43.000Z","updated_at":"2025-04-05T05:19:47.000Z","dependencies_parsed_at":"2024-10-27T11:09:13.245Z","dependency_job_id":"f7cb105a-9188-4942-95a3-9a43ac7e21ab","html_url":"https://github.com/Surfboardv2ray/Trojan-worker","commit_stats":null,"previous_names":["surfboardv2ray/trojan-worker"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surfboardv2ray%2FTrojan-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surfboardv2ray%2FTrojan-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surfboardv2ray%2FTrojan-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surfboardv2ray%2FTrojan-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Surfboardv2ray","download_url":"https://codeload.github.com/Surfboardv2ray/Trojan-worker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648976,"owners_count":20972945,"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","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":["cdn","cf","cloudflare","cloudflare-workers","trojan","trojan-worker","v2ray","vless","vmess","worker"],"created_at":"2024-10-27T11:08:22.524Z","updated_at":"2025-04-07T12:03:39.651Z","avatar_url":"https://github.com/Surfboardv2ray.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  Trojan Worker\n\u003c/h1\u003e\n\n\u003ch2 align=\"center\"\u003e\nAccess Trojan configs using Cloudflare CDN.\n  \u003ch3\u003e\n    English 🇬🇧 | \u003ca href=\"README_FA.md\"\u003e🇮🇷 فارسی\u003c/a\u003e\n  \u003c/h3\u003e \n\u003c/h2\u003e\n\n\u003e [!TIP]\n\u003e New UPDATE! Cloudflare Pages is supported, [download here](https://github.com/Surfboardv2ray/Trojan-worker/releases/latest/download/PAGES.zip)\n\n[![Version](https://img.shields.io/github/v/release/surfboardv2ray/Trojan-worker?label=Version\u0026color=blue)](https://github.com/surfboardv2ray/Trojan-worker/releases/latest)\n[![Download](https://img.shields.io/github/downloads/surfboardv2ray/Trojan-worker/total?label=Downloads)](https://github.com/surfboardv2ray/Trojan-worker/releases/latest)\n[![Stars](https://img.shields.io/github/stars/surfboardv2ray/Trojan-worker?style=flat\u0026label=Stars\u0026color=tomato\n)](https://github.com/surfboardv2ray/Trojan-worker)\n\n## Introduction\n🟢 Cloudflare has made it possible to run serverless configs and also access VPS configs via routing the traffic through the CDN.\nIn this script, we attempt to allow Trojan VPS configs to be used via Cloudflare CDN as well.\n\n## Installation\n1. Login or Signup at https://dash.cloudflare.com and verify your email address.\n2. Head to `Workers and Pages` to create and name a worker.\n3. Click `Edit Code` code to enter the editing environment.\n4. Get the Latest version of the [Trojan script](https://github.com/Surfboardv2ray/Trojan-worker/releases/latest/download/worker.js), and copy the entire content.\n5. Paste the content of the script onto the mentioned step 3 javascript editing environment.\n6. Click `Deploy` located at top-right corner (Consider hitting Ctrl+S combo first if the Deploy button doesn't light up)\n7. Your Worker subscription URL will be `https://{your_worker_address}.workers.dev/sub/{your_clean_ip}`\n\n## Editing Source Links\n🟡 You can add or change source subscription links over at `subLinks` in the initial part of the script. Both standard and base64 are supported.\n\n🟡 Note that Vmess, Vless and Trojan configs with Websocket (WS), TLS and port 443 characteristics will be gathered.\n\n## Additional Notes\n🟡 The base worker URL can fetch clean IPs via [IRCF Space Repo](https://github.com/ircfspace/cf2dns/blob/master/list/ipv4.json), but it's still recommended to use [Scanners](https://ircf.space/scanner.html).\n\n🟡 To get a certain number of configs instead of all the parsed configs list, add '?n=xxx' to end of your subscription link, where xxx is the number of the configs you need to be displayed.\n\n![0](./assets/redline.gif)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/html.jpg\" alt=\"html.jpg\" width=\"500\"/\u003e\n\u003c/p\u003e\n\n![0](./assets/redline.gif)\n\n## Stargazers\n[![Stargazers over time](https://starchart.cc/Surfboardv2ray/Trojan-worker.svg?variant=adaptive)](https://starchart.cc/Surfboardv2ray/Trojan-worker)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurfboardv2ray%2Ftrojan-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurfboardv2ray%2Ftrojan-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurfboardv2ray%2Ftrojan-worker/lists"}