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

@divinci-ai/trustbench-verifier

v0.1.0

Published

Verify TrustBench attested benchmark run manifests. Pure TypeScript, MIT-licensed, no Divinci-internal dependencies — works in browsers, Node, Workers, and Deno.

Readme

@divinci-ai/trustbench-verifier

Verify TrustBench attested benchmark run manifests. Pure TypeScript, MIT-licensed, no Divinci-internal dependencies — works in browsers, Node ≥18, Cloudflare Workers, and Deno.

Install

npm install @divinci-ai/trustbench-verifier
# or
pnpm add @divinci-ai/trustbench-verifier

Quick start

import { verify } from "@divinci-ai/trustbench-verifier";

// Fetch a signed manifest (from R2, an HTTP endpoint, or a local file)
const manifest = await fetch("https://app.divinci.app/v1/trustbench/runs/tr_x")
  .then(r => r.json());

// Verify it (default: fetches well-known platform keys)
const result = await verify(manifest);

if (result.verified) {
  console.log("Verified by", result.signedBy.keyId);
} else {
  console.error("Failed:", result.errors);
}

Verifying outputs and benchmark content

To check that the outputs file and benchmark spec haven't been tampered with, pass them in:

const outputs = await fetch(manifest.results.outputsR2Key).then(r => r.text());
const benchmarkContent = await loadBenchmarkSpec(manifest.benchmark.id);

const result = await verify(manifest, {
  outputs,
  benchmarkContent,
});

console.log({
  verified: result.verified,
  signatureValid: result.signatureValid,
  outputsHashMatches: result.outputsHashMatches,
  benchmarkContentHashMatches: result.benchmarkContentHashMatches,
});

Air-gapped / custom key resolution

Don't want to make an outbound HTTPS call to fetch the well-known? Pass a custom resolver:

const knownKeys = new Map<string, Uint8Array>([
  ["tbp-2026-04-26-001", base64ToBytes(MY_LOCAL_PUB_KEY)],
]);

const result = await verify(manifest, {
  keyResolver: async (keyId) => knownKeys.get(keyId) ?? null,
});

Strict mode

By default, warnings (deprecated key still serving, etc.) don't fail verification. Pass strict: true to make them fail:

const result = await verify(manifest, { strict: true });

What verify() checks

A run is verified: true only if all of:

  1. The manifest passes JSON-Schema-style validation against TrustRunManifestV1.
  2. The keyId in signatures[0] resolves to a known platform public key (from the well-known registry, or the supplied keyResolver).
  3. The manifest's claimed publicKey matches what the registry says — protects against a malicious manifest claiming a different keyId than it was actually signed with.
  4. Ed25519-verifying the signature against sha256(canonicalJSON(body_without_signatures)) succeeds.
  5. (When outputs is provided) sha256(outputs) matches manifest.results.outputsHash.
  6. (When benchmarkContent is provided) sha256(benchmarkContent) matches manifest.benchmark.contentHash.
  7. (When strict: true) no warnings present.

The function never throws on a verification failure — it returns a structured VerifyResult with errors and warnings. It DOES throw on operational failures (no crypto.subtle in the runtime, no fetch and no fetchImpl, etc.).

Manifest schema

Documented at: https://app.divinci.app/.well-known/trustbench/schemas/trustrun-v1.json

The TrustRunManifestV1 Zod schema is exported from this package and is the source of truth for the public-facing manifest shape.

License

MIT.