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

@sovroute/doctor

v1.1.0

Published

The open-source conformance probe and diagnostic doctor for x402, L402, and agent payment endpoints.

Readme

@sovroute/doctor (x402-doctor)

The open-source conformance linter and diagnostic doctor for x402, L402, and autonomous agent payment endpoints.

Zero dependencies. Instant execution. Evaluates any HTTP 402 server against production RFC standards, header budget limits, and machine discovery specs.


⚡ Quick Start

Run instantly without installation:

npx @sovroute/doctor https://api.myserver.dev

Or audit a specific paid endpoint:

npx @sovroute/doctor https://sovroute.com/v1/chain/btc/tip

🔍 What it Diagnoses

  1. HTTPS Transport Security: Verifies TLS encryption; autonomous agent wallets automatically abort unencrypted HTTP transactions.
  2. Machine Spec Discovery: Scans standard paths (/openapi.json, /.well-known/openapi.json, /swagger.json, /openapi.yaml) for machine-readable API contracts.
  3. HTTP 402 Challenge Status: Verifies whether unauthenticated requests return a standard HTTP 402 Payment Required status instead of throwing 400 Bad Request, 422 Unprocessable Entity, or 500 Internal Server Error.
  4. Challenge Headers: Validates the presence and format of Payment-Required and WWW-Authenticate headers.
  5. Header Size Budget (GitHub #3803 Guard): Measures exact header byte length. Unbounded challenge payloads exceed the 8 KB limit of Python aiohttp and 16 KB limit of Node.js, causing clients to drop connections before parsing.
  6. Payment Rails & Networks: Auto-detects supported protocols (x402, l402, mpp) and networks (Base USDC, Polygon, Arbitrum, Bitcoin Lightning, Tempo PathUSD).
  7. Agent Discovery (/llms.txt): Checks for developer and LLM agent markdown documentation.

📊 Sample Output

┌────────────────────────────────────────────────────────┐
│  SovRoute x402-doctor — Conformance Diagnostic Report  │
└────────────────────────────────────────────────────────┘

Target:  https://sovroute.com/v1/chain/btc/tip
Latency: 94 ms · Timestamp: 2026-11-24T20:11:40.903Z
Rails:   X402, MPP (eip155:8453, eip155:5042, eip155:5042002)

DIAGNOSTIC CHECKS:
  [✔ PASS] HTTPS Transport Security (10/10 pts)
  [✔ PASS] Machine Spec Discovery (20/20 pts)
         Found at /openapi.json
  [✔ PASS] HTTP 402 Payment Required Status (30/30 pts)
         Returns standard HTTP 402 on /v1/chain/btc/tip
  [✔ PASS] Challenge Headers (Payment-Required / WWW-Authenticate) (20/20 pts)
         Both Payment-Required and WWW-Authenticate present
  [✔ PASS] Header Size Budget (< 8 KB) (10/10 pts)
         5610 bytes (Safe for aiohttp 8KB & Node 16KB)
  [✔ PASS] Agent Discovery (llms.txt) (10/10 pts)
         Found at /llms.txt

────────────────────────────────────────────────────────
CONFORMANCE SCORE: 100 / 100   GRADE: A+
────────────────────────────────────────────────────────

✔ Endpoint is fully conformant with production agent payment standards!

🛠️ CI / CD Integration

Use the --json flag to integrate x402-doctor into GitHub Actions or automated staging pipelines:

npx @sovroute/doctor https://staging.api.dev --json

Exit Codes (Legacy Mode):

  • 0: Pass (Score >= 70, Grade A+ / A / B)
  • 1: Fail (Score < 70, Grade C / F, or unreachable/restricted host)

Open402 Initiative Mode (--open402)

Run protocol-neutral 4-profile conformance (core, l402, x402, mpp) with SafeTransport SSRF/DNS-rebinding protection:

npx @sovroute/doctor https://api.myproject.com/paid --open402 --json
  • Exit Codes: 0 COMPLIANT, 1 NON_COMPLIANT, 2 AUDIT_ERROR, 3 INVALID_ARGUMENTS, 4 PROVISIONAL (passive audits cap here), 5 UNSUPPORTED.
  • Active Testnet Mode (--open402 --active --i-authorize-testnet-spend): Opt-in testnet/sandbox only (lntb/lnbcrt, Base Sepolia, etc.), configurable --max-spend-sats / --max-spend-atomic, mainnet refused. Configure OPEN402_LND_TESTNET_REST_URL + OPEN402_LND_TESTNET_MACAROON or OPEN402_X402_TESTNET_SIGNER_URL.
# .github/workflows/x402-conformance.yml
name: x402 Conformance Check
on: [push, pull_request]

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - name: Run x402-doctor
        run: npx @sovroute/doctor https://api.myproject.com

🏛️ Built by SovRoute