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

@agentcommunity/aid-doctor

v1.2.0

Published

CLI tool for Agent Identity & Discovery (AID) - validate and check AID records

Readme

@agentcommunity/aid-doctor

Agent Identity & Discovery

DNS for agents

AID as the public address book for the agentic web.

It's a simple, open standard that uses the internet's own directory—DNS—to answer one question: "Given a domain, where is its AI agent, and how do I know it's the real one?"

No more hunting through API docs. No more manual configuration. It's the zero-friction layer for a world of interconnected agents.

Built by the team at agentcommunity.org.


Install

npm install -g @agentcommunity/aid-doctor
# or
pnpm add -D @agentcommunity/aid-doctor

Usage

# Human-readable check
aid-doctor check example.com

# JSON output (machine-readable)
aid-doctor json example.com

Options

  • --protocol <proto>: try a protocol-specific subdomain (e.g., mcp tries _agent._mcp.<domain> first)
  • --timeout <ms>: DNS query timeout (default: 5000)
  • --no-fallback: disable .well-known fallback on DNS miss
  • --fallback-timeout <ms>: HTTP timeout for .well-known (default: 2000)
  • --show-details: include fallback usage and PKA status in output
  • --code (check): exit with specific error code on failure

Exit codes

  • 0 success
  • 1000 ERR_NO_RECORD
  • 1001 ERR_INVALID_TXT
  • 1002 ERR_UNSUPPORTED_PROTO
  • 1003 ERR_SECURITY
  • 1004 ERR_DNS_LOOKUP_FAILED
  • 1 unknown error

Generate an AID record

aid-doctor generate

Interactive prompts help you craft a valid TXT value for _agent.<domain>.

Examples

# Check with protocol hint (underscore-first fallback)
aid-doctor check example.com --protocol mcp

# JSON for CI
aid-doctor json example.com > result.json

# Show PKA/fallback details (v1.1)
aid-doctor check example.com --show-details

# Local testing with a mock HTTP server (insecure well-known)
# (Use only for local dev)
AID_ALLOW_INSECURE_WELL_KNOWN=1 aid-doctor check localhost:19081 --show-details --fallback-timeout 2000

### PKA handshake expectations

- Required covered fields: `"AID-Challenge" "@method" "@target-uri" "host" "date"`
- `alg` must be `ed25519`
- `created` and HTTP `Date` must both be within ±300s of the current time
- `keyid` must match the record `kid` (quotes allowed in header, compare normalized)
- Public key is multibase base58btc (`z...`) for the raw 32‑byte Ed25519 key

### Loopback HTTP (dev‑only)

When `AID_ALLOW_INSECURE_WELL_KNOWN=1` is set and the domain is loopback (`localhost`/`127.0.0.1`/`::1`), the doctor permits `http://` in the `.well-known` path for local testing. All other validations, including PKA, still run. TXT discovery always enforces `https://` for remote agents.

License

MIT © Agent Community