Smartlinks
Smartlinks is a CLI and runtime for turning small JavaScript programs into URLs.
The link is the deployment. Query parameters are its inputs, and the script’s return value becomes the response. There are no accounts and nothing is stored.
Start Here
Install the CLI and build a link:
npm install -g github:jonaslsaa/smartlinks
smartlinks build script.js
Add --secret TOKEN to encrypt a secret for the exact script before
putting it in the URL.
Runtime
- The script receives params, headers, secrets, and a guarded fetch function.
- The CLI compresses the source and seals secrets to the service public key.
- A fresh QuickJS sandbox runs the script inside a Cloudflare Worker.
Smartlinks are immutable, and anyone with the link can run them. Use scoped, revocable credentials.