Skip to content
 
 

Latest commit

 

History

85 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

$${\color{#3B82F6}\Huge Serverless \space Runtime}$$

⁠■ Persian Documentation
⁠■ English Documentation


$${\color{#94A3B8}\Large Recent \space Changes}$$

Click here to see details
  • Modular architecture: worker logic split into src/core.js, src/network.js, src/routes.js, and src/clash.js instead of a single large file.

  • Safer WASM startup: WASM is initialized once per isolate via a lazy singleton pattern, only when a WebSocket connection is opened.

  • Self-contained config panel: index.html is bundled at build time, no runtime fetch to GitHub Pages.

  • Faster proxy relay: TCP response path uses Uint8Array instead of Blob for header concatenation.

  • Resilient ProxyIP fallback: multiple ProxyIP domains are tried in sequence if the primary one is unreachable.

  • Non-TLS configs for xray-enhanced: added TCP (non-TLS) variants alongside TLS ones, for clients that support them like PattNG.

  • Native Clash Meta subscription: added /clash/<uuid>, generating a full Clash Meta (mihomo) config directly from the worker — no external subconverter api service required.


$${\color{#94A3B8}\Large Setup}$$

After forking this repository, you need to create a few GitHub repository secrets before running the workflow.

$${\color{silver}\large Go \space to:}$$

$${\color{#3B82F6}\Large Your \space Repository \space → \space Settings \space → \space}$$ $${\color{#3B82F6}\Large → \space Secrets \space and \space variables \space → \space actions}$$

$${\color{silver}\large Then \space click:}$$

$${\color{#3B82F6}\Large New \space repository \space secret}$$

$${\color{silver}\large and \space add \space the \space following \space variables.}$$

Secret Name Required Default Description
CLOUDFLARE_API_TOKEN ✔️Yes - Your Cloudflare Account API Token. It must have permission to Edit Workers.
CLOUDFLARE_ACCOUNT_ID ✔️Yes - Your Cloudflare Account ID.
UUID Optional be0ff9df-1468-41a0-8865-796d1c6800db Your own Version 4 UUID. If not provided, the workflow will automatically generate a random one.
PROXYIP Optional di.nscl.ir Optional proxy IP or hostname. If omitted, the default value will be used. ProxyIP tools

rain


$${\color{#94A3B8}\Large Required \space Information}$$

The following two secrets are required and must be obtained from your own Cloudflare account

  • CLOUDFLARE_API_TOKEN
  • CLOUDFLARE_ACCOUNT_ID

More details


$${\color{#94A3B8}\Large Note}$$

The API Token must include permission to Edit Workers. Otherwise, the deployment workflow will fail.

Once these secrets have been added, the GitHub Actions workflow is ready to deploy.

About

serverless runtime

Resources

Stars

88 stars

Watchers

0 watching

Forks

Contributors

Languages