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

@adastracomputing/aer-verify

v0.1.0

Published

Independent, dependency-free verifier for AER bundles. Recompute the canonical hash and check the Ed25519 signature against a pinned key set, in any Web Crypto runtime (Node, Workers, browsers).

Readme

@adastracomputing/aer-verify

Independent, dependency-free verifier for AER bundles.

An AER (Agent Execution Record) is a signed, canonical record of what an AI agent did. This package lets anyone check that a bundle is genuine, without trusting the server that served it and without installing a crypto stack: it recomputes the canonical hash, verifies the Ed25519 signature and confirms the signing-key-id binds to the public key. The same reference code runs in Node, Cloudflare Workers and the browser.

Install

npm install @adastracomputing/aer-verify

Zero runtime dependencies. Uses Web Crypto (crypto.subtle), available in Node

= 20, Cloudflare Workers and modern browsers.

Verify a bundle

import { verifyAerBundle } from '@adastracomputing/aer-verify';

// `bundle` is the canonical JSON from GET /v1/aers/:id/bundle.
// `publicKeyHex` is the raw Ed25519 key from GET /v1/keys/:id. For true
// origin-independence, pass a pinned key set you obtained out of band.
const result = await verifyAerBundle(bundle, { publicKeyHex });

if (result.ok) {
  console.log('verified', result.aer_id, result.canonical_hash);
} else {
  console.error('NOT verified:', result.reasons);
}

Pin the platform keys

Passing a pinnedKeys set is what makes verification independent of the serving origin: a hostile server cannot substitute a self-consistent bundle+key pair, because the key must match one you already trust.

const result = await verifyAerBundle(bundle, {
  pinnedKeys: [{ signing_key_id: '…', public_key_hex: '…', status: 'active' }],
});
result.checks.key_pinned; // true

Result

verifyAerBundle returns a VerifiedAer:

  • ok: the policy-evaluated verdict.
  • canonical_hash: recomputed locally, never echoed from the bundle.
  • checks: hash_match, signature_valid, key_id_binding, key_pinned and an anchor sub-result.
  • reasons: stable machine-readable codes (e.g. hash_mismatch, signature_invalid, key_id_binding_mismatch, key_not_pinned).

Browsers without native Ed25519

Older Safari lacks Web Crypto Ed25519. Inject a fallback (this package stays dependency-free):

import * as ed from '@noble/ed25519';
await verifyAerBundle(bundle, {
  publicKeyHex,
  ed25519Verify: (pub, msg, sig) => ed.verifyAsync(sig, msg, pub),
});

Transparency anchoring

Pass the record's anchor evidence (the Rekor inclusion proof, checkpoint, leaf body and DSSE envelope served at GET /v1/aers/:id/anchor-evidence) together with a pinned Rekor log key and pinned AER signing keys, and the package verifies the whole chain offline: Merkle inclusion under the signed checkpoint, leaf-to-body binding, body-to-envelope binding and the envelope signature over the locally recomputed canonical hash. The anchor check reports one of four states: verified (full chain holds), claimed (the bundle asserts anchoring but no evidence is available), invalid (evidence is present and contradicts the record, which fails the overall verdict) or none. A claim is never trusted without evidence; builtinTrustRoot() supplies the pinned production log key.

License

Apache-2.0