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

@jiffylabs/jtp-verify

v0.1.0

Published

Offline-capable CLI for verifying Jiffy Trust Protocol (JTP) Ed25519 attestations against the published jiffylabs signing key. Supports air-gapped CI gates via --pubkey flag.

Readme

@jiffylabs/jtp-verify

Offline-capable CLI + library for verifying Jiffy Trust Protocol (JTP) Ed25519 attestations against the published Jiffy signing key.

Designed for CI gates, supply-chain guardrails, and air-gapped / regulated environments that cannot reach trust.jiffylabs.app at runtime.

Install / run

# Zero-install one-shot:
pnpm dlx @jiffylabs/jtp-verify ./attestation.json

# Or add to a project:
pnpm add -D @jiffylabs/jtp-verify

Requires Node.js >= 18.17 (for native fetch and Ed25519 support in node:crypto).

Usage

Online mode (default)

Fetches the current JWKS from https://trust.jiffylabs.app/.well-known/jiffy-trust-pubkey:

jtp-verify ./attestation.json

Offline mode (air-gapped / CI)

Pin a pre-downloaded JWKS file into your infrastructure repo and pass --pubkey. The CLI makes zero network calls in this mode:

# One-time: pull the current pubkey and commit it
curl https://trust.jiffylabs.app/.well-known/jiffy-trust-pubkey \
  -o ./keys/jiffy-trust-pubkey.json

# Every verify:
jtp-verify --pubkey ./keys/jiffy-trust-pubkey.json ./attestation.json

JSON output (for scripting)

jtp-verify --json --pubkey ./keys/jiffy.json ./att.json
# -> {"ok":true,"exitCode":0,"reason":"valid","kid":"jtp-2026-04","artifact":"mcp://example/",...}

Flags

| Flag | Description | | --- | --- | | --pubkey <path> | Load JWKS from a local file. Skips all network calls. | | --jwks-url <url> | Override the default JWKS URL. | | --kid <id> | Assert the attestation's signing_key_id equals this value. | | --json | Single-line JSON output instead of the human-readable summary. | | -h, --help | Show usage. | | -v, --version | Print the package version. |

Exit codes

| Code | Meaning | | --- | --- | | 0 | Attestation is valid | | 1 | Signature mismatch (tamper, wrong key) | | 2 | Revoked key, unknown kid, or unsupported alg | | 3 | Malformed attestation JSON, missing required field, or malformed --pubkey file | | 4 | Network error (only possible when --pubkey is not passed) |

Distinct exit codes let CI pipelines distinguish a tampered payload from a transient network failure from a revocation event.

Programmatic use

import { verifyAttestation, loadJwksFromFile } from '@jiffylabs/jtp-verify';

const loaded = await loadJwksFromFile('./keys/jiffy-trust-pubkey.json');
if (!loaded.ok) throw new Error(loaded.result.message);

const attestation = JSON.parse(await fs.readFile('./att.json', 'utf8'));
const result = verifyAttestation(attestation, { jwks: loaded.jwks });

if (!result.ok) {
  console.error(`verify failed: ${result.reason}`);
  process.exit(result.exitCode);
}

What gets verified

The CLI canonicalizes the attestation's signed-field subset per RFC 8785 (JSON Canonicalization Scheme) and runs Ed25519 verification against the matching JWKS entry.

Signed fields (from the JTP v0.1.0 spec):

  • artifact
  • type
  • jts
  • tier
  • ioi_flags
  • framework_codes
  • attested_at
  • attestation_id
  • signing_key_id

The top-level signature field and the optional poll_url (present only for PENDING tier) are not part of the signed input.

License

Apache-2.0. Copyright Jiffy Labs.