English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Русский | Tiếng Việt | العربية | فارسی
Cross-format proxy subscription converter, deployable to Cloudflare Workers and Vercel.
| Format | As Source | As Output |
|---|---|---|
| Clash / Mihomo (YAML) | ✅ | ✅ |
| sing-box (JSON) | ||
| Surge (INI) |
⚠️ sing-box and Surge import/export functionality has not been verified and may contain compatibility issues.
- Fork this repository to your GitHub
- Log in to the Cloudflare Dashboard and go to Workers & Pages
- Click Create application → Connect to GitHub
- Select your forked repository → Next → Deploy
git clone https://github.com/Motrans/prism.git
cd prism
npm install
npm run deploygit clone https://github.com/Motrans/prism.git
cd prism
npm install
npx vercel deploy --prodNo build step needed — the pre-built api/index.js is already included in the repository.
npm run dev # Cloudflare Workers → http://localhost:8787
npm run dev:vercel # Vercel (Node.js) → http://localhost:8788
npm run build # Bundle for Cloudflare Workers
npm run build:vercel # Rebuild api/index.js for Vercelprism/
├── src/
│ ├── worker.ts # Worker routes + conversion API
│ ├── vercel.ts # Vercel adapter source
│ ├── frontend/ # HTML / CSS / client JS
│ ├── parsers/ # Subscription + config parsers
│ ├── generators/ # Output format generators
│ └── utils/ # Types + defaults
├── api/
│ └── index.js # Pre-built Vercel function
├── scripts/
│ └── dev-vercel.js # Local Vercel dev server
├── public/ # Vercel static placeholder
├── vercel.json # Vercel routing config
├── wrangler.toml # Cloudflare Workers config
└── package.json
MIT © 2026 Zhong Zhiyu. All rights reserved.