Generate the key pair
Create an Ed25519 private.pem and public.pem once. Keep the private key on the machine that mints licenses.
A $29 pack for indie makers shipping desktop, Electron, or CLI apps. Signed OLK1.… keys, public-key verification in the shipped app, and no monthly licensing SaaS.
Monthly tools are fine if you want a hosted portal. If you only need cryptographic offline licenses you control, a subscription is the wrong shape.
| Typical licensing SaaS | Offline License Kit | |
|---|---|---|
| Cost | $9–29 every month | $29 once |
| Who holds the keys | Their servers, their SDK | You mint with private.pem; only public.pem ships in the app |
| Verification | Often needs a network check | Offline, Ed25519, public key only |
| Dependencies | Vendor SDK / npm install | Node.js built-in crypto only |
| What you get | Hosted activation and dashboards | CLIs, library, app-gate snippet, Polar mint stub, tests |
Three commands. The format is fixed: OLK1.<payload>.<signature>, with product id, optional email, seats, feature flags, and expiry inside the signed payload.
Create an Ed25519 private.pem and public.pem once. Keep the private key on the machine that mints licenses.
Issue an OLK1.… string for a buyer: product id, seats, features, and an optional expiry, signed with the private key.
Ship only the public key. The app checks the signature, product, seats, features, and expiry with no network call.
# 1. Key pair (once) node src/generate-keypair.js --out ./keys # 2. Mint node src/mint-license.js \ --product my-desktop-app \ --key ./keys/private.pem \ --email buyer@example.com \ --seats 1 \ --feature pro # 3. Verify node src/verify-license.js \ --key ./keys/public.pem \ --license 'OLK1....' \ --product my-desktop-app # Embed keys/public.pem in the app. Keep private.pem secret.
These are the actual mint CLI, verify CLI, and in-app gate from the pack.
OLK1.… key with seats and features.
Version 1.0.0. Instant file download from Polar after checkout.
src/lib/license.jsCore mint and verify library, Node crypto only.src/generate-keypair.jsCreate the Ed25519 PEM key pair.src/mint-license.jsCLI to issue signed keys.src/verify-license.jsCLI to verify a key offline.examples/app-gate-snippet.jsDrop-in gate for the shipped app.examples/polar-order-mint-stub.jsAdapt this to mint a key after a paid Polar order.tests/run-tests.jsAutomated checks for the format and crypto path.LICENSE.txt + READMEUsage terms: use and embed in your own products; do not resell the kit as a competing pack.This is a kit you run, not a hosted licensing company.
Indie developers selling desktop, Electron, or CLI tools who need cryptographic offline verification — not a random storefront string, and not another monthly bill.
You only need Polar’s built-in random keys with an online check, or you want hosted device locking and a customer activation portal. Those are different products.
Sold by LJ Corp. Checkout and file delivery are handled by Polar as merchant of record.
Straight answers, including what this pack does not do.
No. This is a one-time $29 download. You generate the key pair, mint signed keys on your machine, and verify them offline in the shipped app with the public key only.
Node.js 18 or newer. There is nothing to install from npm. The pack uses Node’s built-in crypto.generateKeyPairSync('ed25519').
Yes. The ZIP includes a paid-order mint stub you can adapt to your webhook so a successful payment can mint a signed key. It does not replace Polar’s own random license-key benefit.
Not in v1. Seats and feature flags are signed claims you enforce in your app. If you need revocation, keep a deny-list or issue short expiries. Private-key custody is yours.
A chatbot can sketch signing code. This pack is the tested path from keygen to mint to in-app gate, with a fixed OLK1. format, a CLI, a Polar stub, and a test suite.