commercepackages/commerce/license
license package
License key generation, validation, and revocation. Ed25519-signed, offline-verifiable, with seat-count and expiry enforcement.
- Stability
- Stable
- Scope
- Tenant-scoped
- Boundary
- packages/commerce/license
licensepackages/commerce/license
System of recordLicense keyActive
NBTRA-XK7Q-••••-••••-A19F
Entitlements
SSOAudit logMulti-tenantPriority support
ExpiresDec 31, 2026
Total volume
$1.24M
Active records
8,472
MoM growth
+8.4%
Success rate
99.6%
packages/commerce/license·commercial record
Usagelicense.ts
typescriptlicense.ts
1import { generateLicense, validateLicense } from "@nebutra/license";
2
3const key = generateLicense({
4 product: "nebutra-pro",
5 customer: org.id,
6 expiresAt: addYears(new Date(), 1),
7 features: ["sso", "audit-log", "unlimited-seats"],
8});
9
10const { valid, license } = await validateLicense(key);
11if (!valid) throw new Error("Invalid license");