Skip to content

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

License

Notifications You must be signed in to change notification settings

7Sageer/sublink-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
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

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)
  • Fixed DNS configuration for Singbox (#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 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published