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

@classytic/arc-license

v0.1.1

Published

Offline-first Ed25519 licensing for @classytic/arc apps — signed license tokens, derived-state enforcement (entitlements, seat/branch caps, grace + read-only degradation), a hot-swappable activation surface, and a vendor-side issuer CLI. Vendor-agnostic:

Readme

@classytic/arc-license

Offline-first Ed25519 licensing for @classytic/arc apps — signed license tokens, derived-state enforcement, hot-swappable activation, and a vendor-side issuer CLI.

Vendor-agnostic: the host supplies the public keyring, so any product built on arc (Spine, a hotel vertical, a third-party app) can license their deployment with it.

How it works

  • A license is a signed token: LICv1.<base64url payload>.<base64url Ed25519 sig>. Verification needs only the vendor's public key (safe to embed) — apps boot and enforce fully offline. Only the vendor's private key can mint.
  • Expiry is state, not invalidity. Verification checks integrity + product binding; the lifecycle (active → warn → grace → restricted) is derived from the clock against precomputed thresholds in a frozen snapshot. No background job has to flip states; nothing drifts if a cron misses.
  • Enforcement is two comparisons. One global write guard (installed once) checks Date.now() > restrictAfter on writes. Past grace → writes get 402 LICENSE_RESTRICTED; reads always pass (read-only degradation — data is never hostage).
  • Activation is an atomic ref swap. Paste a renewed token → verify → persist → swap. No restart, no hook churn; in-flight requests finish under the old snapshot.

Host usage

import { createLicenseModule, createRepositoryLicenseStore } from "@classytic/arc-license";

const licenseModule = createLicenseModule({
  keyring: [{ kid: "spine-2026", publicKeyPem }],   // vendor public key(s)
  product: "spine",
  store: createRepositoryLicenseStore(licenseTokenRepository), // any repo-core kit repo
  seedToken: process.env.SPINE_LICENSE_KEY,          // first-boot bootstrap
  onMissing: "open",                                 // explicit: "open" (dev) | "restricted" (shipped)
  permissions: { view: requireAuth(), activate: requireRoles("admin") },
  guard: { exemptPrefixes: ["/health", "/api/auth"] },
});

createApp({ modules: [licenseModule, ...] });
// fastify.arc.modules.license → { status, entitled, assertEntitled, checkBranchLimit, activate }

Routes: GET /license/status, POST /license/activate { token }.

Gating module composition (before boot — modules compose before any bootstrap):

import { verifyLicenseToken } from "@classytic/arc-license";
const v = verifyLicenseToken(token, keyring, { product: "spine" });
const entitled = new Set(v.ok ? v.payload.entitlements : []);
if (entitled.has("bd-tax")) modules.push(bdTaxModule);

Seat/branch cap — call at the single place branches are created:

const { allowed, max } = license.checkBranchLimit(activeBranchCount);
if (!allowed) throw new Error(`License allows ${max} branches`);

Renewal cron (host schedules; enforcement never depends on it):

import { createRevalidateHandler } from "@classytic/arc-license";
cron.daily(createRevalidateHandler(license, { onPhase: logPhase /*, refresh: fetchRenewal */ }));

Vendor usage (issuing)

arc-license keygen --kid spine-2026 --out ./keys --passphrase <strong>
arc-license issue --key keys/spine-2026.private.pem --passphrase <strong> \
  --kid spine-2026 --lic-id lic_ACME_001 --customer "ACME Corp" --product spine \
  --entitlements bd-tax,multi-branch --max-branches 5 --months 12
arc-license verify <token> --pub keys/spine-2026.public.pem --product spine

Or programmatically via @classytic/arc-license/issuer. The private key is the only secret: keep it passphrase-encrypted and out of every repo. Rotate by minting a new kid and appending its public key to shipped keyrings — old licenses keep verifying.

Issuing console (optional UI)

Prefer point-and-click over the CLI? examples/license-console.mjs is a zero-dependency local web console (issue form + verify + an issued-licenses table with active/expiring/expired status). It is a vendor back-office tool — it reads your private key to sign, so it binds to 127.0.0.1 only and is deliberately not part of the published package (it never lands in a customer's node_modules). Copy it into your private ops folder, edit the PRODUCTS/KEYS_DIR config at the top, and:

node license-console.mjs        # → http://127.0.0.1:4747

License

MIT © Classytic