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

@agenomics/capability-manifest-validator

v0.1.0

Published

ADR-060 reference validator for AEP capability manifests. Validates schema, RFC-8785 canonical-JSON hash, and Ed25519 signature.

Readme

@agenomics/capability-manifest-validator

Reference validator for the AEP capability manifest format defined in ADR-060.

Agents in the Agenomics Protocol publish a signed, off-chain capability manifest that describes what they can do, in what I/O shape, with what cost, and under what preflight gates. The Registry program stores only a content hash + signature; the manifest itself lives on IPFS or Arweave. This package validates a manifest body against the on-chain commitment.

What it checks

  1. Schema — the JSON conforms to the ADR-060 §2 v1.0 CapabilityManifest interface (base58 pubkeys, kebab-case capability names, valid side-effects, recognized preflight gates, stability enum, required fields).
  2. Canonical JSON hash — the bytes fed in, serialized with RFC-8785 canonicalization and SHA-256'd, match the on-chain manifest_hash. Eliminates whitespace / key-order drift.
  3. Ed25519 signature — the on-chain manifest_signature is a valid Ed25519 signature over manifest_hash by the agent's authority pubkey.
  4. Authority binding — the manifest's self-declared agent.pubkey matches the on-chain authority passed in (defense-in-depth against manifest-author confusion).

Install

npm install @agenomics/capability-manifest-validator

Peer dependencies: @noble/curves@^1.4.0, @noble/hashes@^1.4.0, canonicalize@^2.0.0, zod@^3.23.

Usage

import { validateManifest } from "@agenomics/capability-manifest-validator";

// Bytes fetched from IPFS/Arweave via the manifest_cid stored on-chain.
const manifestBytes: Uint8Array = await fetchManifestBody(cid);

// On-chain commitments from AgentProfile.
const onChainHash: Uint8Array      = profile.manifest_hash;
const onChainSignature: Uint8Array = profile.manifest_signature;
const authorityPubkey: Uint8Array  = profile.authority;

const result = validateManifest(
  manifestBytes,
  onChainHash,
  onChainSignature,
  authorityPubkey,
);

if (!result.ok) {
  // Typed error: { code: 'HASH_MISMATCH' | 'SIGNATURE_INVALID' | 'SCHEMA_INVALID' | ... , message, details? }
  throw new Error(`manifest invalid: ${result.error.message}`);
}

const manifest = result.value;
console.log(manifest.agent.name, manifest.capabilities.length);

Non-goals

This package does not fetch the manifest from IPFS/Arweave, the Registry account from Solana, or SAS attestations. Those concerns live upstream (in a downstream integration) or in @agenomics/sas-resolver. This package is pure, synchronous-ish (Ed25519 is fast), and has no network dependency.

Related

  • ADR-060 — manifest format + on-chain commitments
  • ADR-061 — the owner_attestation field reserved for SAS
  • @agenomics/sas-resolver — resolves SAS attestations referenced by a validated manifest

License

Part of the Agenomics Protocol. See repository root.