Skip to content

SubConv/SubConv

Repository files navigation

Subscription Converter

English | 中文

license last commit

This project is a subscription converter aiming to transform subscriptions into mihomo-compatible configs.

We ship two built-in templates in the root template/ directory: zju.yaml and general.yaml. The Web UI defaults to zju, and the API does the same when the template query parameter is omitted. The repository includes config.yaml.example as the default runtime config.

Screenshot

screenshot

Features

  • Support Clash config and V2ray format base64 links (i.e. the original subscription does not have to be Clash)
  • A Web-UI (thanks to @Musanico)
  • Rules based on ACL
  • Nodes auto update based on proxy-provider
  • Rules auto update based on rule-provider
  • Support proxy rule-provider to prevent failure to get rules from GitHub
  • Support multiple airports
  • Display remaining traffic and total traffic (only useful when you use a single airport, requires your airport and Clash to support it at the same time, Clash for Windows, Clash Verge, Stash, Clash Meta for Android, etc. are known to support it)
  • Implement the api of subscription conversion to proxy-provider (normal people won't use it)
  • Support template files

Docs

docs (both Chinese and English, but machine translated)

Repo Layout

  • subconv/: FastAPI backend and converter logic
  • api.py: thin entrypoint used by the CLI and Vercel
  • config.yaml.example: example runtime config; put user changes in config.yaml
  • template/: runtime YAML templates (zju.yaml is the default, general.yaml is the alternate)
  • mainpage/: Vue/Vite frontend
  • docs/: VitePress documentation site, deployed separately via GitHub Pages

Local commands (requires uv and bun):

  • Backend: uv sync, optionally copy config.yaml.example to config.yaml (recommended; the bundled docker-compose.yml requires it), edit it if needed, then uv run python api.py
  • Frontend: cd mainpage && bun install && bun run dev
  • Docs: cd docs && bun install && bun run dev

P.S

Clash Core from Dreamacro (original Clash core) is no longer supported. It's recommended to use mihomo instead.

Usage

Deploy by yourself according to docs

Contribute

Welcome issue and PR. If you want to contribute, please create a new branch from main and then create a PR to dev, or you can merge main into dev first and then make changes in dev, and finally create a PR to dev branch.

Credits

License

This project is distributed under MPL-2.0 License

About

Yet Another Subscription Converter for Clash

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors