Categories
Self-Hosted Order Management Payments E-commerce License Management Subscription Billing Digital Downloads Stripe IntegrationStars
Forks
Watchers
Developer links
Keypost
Keypost is a self-hosted license key and file delivery service for sellers who take payments through Stripe, built so apps written for Lemon Squeezy keep working after a single base URL change. Teams leaving Lemon Squeezy before it stops processing transactions on March 31, 2027 can import historical orders, license keys, instance IDs, and files with original identifiers intact after a dry run. The License API's activate, validate, and deactivate calls, the JSON:API for orders and subscriptions, and 16 signed webhook events all mirror Lemon Squeezy's, so clients need no other changes. Buyers pay through Stripe Checkout, land on a signed order page, and later use an email magic link to see license keys, download files, and open the Stripe billing portal. Each variant sets activation limits, validity, files, and external links that can insert [license_key], [order_id], or [email], and download links expire with per-file, per-IP limits. Staff refund orders in one click, resend receipts, export CSVs, pause or cancel subscriptions, and replay Stripe events from a back office available in English and Chinese. Two-factor authentication is mandatory for every member, and each action lands in an audit log. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Benefits
- Migrate off Lemon Squeezy safely
- Import historical orders, license keys, instance UUIDs, and files with original IDs preserved, after a dry run and an ID-conflict guard that refuses to overwrite existing records.
- Existing clients keep working unchanged
- The License API, JSON:API shapes, and HMAC-SHA256 webhook signatures match Lemon Squeezy, so apps switch by changing a single base URL while verification code stays as is.
- Keep orders and keys on your server
- Orders, customers, license keys, and uploaded files live in your PostgreSQL 18 or SQLite database and on local disk or S3, so no third-party vendor can sunset them.
- Two-factor protection for every admin
- Every back-office member must enroll TOTP two-factor authentication, receives 10 recovery codes, and can sign in with Stripe; secrets are stored AES-GCM encrypted and sessions are signed and rate limited.
Features
- License Key API
- Activate, validate, and deactivate endpoints at /v1/licenses with Lemon Squeezy-identical responses, activation limits, expiry, and keys that follow order refunds and subscription status.
- Stripe Checkout Fulfillment
- Idempotent handling of Checkout Sessions, renewals, failed payments, cancellations, and refunds creates orders, subscriptions, and license keys automatically and sends HTML receipt emails over SMTP.
- Signed File Delivery
- Upload files to local disk or S3 and serve them through signed, expiring download links with per-file, per-IP limits and external links that accept [license_key] variables.
- Lemon Squeezy Migration Center
- Import from the Lemon Squeezy API, an offline ZIP, or an orders CSV with dry run, mapping CSVs, auto-match against Stripe, and a downloadable mapping report.
- Admin Back Office
- Next.js dashboard with shadcn/ui covering orders, refunds, customers, subscriptions, products, webhook delivery logs, Stripe event replay, API keys, members, and an audit log, in English and Chinese.
- Customer Self-Service Portal
- Buyers sign in through an email magic link at /my-orders to view license keys, download files, and open the Stripe billing portal; receipts ship as HTML plus plain text.