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

agent-auth-verify

v0.1.0

Published

Conformance test CLI for the Agent Auth Protocol

Readme

agent-auth-verify

Conformance test CLI for the Agent Auth Protocol. Points at any server, runs the checks, prints pass/fail.

npx agent-auth-verify https://yourserver.com

What It Checks

| Area | Spec Section | Checks | | -------------------- | ------------ | -------------------------------------------------------------------------------------------- | | Discovery | §5.1 | Endpoint reachable, valid JSON, required fields, endpoints object, issuer URL, Ed25519, modes | | Capabilities | §5.2 | Endpoint responds, returns capabilities array, each entry has name + description | | Agent Registration | §5.3 | Host JWT accepted, 200/201 response, returns agent_id, host_id, status, capability grants | | Revocation | §5.7 | Revocation succeeds, returns status: revoked, revoked agent gets 403 on execute | | Error Format | §5.13 | Missing auth → 401, invalid JWT → 401, error response has machine-readable error field |

Example Output

agent-auth-verify

  Testing: http://localhost:3000

  Discovery (§5.1)
  ✓ Discovery endpoint reachable             PASS
  ✓ Discovery returns valid JSON             PASS
  ✓ Discovery has all required fields        PASS
  ✓ Discovery endpoints object complete      PASS
  ✓ Issuer URL is valid                      PASS
  ✓ Algorithms includes Ed25519              PASS
  ✓ Modes field is valid                     PASS

  Capabilities (§5.2)
  ✓ Capability list endpoint reachable       PASS
  ✓ Capability list has capabilities array   PASS
  ✓ Each capability has name and description PASS

  Agent Registration (§5.3)
  ✓ Can sign host JWT                        PASS
  ✓ Registration returns 200/201             PASS
  ✓ Registration returns agent_id            PASS
  ✓ Registration returns valid status        PASS
  ✓ Registration returns host_id             PASS
  ✓ Registration returns capability grants array PASS

  Revocation (§5.7)
  ✓ Revocation endpoint responds             PASS
  ✓ Revocation returns status: revoked       PASS
  ✓ Revoked agent gets 403 on execute        PASS

  Error Format (§5.13)
  ✓ Missing auth returns 401                 PASS
  ✓ Invalid JWT returns 401                  PASS
  ✓ Error response has 'error' field         PASS

───────────────────────────────────────────────────────
  Results for http://localhost:3000
───────────────────────────────────────────────────────
  22 passed  0 failed  0 warnings  of 22 checks

   CONFORMANT   This server passes the Agent Auth Protocol spec.

Usage

Run against any server:

npx agent-auth-verify https://yourserver.com

JSON output:

npx agent-auth-verify https://yourserver.com --json

From a local clone:

node dist/index.js https://yourserver.com

Dev mode (TypeScript directly):

npx tsx src/index.ts https://yourserver.com

Demo Server

The repo ships a local demo server that implements the full protocol in memory. No real Agent Auth backend needed to try the tool.

# Start the demo server
npm run demo:server

# In another terminal, run the verifier against it
npm run demo:verify

# Or run directly
node dist/index.js http://localhost:3000

The demo server also serves a browser landing page at http://localhost:3000.

CI Usage

Use the --json flag for machine-readable output. The process exits with code 0 when all checks pass and code 1 when any check fails, so it works with standard CI pass/fail gates.

- run: npx agent-auth-verify https://yourserver.com --json

Spec Coverage

The test suite tracks the Agent Auth Protocol v1.0-draft. Coverage will expand as the spec evolves.

Contributing

Open an issue or PR on GitHub. If you're adding a new check, reference the spec section it covers and include a test against the demo server.

Related Links