Worker URL: https://echokit-license.echokit-rk.workers.dev
Status: โ
Deployed and healthy
Health Check: Working perfectly!
Secrets: โ
HMAC_SECRET and ADMIN_TOKEN configured
The EchoKit Worker is a tiny app running in the cloud that checks if EchoKit Pro license keys are real and valid.
Think of it like a bouncer at a club - when someone shows a VIP pass (license key), the bouncer checks:
Where it runs: Cloudflareโs global network (200+ cities worldwide)
Cost: $0/month (free tier covers everything)
Speed: <10ms anywhere in the world
WITHOUT a Worker โ:
WITH a Worker โ :
EK-PRO-1738281600-a1b2c3d4e5f6 (has math proof built-in)EK-PRO-1738281600-a1b2c3d4e5f6
โ โ โ โ
โ โ โ โโโ Signature (mathematical proof it's real)
โ โ โโโโโโโโโโโโโโ Expiry date (Unix timestamp)
โ โโโโโโโโโโโโโโโโโโ Plan type (PRO/YEAR/LTD)
โโโโโโโโโโโโโโโโโโโโโโ EchoKit prefix
The signature is created using HMAC-SHA256 cryptography with your secret key. Without knowing your secret, itโs mathematically impossible to create a valid signature. Even a supercomputer couldnโt crack it in billions of years.
1. User pastes key in EchoKit extension
2. Extension sends to Worker: "Is EK-PRO-1738281600-a1b2c3d4e5f6 valid?"
3. Worker checks:
โ Format correct? (EK-PLAN-TIMESTAMP-SIG)
โ Signature matches? (uses your secret to verify)
โ Not expired? (compares timestamp to now)
4. Worker responds: "โ
YES! Plan: PRO, Expires: Dec 31, 2026"
5. Extension unlocks Pro features
Security: Only YOU know the ECHOKIT_HMAC_SECRET. Nobody else can create valid keys.
curl https://echokit-license.echokit-rk.workers.dev/__health
# Response: {"ok":true,"name":"EchoKit License API"}
POST /v1/validate
Body: {"key": "EK-PRO-1738281600-..."}
# If valid:
{"valid": true, "plan": "PRO", "expiresAt": 1738281600}
# If fake:
{"valid": false, "error": "invalid signature"}
POST /v1/issue
Headers: Authorization: Bearer <YOUR_ADMIN_TOKEN>
Body: {"plan": "PRO", "expiresAt": 0}
# Response:
{"ok": true, "key": "EK-PRO-1738281600-a1b2c3d4", "plan": "PRO"}
POST /v1/stripe-webhook # Stripe (already coded!)
POST /v1/lemonsqueezy-webhook # LemonSqueezy (recommended to add)
# When customer pays:
# โ Webhook fires
# โ Worker generates key
# โ Email sent automatically
Cloudflare Workers Free Tier:
Your actual usage with 1,000 Pro users:
If you somehow exceed 100K/day: $5/month for 10 million requests.
Verdict: Youโll never pay for this. Free forever.
Letโs say Sarah wants to buy EchoKit Lifetime:
EK-LTD-0-f3a8b2c1 (LTD = lifetime, 0 = never expires)All of this happens in <1 second with zero manual work from you.
cd worker
# Set your credentials (you got these during deployment)
export ECHOKIT_WORKER_URL="https://echokit-license.echokit-rk.workers.dev"
export ECHOKIT_ADMIN_TOKEN="<paste-your-admin-token>"
# Run the interactive key issuer
./issue-license.sh
It will ask:
Select plan type:
1) PRO - Monthly (30 days)
2) YEAR - Annual (365 days)
3) LTD - Lifetime (never expires)
Enter choice [1-3]: 3
Choose 3 โ Youโll get a real lifetime license key!
Then test it in the extension.
Option A: LemonSqueezy ๐ (RECOMMENDED)
../../../worker/LEMONSQUEEZY_INTEGRATION.mdOption B: Stripe (Already coded!)
../../../worker/PAYMENT_AUTOMATION_SETUP.mdOption C: Both!
Q: What if I donโt use the worker?
A: EchoKit works fine, but only Free tier. No way to safely sell Pro without it.
Q: Can someone hack/crack the keys?
A: No. HMAC-SHA256 is military-grade crypto. Without your secret, impossible to forge.
Q: What if Cloudflare goes down?
A: Extension caches validations for 24 hours. Plus Cloudflare has 99.99% uptime (better than AWS).
Q: What if I lose ECHOKIT_HMAC_SECRET?
A: All existing keys become invalid. Youโd need to issue new keys to all customers. SAVE IT IN YOUR PASSWORD MANAGER!
Q: Can I see whoโs using what keys?
A: Current version doesnโt log. Future version could add analytics (KV store).
Q: Can I revoke a key if someone cheats?
A: Not in current version (stateless design). V2 could add a revocation list.
What it is: Your license server in the cloud
Why you need it: Prevent piracy, secure revenue, automate sales
Cost: $0/month
Speed: <10ms globally
Security: Impossible to crack
Your URL: https://echokit-license.echokit-rk.workers.dev
Without it: You canโt safely sell Pro licenses (anyone can fake keys)
With it: Enterprise-grade license management for free
๐ฏ Your worker is deployed and ready!
Test it now: cd worker && ./issue-license.sh ๐