How 7sageer/sublink-worker works
Sublink Worker is a web-based proxy subscription manager and converter. Its main user workflow takes share links or complete client configs, parses them into proxy data, applies client-specific configuration and rules, then presents subscription links. The README also documents saved configs, short links, an automation API, and multiple deployment runtimes. The sampled sources establish parser behavior, storage operations, and runtime entry points; the application routes and UI-to-service wiring were not sampled, so those relationships are shown only where supported.
Main entry points: httpSubscriptionFetcher.js HTTP Fetcher · kv KV Adapters · createApp.jsx Application · runtimeConfig.js Runtime Config
Components 20
Web and API
- Web Interface
src/components/Form.jsx - Automation API
src/app/createApp.jsx - Application
src/app/createApp.jsx
Parsing and Conversion
- Proxy Parser
src/parsers/ProxyParser.js - Protocol Parsers
src/parsers/protocols - HTTP Fetcher
src/parsers/subscription/httpSubscriptionFetcher.js - Content Parser
src/parsers/subscription/subscriptionContentParser.js - Surge INI Parser
src/utils/surgeConfigParser.js
Config and Rules
- Client Builders
src/builders - Rules and Presets
src/config
Persistence and Links
- Config Storage
src/services/configStorageService.js - Short Links
src/services/shortLinkService.js - KV Adapters
src/adapters/kv
Runtime Adapters
- Worker Entry
src/worker.jsx - Vercel Adapter
src/runtime/vercel.js - Node Adapter
src/runtime/node.js - Runtime Config
src/runtime/runtimeConfig.js
Other components
- User
- Subscription Sources
- KV Provider
Connections 17
- User → Web Interface: uses
- User → Automation API: requests
- Worker Entry → Application: dispatches
- Vercel Adapter → Application: dispatches
- Node Adapter → Application: serves
- Worker Entry → Runtime Config: configures
- Vercel Adapter → Runtime Config: configures
- Node Adapter → Runtime Config: configures
- Subscription Sources → HTTP Fetcher: provides content
- Proxy Parser → Protocol Parsers: dispatches
- Proxy Parser → HTTP Fetcher: fetches HTTP
- HTTP Fetcher → Content Parser: parses content
- Content Parser → Surge INI Parser: converts INI
- Client Builders → Rules and Presets: uses settings
- Config Storage → KV Adapters: uses store
- Short Links → KV Adapters: uses store
- KV Adapters → KV Provider: reads and writes