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

@aethyrai/ssi-verify

v0.4.0

Published

Lightweight SSI credential and signature verification

Readme

@aethyrai/ssi-verify

Verify AI agent identity. Lightweight, embeddable, post-quantum.

Why This Exists

Autonomous agents are about to walk the streets. They'll book hotel rooms, sign contracts, access medical records, make purchases, and interact with systems on behalf of real people and companies. Every system they touch needs to answer the same question: who is this agent, who sent it, and what is it allowed to do?

Today there's no answer. 93% of agent deployments use shared API keys. 68% of organizations can't tell agent actions apart from human activity. No major agent framework provides per-agent cryptographic identity. When an agent misbehaves, there's no way to trace it back to a responsible party without taking everyone else down with it.

That's not a technical inconvenience. It's a blocker for agents operating in the real world. Without verifiable identity, autonomous agents can't be trusted, regulated, or insured.

What This Library Does

This is the verification side. When an agent presents a credential to your service, ssi-verify checks three things:

  1. Is the credential authentic? — cryptographic signature verification (ML-DSA-65, post-quantum)
  2. Is it still valid? — expiry checking
  3. Is the agent authorized? — capability matching against what the credential grants

No network calls. No Aethyr account needed. No API keys. Just math running locally in your service. Install from npm and verify.

The credential itself is issued by Aethyr — the trust authority. Think of Aethyr as the DMV for AI agents. The agent gets a license. Your service checks the license. This library is the scanner at the door.

Install

npm install @aethyrai/ssi-verify

Usage

import {
  verifyCredential,
  verifyAction,
  verify,
  matchCapability,
  parseDID,
} from '@aethyrai/ssi-verify';

// An agent presents a credential to your service.
// Verify it against Aethyr's public key.
const result = verifyCredential(credential, issuerPublicKey);
if (!result.valid) {
  console.error('Credential invalid:', result.reason);
}

// Check what the agent is allowed to do
matchCapability('tool:hubspot_*', 'tool:hubspot_create_contact'); // true
matchCapability('tool:hubspot_*', 'tool:jobtread_list');          // false

// Verify a signed action
const actionResult = verifyAction(signedAction, signerPublicKey);

// Raw ML-DSA-65 signature verification
const valid = verify(publicKey, data, signature);

// Parse an agent's DID
const parsed = parseDID('did:aethyr:agent:abc123');
// { namespace: 'agent', identifier: 'abc123' }

How It Works

┌──────────┐         ┌──────────┐         ┌──────────────┐
│  Agent   │──reg──▶ │  Aethyr  │         │ Your Service │
│          │◀─cred── │ (issuer) │         │  (verifier)  │
└──────────┘         └──────────┘         └──────────────┘
      │                                          ▲
      │          presents credential             │
      └──────────────────────────────────────────┘
                                                  │
                                          ssi-verify checks:
                                          ✓ authentic?
                                          ✓ still valid?
                                          ✓ authorized?
  1. Agent registers with Aethyr and receives a signed credential
  2. Agent presents the credential when it interacts with your service
  3. Your service verifies using ssi-verify — no network call, fully offline
  4. Your service decides what the agent can do based on its capabilities

Every credential traces back to a responsible party. If the agent causes harm, you know who deployed it, what it was authorized to do, and who to contact. That's what makes autonomous agents legal, trustworthy, and insurable.

Why Post-Quantum

Every other agent identity solution uses classical cryptography (Ed25519, RSA, secp256k1). Aethyr uses ML-DSA-65 (NIST FIPS 204) — a post-quantum signature algorithm. Agent credentials issued today may still be in circulation when quantum computers can break classical signatures. We're not waiting for that to become a problem.

Cryptography

| Operation | Algorithm | Standard | |-----------|-----------|----------| | Digital signatures | ML-DSA-65 (Dilithium) | NIST FIPS 204 |

Implemented via @noble/post-quantum — zero-dependency, audited, pure TypeScript. Runs in any JavaScript runtime (Node.js, Deno, Bun, browsers).

API

verifyCredential(credential, issuerPublicKey)

Verify a credential's ML-DSA-65 signature and expiry. Does not check revocation.

verifyAction(signedAction, signingPublicKey)

Verify a signed action against a public key.

verify(publicKey, data, signature)

Raw ML-DSA-65 signature verification.

matchCapability(granted, requested) / matchCapabilities(granted[], requested)

Capability matching for authorization. Supports exact matches, trailing wildcards (tool:hubspot_*), and universal wildcards (*).

parseDID(did)

Parse a did:aethyr:<namespace>:<identifier> DID string.

Standards Alignment

  • W3C Verifiable Credentials 2.0 — credential format
  • W3C Decentralized Identifiers (DIDs) — agent identity
  • NIST FIPS 204 (ML-DSA) — post-quantum signatures

Security

See SECURITY.md for vulnerability reporting.

License

MIT

Related