Skip to main content
Introducing packages.sweber.dev
All posts
Release1 min read

Integral Pro 0.6.0 released

Move customers over from Keygen or Cryptlex with a CSV file and bill counted usage through Polar Meters.

By Seya Weber

Integral Pro 0.6.0 is out for subscribers. The free packages stay at 0.3.0.

Why

Two things keep people on a license system they have outgrown: the customers who already hold keys, and the usage they already count. 0.6.0 takes care of both.

What is new

  • Import. rowsFromCsv() reads a CSV export from Keygen, Cryptlex or a spreadsheet and finds the columns by their usual names (key, email, policy, expiry, maxMachines, …). importLicenses() issues an Integral license for every row, maps the old plans to yours, and tells you which rows it refused and why. Run it with dryRun first. Importing the same file twice does not create duplicates. The old keys do not work with Integral, so every customer gets a new one, and licenseMail() from 0.5.0 sends it.
  • Polar Meters. With the option polarMeters, every counted recordUsage is sent to Polar as an event with the amount and the license id. In Polar, a meter sums the amount and a product bills it. If Polar cannot be reached, the usage is still counted and the failure shows up in the audit trail.
const rows = rowsFromCsv(csv)
const check = await importLicenses(licenses, rows, { plans: { "Pro Yearly": "pro" }, dryRun: true })
if (check.errors.length === 0) await importLicenses(licenses, rows, { plans: { "Pro Yearly": "pro" } })

Update

Nothing to migrate; both features are optional. See the server docs for the column names and the Polar setup. Integral Pro starts at CHF 12 per month, see the package page.

Package in this post

Integral

Licenses, plans and feature entitlements for developers who sell software. Signed offline license keys, Polar.sh license keys and React feature gates, without a licensing SaaS.

pnpm add @sweberdev/integral
View package

Related posts

Release

Integral 0.3.0 released

Activate licenses on a customer's devices, with a device limit per license and an offline activation file for computers without internet.

Integral
Release

Integral Pro 0.4.0 released

Floating licenses, usage metering, an audit trail and an admin view: run your licensing without touching the database.

Integral
Release

Integral Pro 0.5.0 released

Rotate your signing key without locking customers out, get a webhook for every license event and send license emails with ready-made texts.

Integral