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

@kybernesis/arp-testkit

v0.2.3

Published

ARP compliance testkit — 8 probes + CLI that audit any .agent domain's ARP implementation.

Readme

@kybernesis/arp-testkit

Compliance testkit for ARP. Audits any .agent domain's ARP implementation against an 8-probe suite covering DNS, well-known docs, DID resolution, TLS pinning, DIDComm liveness, pairing, revocation, and cross-connection isolation.

Shipped as a CLI + programmatic API. Phase 5 ships the package; Phase 9 publishes it to npm.


Install

# Phase 9+ (once published):
npm i -g @kybernesis/arp-testkit
# or
npx @kybernesis/arp-testkit audit samantha.agent

# Phase 5 (from this repo):
pnpm --filter @kybernesis/arp-testkit exec arp-testkit audit samantha.agent

Run an audit

arp-testkit audit samantha.agent

Output (human mode):

ARP Compliance Audit — samantha.agent
=====================================

  ✓ dns                        (312ms)
  ✓ well-known                 (421ms)
  ✓ did-resolution             (189ms)
  ✓ tls-fingerprint            (234ms)
  ✓ didcomm-probe              (812ms)
  • pairing-probe              (0ms) (skipped: pairing probe needs issuer/counterparty keys)
  ✓ revocation                 (120ms)
  • cross-connection           (0ms) (skipped: needs programmatic driver)

  5/6 passed · 2 skipped · 2.1s total

JSON mode:

arp-testkit audit samantha.agent --json > /tmp/audit.json

Interpret the output

| Marker | Meaning | |---|---| | | Probe passed. | | | Probe failed. Run with --verbose to see details / error.message. | | | Probe was skipped (e.g. local target, no config). |

Exit codes:

| Code | Meaning | |---|---| | 0 | audit ran; no failures | | 1 | usage error | | 2 | audit ran; one or more probes failed | | 3 | crash (unhandled exception) |


Individual probes

arp-testkit probe dns samantha.agent
arp-testkit probe well-known samantha.agent
arp-testkit probe did-resolution samantha.agent
arp-testkit probe tls-fingerprint samantha.agent
arp-testkit probe didcomm-probe samantha.agent
arp-testkit probe revocation samantha.agent

| Probe | Does | |---|---| | dns | Checks _arp / _did / _didcomm / _revocation TXT records on the apex. | | well-known | Fetches + schema-validates did.json, agent-card.json, arp.json. | | did-resolution | Confirms did:web:<target> resolves to a schema-valid doc with an Ed25519 key + DIDComm service. | | tls-fingerprint | Pins the peer TLS cert against the fingerprint advertised by the agent (falls back to /health when running against a local http:// sidecar). | | didcomm-probe | POSTs a signed envelope; confirms the endpoint parses JWS and rejects unknown peers with unknown_peer. | | pairing-probe | Drives the full pairing flow end-to-end via admin API. Requires programmatic options (admin token + principal keys); skips otherwise. | | revocation | Validates /.well-known/revocations.json shape. With expectedRevokedId, polls until a previously-revoked id appears. | | cross-connection | Takes a programmatic driver that exercises two connections against one peer; asserts zero leaks across 10 memory categories. |


Compare two agents

arp-testkit compare samantha.agent ghost.agent

Emits a capability and scope diff between two agent cards.


Programmatic use

import {
  runAudit,
  createPairingProbe,
  createCrossConnectionProbe,
  DEFAULT_MEMORY_CATEGORIES,
} from '@kybernesis/arp-testkit';

const summary = await runAudit('samantha.agent');
if (!summary.ok) {
  console.error('audit failed:', summary.probes.filter((p) => !p.pass));
  process.exit(2);
}

createPairingProbe + createCrossConnectionProbe accept dependency- injection options so tests can drive the full flow against an in-process runtime pair.


Contribute a probe

  1. Implement Probe in src/probes/<name>.ts. Signature: (ctx: ProbeContext) => Promise<ProbeResult>.
  2. Add unit tests under tests/<name>.test.ts using a mock fetch / DoH / TLS socket.
  3. Add an integration test in tests/phase-5/testkit-integration.test.ts that runs the probe against the dual-runtime harness.
  4. Register the probe in src/audit.ts (DEFAULT_PROBE_SUITE) and export it from src/probes/index.ts.
  5. Update this README's probe table.

Acceptance criteria for new probes:

  • Unit-testable in < 100ms (mocks only).
  • Integration-testable against a single runtime in < 2s.
  • Sets skipped: true with a clear skipReason when preconditions aren't met (e.g. localhost target, missing credentials). Never hard-fails on "unprovisioned infrastructure".

Nightly compliance CI

.github/workflows/testkit-nightly.yml runs the full audit against every domain listed in the TESTKIT_TARGET_DOMAINS repository variable (comma-separated). Set it in repo settings → Variables. Until Phase 5B provisions real .agent domains, the variable stays unset and the workflow exits cleanly with a no targets configured notice.