{"id":15680926,"url":"https://github.com/bpazy/xraysub","last_synced_at":"2025-05-07T04:11:35.924Z","repository":{"id":47542295,"uuid":"396801224","full_name":"Bpazy/xraysub","owner":"Bpazy","description":"A powerful cross-platform CLI client for Xray subscription. 跨平台 Xray 命令行订阅管理客户端","archived":false,"fork":false,"pushed_at":"2024-04-19T12:25:30.000Z","size":209,"stargazers_count":12,"open_issues_count":5,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T04:11:29.038Z","etag":null,"topics":["cli","linux","shadowsocks","v2ray","vmess","xray","xray-core"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Bpazy.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":"Bpazy/xraysub","otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2021-08-16T13:13:24.000Z","updated_at":"2025-03-16T04:20:06.000Z","dependencies_parsed_at":"2023-01-24T15:30:31.754Z","dependency_job_id":"6ac93734-db95-4e1b-b545-031750a3f299","html_url":"https://github.com/Bpazy/xraysub","commit_stats":{"total_commits":68,"total_committers":2,"mean_commits":34.0,"dds":0.02941176470588236,"last_synced_commit":"9f2d20505fc9d776dcb0108c73939976b21cf8dc"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fxraysub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fxraysub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fxraysub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fxraysub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bpazy","download_url":"https://codeload.github.com/Bpazy/xraysub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810274,"owners_count":21807759,"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":["cli","linux","shadowsocks","v2ray","vmess","xray","xray-core"],"created_at":"2024-10-03T16:46:30.161Z","updated_at":"2025-05-07T04:11:35.895Z","avatar_url":"https://github.com/Bpazy.png","language":"Go","funding_links":["https://issuehunt.io/r/Bpazy/xraysub"],"categories":[],"sub_categories":[],"readme":"[English](./README.md) | 简体中文\n\u003ch1 align=\"center\"\u003eXraysub\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Test](https://github.com/Bpazy/xraysub/workflows/Test/badge.svg)](https://github.com/Bpazy/xraysub/actions/workflows/test.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Bpazy_xraysub\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=Bpazy_xraysub)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Bpazy/xraysub)](https://goreportcard.com/report/github.com/Bpazy/xraysub)\n\n跨平台 Xray 命令行订阅管理客户端。\n\u003c/div\u003e\n\n## 预览\n```\n$ ./xraysub.exe gen --url=https://comfysub.example.com\nRequesting subscriptions from https://comfysub.example.com\nStart detecting server's latency\n        Detecting 100% [========================================]  [6s:0s]\nGot fastest node \"中国-香港 IEPL(hk.example.com:61307)\" with latency 127ms\nThe xray-core's configuration file is saved ./xray-config.json\n```\n\n## 快速开始\n假设 `xray.exe` and `xraysub.exe` 已经在当前目录\n```\n.\n├── xray.exe\n└── xraysub.exe\n```\n1. 首先运行 `xraysub` 来获取 xray-core 的配置文件\n```\n$ ./xraysub.exe gen --url=https://comfysub.example.com\n```\n2. 运行 xray-core\n```\n$ ./xray-core.exe -c xray-config.json\n```\n3. 使用代理\n```\n$ curl -x HTTPS_PROXY://127.0.0.1:1081 https://www.google.com\n```\n\n## 参数\n```\n$ .\\xraysub.exe help gen\n从订阅链接生成 xray-core 的配置文件。\n\nUsage:\n  xraysub gen [flags]\n\nFlags:\n      --detect-latency             检测服务器的延迟以选择最快的节点 (default true)\n      --detect-thread-number int   检测线程数 (default 5)\n  -h, --help                       help for gen\n  -o, --output-file string         输出配置到指定位置 (default \"./xray-config.json\")\n  -u, --url string                 订阅地址 (URL)\n      --xray string                xray-core 路径，用于检测服务器的延迟 (default \"./xray.exe\")\n      --xray-http-port int         xray-core 监听的 HTTP 端口 (default 1081)\n      --xray-socks-port int        xray-core 监听的 socks 端口 (default 1080)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpazy%2Fxraysub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpazy%2Fxraysub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpazy%2Fxraysub/lists"}