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

@crelis/verify

v0.1.0

Published

Offline verifiers for Crelis Execution Grants and audit checkpoints (EdDSA JWS + JWKS).

Readme

@crelis/verify (TypeScript / JavaScript)

Offline verifiers for Crelis Execution Grants and audit checkpoints (evidence). Each is a standard EdDSA JWS you verify against the tenant's published JWKS with jose — offline, no call back to Crelis, no shared secret. Verification is fail-closed and honest about what it cannot check offline.

npm install @crelis/verify   # peer runtime dep: jose

ESM, Node ≥ 18 (uses WebCrypto). Ships type declarations.

Verify an execution grant

import { verifyGrant, GrantInvalid } from "@crelis/verify";

const tenant = "acme";
const jwks = await (await fetch(
  `https://<host>/grants/t/${tenant}/.well-known/jwks.json`)).json();

try {
  const r = await verifyGrant(token, {
    jwks,
    tenantId: tenant,             // bound to the JWKS you fetched
    endpointId: "pay.enforce",    // the exact seat presenting the grant
    audience: "pay.internal",     // that endpoint's REGISTERED audience
    actionType: "wire_transfer",  // the action you are about to run
    resource: "payee-42", amount: 100.0,
  });
  // r.claims.* are cryptographically bound. r.signatureVerified === true, but
  // r.chainVerified / r.replayChecked / r.revocationChecked are false (online-only).
} catch (e) {
  if (e instanceof GrantInvalid) return deny(e.reason);
  throw e;
}

verifyGrant throws GrantInvalid (with .reason) on a bad signature, wrong type, expiry, wrong audience, wrong tenant, wrong endpoint, wrong action/resource/amount, or a missing binding. tenantId, endpointId and audience are required; the action is required unless you pass requireAction: false (for an advisory/observe-only seat).

Offline-valid is not authority to execute. A grant is single-use (max_uses: 1); consume its jti once and check revocation online before acting.

Verify audit evidence (checkpoints)

import { verifyCheckpoint, detectRegression, verifySequence } from "@crelis/verify";

const jwks = await (await fetch(
  `https://<host>/evidence/t/${tenant}/.well-known/jwks.json`)).json();

const cp = await verifyCheckpoint(token, { jwks, tenantId: tenant }); // throws if not authentic

// Compare two checkpoints you retained (earlier -> later):
const problem = detectRegression(olderCp, newerCp); // null | "TRUNCATION: ..." | "REWRITE: ..." | "BACKDATING: ..."

// Or verify a whole retained run at once:
const cps = await verifySequence([t0, t1, t2], { jwks, tenantId: tenant });

A checkpoint proves integrity of the prefix, non-repudiation, and — across checkpoints you retain — no truncation/rewrite/backdating. It does not prove inclusion of a specific event (needs a Merkle proof), that an entry is true, or independent time (issued_at is Crelis's clock). Retain the checkpoints you are given — the guarantee is real only once a copy lives where Crelis cannot reach.

Compatibility

Versioned independently of the Trust Engine. The compatibility surface is the token format (grant ver ceap/1, checkpoint version crelis-audit-checkpoint/1); a change to either is a MAJOR bump here.

Apache-2.0 · © Crelis Labs Pte. Ltd. (UEN 202634291E)