npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sweberdev/integral

v2.0.0

Published

Signed offline license keys, plans and feature entitlements, and Polar.sh license key validation. Zero dependencies, runs in Node, browsers and edge runtimes.

Readme

Integral

Licenses, plans and feature entitlements for developers who sell software. Signed offline license keys (Ed25519 and ECDSA P-256), plans with features and limits, Polar.sh license key validation and React feature gates. Zero dependencies; runs in Node 22+, browsers, Bun, Deno and edge runtimes.

| Package | What it does | |---|---| | @sweberdev/integral | Sign and verify licenses, plans and entitlements, Polar license keys, offline grace, revocation lists, device binding, CLI | | @sweberdev/integral-react | IntegralProvider, <Feature>, <Limit>, useFeature, useLicenseCheck |

npm i @sweberdev/integral
npx integral keygen
npx integral issue --product my-app --plan pro --email [email protected]
import { createEntitlements, definePlans, verifyLicense } from "@sweberdev/integral";

const plans = definePlans({
  free: { features: ["editor"], limits: { projects: 1 } },
  pro: { extends: "free", features: ["export"], limits: { projects: 50 } },
});

const result = await verifyLicense(license, { publicKey: INTEGRAL_PUBLIC_KEY, product: "my-app" });
const entitlements = createEntitlements({ plans, license: result.valid ? result.license : null });

entitlements.has("export");
entitlements.check("projects", projects.length).allowed;

Polar license keys

import { createPolarClient } from "@sweberdev/integral/polar";

const polar = createPolarClient({ organizationId: POLAR_ORG_ID });
const result = await polar.validate(key); // no access token needed

Licenses that end updates, not usage

await signLicense({ product: "my-app", plan: "pro", updatesUntil: "2027-10-05" }, privateKey);
coversRelease(license, BUILD_DATE); // false for versions released after the update period

Revocation lists, device binding and trials

const list = await verifyRevocationList(downloaded, { publicKey }); // signed, works offline
await verifyLicense(key, { publicKey, revocations: list, machine: await machineId(hostId) });
licenseStatus(license); // { state: "expiring", trial: true, daysLeft: 6, ... }

Device activation, also offline

const result = await bindLicense(license, machine, privateKey); // copy bound to one device
const request = createActivationRequest({ license, machine }); // as a file, for offline PCs

Documentation and live demo: packages.sweber.dev/integral

Integral Pro adds a license server that turns Polar orders and subscriptions into signed licenses, and a React activation view: packages.sweber.dev/integral/docs/pro/overview.

Integral is not copy protection: anyone who can change your app can remove a check. It makes honest use easy.

MIT © Seya Weber