An open API service indexing awesome lists of open source software.

https://github.com/7sageer/sublink-worker

无需服务器,一键部署,快速使用自建节点分享URL进行订阅转换,提供灵活的自定义选项,支持SingBox/Clash/V2Ray/Xray
https://github.com/7sageer/sublink-worker

clash clash-meta cloudflare-workers mihomo singbox v2rayn v2rayng xray-core

Last synced: 5 months ago
JSON representation

无需服务器,一键部署,快速使用自建节点分享URL进行订阅转换,提供灵活的自定义选项,支持SingBox/Clash/V2Ray/Xray

Awesome Lists containing this project

README

          


Sublink Worker


Best Practice for Serverless Self-Deployed Subscription Conversion Tool



7Sageer%2Fsublink-worker | Trendshift






Deploy to Cloudflare Workers



中文文档


## 🚀 Quick Start

### Quick Deployment
- Fork this project, click the `Deploy to Cloudflare` button above
- Select your repository in the `Import Repository` section (you need to link your GitHub account)
- Change the `Deploy Command` as follows, then select `Save and Deploy`
``` bash
npm run deploy
```

## ✨ Features

### Supported Protocols
- ShadowSocks
- VMess
- VLESS
- Hysteria2
- Trojan
- TUIC

### Core Features
- Support for importing Base64 http/https subscription links and various protocol sharing URLs
- Pure JavaScript + Cloudflare Worker implementation, one-click deployment, ready to use
- Support for fixed/random short link generation (based on KV)
- Light/Dark theme toggle
- Flexible API, supporting script operations
- Support for Chinese, English, and Persian languages

### Client Support
- Sing-Box
- Clash
- Xray/V2Ray

### Web Interface Features
- User-friendly operation interface
- Various predefined rule sets
- Customizable policy groups for geo-site, geo-ip, ip-cidr, and domain-suffix

## 📖 API Documentation

For detailed API documentation, please refer to [APIDoc.md](/docs/APIDoc.md)

### Main Endpoints
- `/singbox` - Generate Sing-Box configuration
- `/clash` - Generate Clash configuration
- `/xray` - Generate Xray configuration
- `/shorten` - Generate short links

## 📝 Recent Updates

### 2025-05-02

- Automatic renaming is now applied when proxies with the same name exist ([#175](https://github.com/7Sageer/sublink-worker/pull/175))
- Fixed DNS configuration for Singbox ([#174](https://github.com/7Sageer/sublink-worker/pull/174))

## 🔧 Project Structure

```
.
├── index.js # Main server logic, handles request routing
├── BaseConfigBuilder.js # Build base configuration
├── SingboxConfigBuilder.js # Build Sing-Box configuration
├── ClashConfigBuilder.js # Build Clash configuration
├── ProxyParsers.js # Parse URLs of various proxy protocols
├── utils.js # Provide various utility functions
├── htmlBuilder.js # Generate Web interface
├── style.js # Generate CSS for Web interface
├── config.js # Store configuration information
└── docs/
├── APIDoc.md # API documentation
├── UpdateLogs.md # Update logs
├── FAQ.md # Frequently asked questions
└── BaseConfig.md # Basic configuration feature introduction
```

## 🤝 Contribution

Issues and Pull Requests are welcome to improve this project.

## 📄 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## ⚠️ Disclaimer

This project is for learning and exchange purposes only. Please do not use it for illegal purposes. All consequences resulting from the use of this project are solely the responsibility of the user and are not related to the developer.

## 💰 Sponsorship


Thanks to the following sponsors for their support of this project




YXVM




NodeSupport


NodeSupport has sponsored this project, thank you for your support!


If you would like to sponsor this project, please contact the developer @7Sageer


## ⭐ Star History

Thanks to everyone who has starred this project! 🌟





Star History Chart