imzyb/MiSub
소개
테스트 사이트, 비밀번호: admin123
기타 프로젝트What you can do
- Profiles: combine upstream subscriptions and manual nodes into scenario-specific subscription profiles, including nested profiles inside profiles.
- Profile links: every profile is published under a server-validated, resettable linkId; retired identifiers stop working.
- Subscription and node management: manage airport subscriptions, manual nodes, groups, ordering, remarks, traffic, and expiry data.
- Operator Chain: process nodes with filter, regex rename, script/DSL execution, sorting, and smart deduplication steps.
측정된 스타 증가
- in 24h
- +3
- in 7 days
- +18
- in 15 days
- +18
- in 1 month
- +55
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMiSub
中文说明请见 README-zh.md · Türkçe açıklama için README-tr.md.
A lightweight subscription management panel for organizing proxy nodes, generating client-ready subscriptions, and composing node-processing workflows.
Features • Quick Start • Deployment • Usage • Documentation
Overview
MiSub helps you manage upstream subscriptions and manual nodes, combine them into profiles, process nodes through a visual operator chain, and publish subscription links for common proxy clients.
It is designed for personal and small-team usage: simple operations, clear client links, safe defaults, and flexible Cloudflare Pages deployment.
Screenshots
| Login | Dashboard |
|---|---|
![]() |
![]() |
Features
- Profiles: combine upstream subscriptions and manual nodes into scenario-specific subscription profiles, including nested profiles inside profiles.
- Profile links: every profile is published under a server-validated, resettable
linkId; retired identifiers stop working. - Subscription and node management: manage airport subscriptions, manual nodes, groups, ordering, remarks, traffic, and expiry data.
- Operator Chain: process nodes with filter, regex rename, script/DSL execution, sorting, and smart deduplication steps.
- Multi-client output: generate subscription output for Clash/Mihomo, Sing-Box, Surge, Loon, Quantumult X, Shadowrocket, V2rayN/V2rayNG, and base64 clients.
- Built-in templates: use unified template output, rule-set presets, region groups, policy groups, and custom rule templates.
- Custom public page: publish a public explore page or an immersive disguise/custom page with sanitized HTML rendering.
- Storage options: use Cloudflare KV for simple deployments or Cloudflare D1 for higher write volume and structured storage; with D1, optional node snapshots can serve subscription output straight from the database, sharding oversized snapshots.
- Notifications and operations: support Telegram notifications, scheduled refresh, backup/restore (including WebDAV push and remote restore), logs, and diagnostics.
- External management API: manage subscriptions, nodes, and profiles from scripts through the Bearer-token protected
/api/ext/v1endpoints. - Modern UI: responsive Vue 3 interface with light/dark modes and English/Chinese localization.
Supported Protocols
- Shadowsocks / SS2022
- VMess
- VLESS
- Trojan
- Hysteria2 / HY2
- TUIC
- Snell
- WireGuard
- AnyTLS
- HTTPS
- SOCKS5 / SOCKS5-TLS
Supported Output Formats
clash/ Mihomo YAMLsurgeloonquanxsingboxbase64- external converter backend mode
Quick Start
Prerequisites
- A GitHub account
- A Cloudflare account
- Node.js 20+ for local development
Deploy to Cloudflare Pages
- Fork this repository.
- Open Cloudflare Dashboard.
- Go to
Workers & Pages→Create application→Pages→Connect to Git. - Select your forked repository.
- Configure build settings:
- Framework preset:
Vue - Build command:
npm run build - Build output directory:
dist
- Framework preset:
- Deploy the project.
- Bind storage before production use.
Deployment
Required KV binding
Create or select a Cloudflare KV namespace, then bind it in Pages settings:
- Variable name:
MISUB_KV - Binding type: KV namespace
Optional D1 binding
D1 is recommended when you refresh subscriptions frequently or want structured storage.
wrangler d1 create misub
wrangler d1 execute misub --file=schema.sql --remote
Bind the database in Pages settings:
- Variable name:
MISUB_DB - Binding type: D1 database
If schema initialization fails in the CLI, run the latest schema.sql manually in the Cloudflare D1 console.
Recommended environment variables
ADMIN_PASSWORD: admin login password. If unset, the default password isadmin.COOKIE_SECRET: stable session signing secret.CORS_ORIGINS: allowed browser origins for API requests.CRON_SECRET: secret used by external cron triggers.MISUB_PUBLIC_URL: public site URL used to generate subscription conversion callback URLs.MISUB_CALLBACK_URL: callback base URL for subscription conversion. It takes precedence overMISUB_PUBLIC_URL.
Never commit real tokens, cookies, UUID/private keys, webhook secrets, bot tokens, subscription URLs, or airport domains.
Keeping your fork up to date
.github/workflows/fork-sync.yml runs in forks once a day at 06:00 Beijing time (22:00 UTC the previous day — GitHub cron fields only accept UTC) and merges upstream imzyb/MiSub main into your main. Step logs and the run summary always print Beijing time. It never resets the branch and never force-pushes:
- no new upstream commits: skipped;
- clean merge: merged (with a merge commit when needed) and pushed; your own commits are kept;
- conflicting changes: the merge is rolled back and nothing is pushed, and the run summary lists the conflicting files.
If the upstream change touches .github/workflows/**, the default GITHUB_TOKEN cannot push it. Add a SYNC_PAT secret (Contents: Read and write and Workflows: Write) to keep those syncs working; otherwise that run is skipped. Forks still on the old mirror-style workflow switch over after one manual Sync fork.
Resolve conflicts locally with git fetch upstream && git merge upstream/main, then push. To pause automation, disable the Fork Sync workflow in the Actions tab.
Local Development
npm install
npm run dev
The dev server listens on 0.0.0.0, so phones and other devices on the same LAN can open
http://<your-lan-ip>:5173 directly. For local Pages Functions testing:
npm run dev:server -- --kv MISUB_KV --persist-to .wrangler/state-local
dev:server also binds all interfaces (--ip 0.0.0.0); restrict it with --ip 127.0.0.1
if you only need local access.
Useful commands:
npm test -- --run
npm run build
npm run preview
A profile's public link is driven by its Subscription ID (custom ID first, then the auto-generated one). Changing or regenerating it invalidates the previous link immediately — see docs/profile-url.md.
Usage
- Log in to the admin panel.
- Add upstream subscriptions or manual nodes.
- Create profiles that combine selected sources and manual-node groups.
- Configure the operator chain if you need filtering, renaming, sorting, or deduplication.
- Copy the generated client link or QR code.
- Import the link into your preferred proxy client.
Operator Chain
Profiles can inherit a global default operator chain or define their own processing flow. Available operators include:
- Filter nodes by protocol, region, include regex, or exclude regex.
- Rename nodes with regex replacement or templates.
- Apply restricted script/DSL operations.
- Sort nodes by weighted conditions and custom region priority.
- Deduplicate nodes with protocol-aware smart rules.
See Operator Chain Guide for details.
Security Notes
- Admin APIs are password/session protected.
- Custom public HTML is sanitized before rendering.
- User-provided scripts are not executed in the main page context.
- External resource loading and iframe URLs are restricted by renderer policy.
- Subscription fetch and preview flows include SSRF-oriented safeguards.
- Use strong secrets for
ADMIN_PASSWORD,COOKIE_SECRET, andCRON_SECRET.
Documentation
- Chinese README
- Turkish README
- External API Usage Guide
- External API Reference
- External API OpenAPI Spec
- Operator Chain Guide
- v2.5.0 Upgrade Guide
- Architecture
- Data Model
Version
Current version: v2.8.0
For detailed historical changes, see README-zh.md and the repository commit history.
Acknowledgements
Thanks to sponsor ForZTN for supporting the project server.
MiSub is developed from CF-Workers-SUB. Thanks to CM for the open-source contribution.
License
MIT License. See LICENSE.
관련 프로젝트 살펴보기
불러오는 중…

