
1. 新增SUB_STORE_BACKEND_MERGE配置变量,支持功能整合模式: - 当设置SUB_STORE_BACKEND_MERGE为非空任意值时,后端支持同时处理API和前端资源请求 - 新增配置示例: #合并前后端端口 SUB_STORE_BACKEND_MERGE=true #设置接口安全地址 SUB_STORE_FRONTEND_BACKEND_PATH=/safe-api #设置前端文件的路径 SUB_STORE_FRONTEND_PATH=./dist #后端监听的端口 SUB_STORE_BACKEND_API_PORT=3000 #后端监听的HOST SUB_STORE_BACKEND_API_HOST="127.0.0.1" 2. 合并后支持前端在子路由界面刷新: - 原前端在subs、files、sync等页面刷新时会出现404问题,合并后修复了该问题

Sub-Store
Advanced Subscription Manager for QX, Loon, Surge, Stash, Egern and Shadowrocket.
Core functionalities:
- Conversion among various formats.
- Subscription formatting.
- Collect multiple subscriptions in one URL.
The following descriptions of features may not be updated in real-time. Please refer to the actual available features for accurate information.
1. Subscription Conversion
Supported Input Formats
⚠️ Do not use
Shadowrocket
orNekoBox
to export URI and then import it as input. The URIs exported in this way may not be standard URIs.
-
Proxy URI Scheme(
socks5
,socks5+tls
,http
,https
(it's ok))example:
socks5+tls://user:pass@ip:port#name
-
URI(AnyTLS, SOCKS, SS, SSR, VMess, VLESS, Trojan, Hysteria, Hysteria 2, TUIC v5, WireGuard)
-
Clash Proxies YAML
-
Clash Proxy JSON(single line)
-
QX (SS, SSR, VMess, Trojan, HTTP, SOCKS5, VLESS)
-
Loon (SS, SSR, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, WireGuard, VLESS, Hysteria 2)
-
Surge (Direct, SS, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, TUIC, Snell, Hysteria 2, SSH(Password authentication only), External Proxy Program(only for macOS), WireGuard(Surge to Surge))
-
Surfboard (SS, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, WireGuard(Surfboard to Surfboard))
-
Clash.Meta (Direct, SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, Hysteria 2, TUIC, SSH, mieru, AnyTLS)
-
Stash (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, TUIC, Juicity, SSH)
-
Clash (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard)
Supported Target Platforms
- Plain JSON
- Stash
- Clash.Meta(mihomo)
- Clash
- Surfboard
- Surge
- SurgeMac(Use mihomo to support protocols that are not supported by Surge itself)
- Loon
- Egern
- Shadowrocket
- QX
- sing-box
- V2Ray
- V2Ray URI
2. Subscription Formatting
Filtering
- Regex filter
- Discard regex filter
- Region filter
- Type filter
- Useless proxies filter
- Script filter
Proxy Operations
- Set property operator: set some proxy properties such as
udp
,tfo
,skip-cert-verify
etc. - Flag operator: add flags or remove flags for proxies.
- Sort operator: sort proxies by name.
- Regex sort operator: sort proxies by keywords (fallback to normal sort).
- Regex rename operator: replace by regex in proxy names.
- Regex delete operator: delete by regex in proxy names.
- Script operator: modify proxy by script.
- Resolve Domain Operator: resolve the domain of nodes to an IP address.
Development
Install pnpm
Go to backend
directories, install node dependencies:
pnpm i
- In
backend
, run the backend server on http://localhost:3000
babel(old school)
pnpm start
or
esbuild(experimental)
SUB_STORE_BACKEND_API_PORT=3000 pnpm run --parallel "/^dev:.*/"
LICENSE
This project is under the GPL V3 LICENSE.
Star History
Acknowledgements
- Special thanks to @KOP-XIAO for his awesome resource-parser. Please give a star for his great work!
- Special thanks to @Orz-3 and @58xinian for their awesome icons.