π¦ ClawHub
Share One-Time Link
by @hitman86r
Generate public one-shot or time-limited download links for files using a local Express server exposed via Cloudflare Tunnel. Links are tokenized, expire aut...
π‘ Examples
Generate a link (via script)
SHARE_SECRET="your-secret" \
node skills/share-onetime-link/scripts/share-file.js /path/to/file.pdf 30
Returns a public link valid for 30 minutes
Generate a link (via agent)
Just ask naturally:
> "Share report.pdf for 20 minutes"
> "Generate a download link for photo.jpg, valid 1 hour"
Check active links
curl -H "x-share-secret: your-secret" http://localhost:5050/status
βοΈ Configuration
1. Install dependencies
cd skills/share-onetime-link/scripts
npm install
2. Configure Cloudflare Tunnel
Create a tunnel in the Cloudflare Zero Trust dashboard:
http://localhost:5050share.yourdomain.comRun the tunnel:
cloudflared tunnel run --token YOUR_TUNNEL_TOKEN
3. Start the server
SHARE_PUBLIC_URL="https://share.yourdomain.com" \
SHARE_SECRET="your-strong-random-secret" \
node skills/share-onetime-link/scripts/server.js
Or use start.sh (edit variables first):
bash skills/share-onetime-link/scripts/start.sh
TERMINAL
clawhub install share-onetime-link