sublink-worker Documentation

One Worker, All Subscriptions

5,492 stars JavaScript JavaScript 1 file ยท ~1,013 tokens #clash#clash-meta#cloudflare-workers#mihomo#singbox#v2rayn#v2rayng#xray-core
RAW Doc

Docker & Self-Hosted Deployment Verified OCI

Deploy sublink-worker on any server, homelab, or cloud container platform.

1-Click Terminal Command
bash (docker run)
docker run -d --name sublink-worker -p 8787:8787 --restart always redis:7-alpine
Configured Services & Ports
โš™๏ธ worker
image: ${SUBLINK_WORKER_IMAGE:-ghcr.io/7sageer/sublink-worker:latest}
๐Ÿ”Œ Ports: 8787:8787
โš™๏ธ redis
image: redis:7-alpine
docker-compose.yml
yaml (docker-compose.yml)
services:
  worker:
    image: ${SUBLINK_WORKER_IMAGE:-ghcr.io/7sageer/sublink-worker:latest}
    pull_policy: always
    ports:
      - "8787:8787"
    environment:
      REDIS_HOST: redis
      REDIS_PORT: 6379
      REDIS_KEY_PREFIX: sublink
      # Set to 0 to keep stored configs without automatic expiration.
      CONFIG_TTL_SECONDS: 2592000
    depends_on:
      - redis
  redis:
    image: redis:7-alpine
    command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
    volumes:
      - redis-data:/data
      - ./redis.conf:/usr/local/etc/redis/redis.conf:ro
    restart: unless-stopped
volumes:
  redis-data:

โ„น๏ธ Provenance: Multi-Tier Ingestion ยท CodeWiki Reference

Overview (`README.md`)

๐Ÿš€ Quick Start

One-Click Deployment

  • Choose a "deploy" button above to click
  • That's it! See the Document for more information.

Alternative Runtimes

  • Node.js: npm run build:node && node dist/node-server.cjs
  • Vercel: vercel deploy (configure KV in project settings)
  • Docker: docker pull ghcr.io/7sageer/sublink-worker:latest
  • Docker Compose: docker compose up -d (includes Redis)

โœจ Features

Supported Protocols

ShadowSocks โ€ข VMess โ€ข VLESS โ€ข Hysteria2 โ€ข Trojan โ€ข TUIC

Client Support

Sing-Box โ€ข Clash โ€ข Xray/V2Ray โ€ข Surge

Input Support

  • Base64 subscriptions
  • HTTP/HTTPS subscriptions
  • Full configs (Sing-Box JSON, Clash YAML, Surge INI)

Core Capabilities

  • Import subscriptions from multiple sources
  • Generate fixed/random short links (KV-based)
  • Light/Dark theme toggle
  • Flexible API for script automation
  • Multi-language support (Chinese, English, Persian, Russian)
  • Web interface with predefined rule sets and customizable policy groups

๐Ÿค Contributing

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.

โญ Star History

Thanks to everyone who has starred this project! ๐ŸŒŸ


--- METRICS ---