Automatically converts plsy1/v2ray-rules-dat datasets and Loyalsoldier/geoip classical rules into ready-to-use Surge rules.
English | 中文
- Open the dashboard: https://surge.chisan1230.workers.dev.
- Search and select a dataset (Geosite or GeoIP).
- Copy the generated raw URL.
- Paste it into your Surge rules.
If you want to use rule URLs directly, the format is:
- Geosite rules path:
https://surge.chisan1230.workers.dev/geosite/:name_with_filter - GeoIP rules path:
https://surge.chisan1230.workers.dev/geoip/:country(e.g./geoip/cn)
name_with_filter has two forms:
- Without filter:
appleReturns the full rules for theappledataset. - With filter:
apple@cnReturns only rules tagged with@cn.
Surge example:
[Rule]
RULE-SET,https://surge.chisan1230.workers.dev/geosite/apple@cn,DIRECT
RULE-SET,https://surge.chisan1230.workers.dev/geosite/strict/category-ads-all,REJECT
RULE-SET,https://surge.chisan1230.workers.dev/geoip/cn,DIRECTGET /geositeGET /geosite/:name_with_filter(default mode:balanced)GET /geosite/:mode/:name_with_filter
GET /geoipGET /geoip/:country(returns raw rules list for country code)
strict: only lossless regex conversionbalanced: controlled downgrade (default)full: most permissive conversion (widest coverage, highest over-match risk)
Local dev:
pnpm install
pnpm build
pnpm test
pnpm panel:dev
pnpm worker:devDeploy:
pnpm panel:deploy
pnpm worker:deployTechnical architecture: docs/architecture.md