Нема описа

Mohammad Reza Mokhtarabadi 2466d4336d feat: modernize, clean, and robustify V2Ray-to-subs project пре 6 месеци
.idea 646a54b9f2 Remove ChatHistory_schema_v2.xml from index and add to .idea/.gitignore пре 6 месеци
.gitignore 6ac5df59cd Add clash-meta & sing-box binaries to .gitignore; ignore IDE chat history explicitly пре 6 месеци
LICENSE 2af50f5c64 Add MIT License file пре 6 месеци
README.md 0ec302e6e2 Initial commit: working v2ray subscription to Clash Meta & Singbox config generator with docs, templates, and robust CLI script пре 6 месеци
config.yaml 2466d4336d feat: modernize, clean, and robustify V2Ray-to-subs project пре 6 месеци
requirements.txt 0ec302e6e2 Initial commit: working v2ray subscription to Clash Meta & Singbox config generator with docs, templates, and robust CLI script пре 6 месеци
singbox.json 2466d4336d feat: modernize, clean, and robustify V2Ray-to-subs project пре 6 месеци
sub2clash_singbox.py 2466d4336d feat: modernize, clean, and robustify V2Ray-to-subs project пре 6 месеци

README.md

v2ray Subscription to Clash Meta & Singbox Config Generator

This Python project converts a v2rayNG-style subscription link (vmess/vless/ss/trojan/socks) directly to two config formats:

  • A Clash Meta YAML config (config.yaml style)
  • A Singbox JSON config (signbox.json style)

Both outputs retain advanced template features (DNS, rules, anti-DNS-hijack, groups) as provided in your base configs.

Features

  • Parses all links in a v2ray subscription (vmess, vless, trojan, ss, socks)
  • Injects nodes into both configs per your template structure
  • Preserves all routing, geoip, dns, and proxy group tricks (Iran/anti-hijack optimized)
  • Outputs ready-to-use configs for both Clash Meta and Singbox

Requirements

Setup and usage is simple:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

python sub2clash_singbox.py <subs_url> config.yaml singbox.json result_clash.yaml result_singbox.json

Where:

Notes

  • All existing template proxies are replaced; proxy groups, rules, and DNS remain as in your base config.
  • If your template has hardcoded outbounds (e.g. "warp", "us") they will appear in Singbox unless removed from the template.
  • Fully robust to mix of protocols or large sub lists (tested on 100+ node links).

License

MIT