Legacy-Compatible License Engine
Accepts both x-www-form-urlencoded and JSON payloads, enforces per-key activation limits in Cloudflare KV, and resolves both existing legacy UUIDs and newly minted keys without forcing desktop users to re-activate.
Migrating off Lemon Squeezy ahead of the March 31, 2027 transition to Stripe Managed Payments? Deploy a minimal, self-hosted Cloudflare Worker + R2 + Ed25519 license API inside your own infrastructure — compatible with legacy license-key payloads and paired cleanly with Stripe, Paddle, or Polar.
- const ENDPOINT = "https://api.lemonsqueezy.com/v1/licenses/validate";+ const ENDPOINT = "https://licenses.your-app.com/v1/licenses/validate"; const res = await fetch(ENDPOINT, { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: new URLSearchParams({ license_key, instance_id }), // Legacy UUID aliases supported }); // Returns { valid, error, license_key, instance, meta } + offline-verifiable Ed25519 token
Inspect which active subscriptions in your Lemon Squeezy subscriptions.csv export use PayPal or sit outside Stripe Managed Payments’ 37 supported countries. Processing runs strictly inside your browser tab — zero CSV rows ever leave your machine.
No file loaded yet. Select your local subscriptions.csv above (nothing is uploaded) or click "Load Example CSV" to preview the deduplicated PayPal and country audit.
Core billing processors handle cards, subscriptions, and global tax — while this source kit restores the indie product primitives (license validation, expiring file downloads, and affiliate webhooks) inside your own Cloudflare account with zero third-party runtime dependency.
| Capability | Core Billing Processor Only | With Self-Hosted Source Kit |
|---|---|---|
License Key Validation API/v1/licenses/activate|validate|deactivate |
Not bundled (requires custom service) | Schema-compatible endpoints + legacy UUID alias map in Cloudflare KV |
| Offline / Air-Gapped License Check | Requires online API call | RFC 8032 Ed25519 signed tokens verifiable locally via WebCrypto or native crypto |
| Expiring Digital File Delivery | No built-in download gating | HMAC-SHA256 time-limited links + per-order download caps backed by Cloudflare R2 |
| Affiliate Attribution & Clawbacks | Requires separate SaaS tool | Signed 60-day first-party cookie + constant-time webhook check + automatic refund reversal |
| PayPal & International Subscriber Audit | Manual spreadsheet filtering | Zero-dependency Python CLI audit script + exportable subscriber segmentation |
You never hand us production API keys, customer emails, or license databases. You receive the full TypeScript Worker, Python 3 migration CLI, and automated unit + E2E test suites to inspect, audit, and deploy directly on your own Cloudflare account.
Accepts both x-www-form-urlencoded and JSON payloads, enforces per-key activation limits in Cloudflare KV, and resolves both existing legacy UUIDs and newly minted keys without forcing desktop users to re-activate.
Generates short-lived HMAC-SHA256 signed download URLs with strict expiration TTL and download-count ceilings so installers and digital assets stay private inside your own R2 bucket.
Verifies webhook signatures in constant time, tracks integer-cent referral payouts idempotently across retries, and reverses affiliate balances automatically on charge.refunded or disputes.
Buy the complete TypeScript Worker + Python CSV Migrator once for $99 and run it on your own Cloudflare Free/$5 account across unlimited products. Need zero-ops hosting or hands-on deployment? Optional add-ons are available below.
One-time purchase · Full TypeScript & Python source + test suite
For teams preferring managed ops · Cancel anytime
Need hands-on deployment? Fixed-fee assisted migration ($499, includes the Self-Host Source Kit plus live Cloudflare setup & webhook verification inside your account) is available via direct booking.
No. KeySwitch seeds Cloudflare KV with an alias mapping from every legacy Lemon Squeezy UUID key to its new Ed25519-backed record. Swap the API base URL in your app or proxy and existing installs validate without interruption.
PayPal billing agreements owned by Lemon Squeezy cannot be silently transferred into Stripe Managed Payments. Any active PayPal subscriber who does not move to a card before March 31, 2027 silently churns. Our migrator flags every affected subscriber and outputs a ready-to-send 3-touch winback campaign.
KeySwitch parses customers.csv and subscriptions.csv against the 37 supported country codes and exports a clean non_37_customers.csv list with exact MRR at risk so you can route those renewals through Polar.sh, Paddle, or direct Stripe Checkout without losing international revenue.
A single zero-dependency TypeScript Cloudflare Worker using Cloudflare KV + R2 (fits inside Cloudflare's free / $5 plan even at tens of thousands of daily license checks) plus a zero-dependency Python 3 migrator with pure RFC 8032 Ed25519 signing.
Yes. The License Key API (/v1/licenses/*), Signed Download API (/v1/downloads/sign), and Affiliate Tracker (/v1/affiliates/track) are payment-processor agnostic, with native Stripe webhook verification included out of the box.