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

@agentgate-builder/x402fix

v0.1.0

Published

x402 endpoint doctor for sellers and agent builders: point it at any paid x402 URL and get a graded list of what will break payments or Bazaar / x402scan listing (402 on GET/HEAD/POST, CORS, v2 header + v1 body, CAIP-2, USDC asset + EIP-712 domain, Solana

Readme

x402fix: x402 endpoint doctor

Point x402fix at any paid x402 URL and it tells you, in order of severity, what will break payments or keep the route out of the Bazaar / x402scan, and how to fix each problem. It probes the route without paying: GET, HEAD, an empty POST, POST {} and a CORS preflight. Then it grades the route A to F.

  • Transport: 402 on GET, HEAD and empty POST; CORS preflight; Access-Control-Expose-Headers: PAYMENT-REQUIRED; cacheable 402s; redirects; auth walls; latency.
  • x402 v2: PAYMENT-REQUIRED header; resource.url; CAIP-2 networks; amount given as a string of atomic units; canonical USDC asset; the EIP-712 domain (extra.name and extra.version) for each chain; payTo format; Solana extra.feePayer; maxTimeoutSeconds.
  • x402 v1: JSON body; maxAmountRequired; network names; whether v1 and v2 terms agree.
  • Bazaar: extensions.bazaar info and schema. It validates info against schema (JSON Schema 2020-12), flags external $ref and old drafts, and checks method and input/output consistency.
  • Multichain: price drift across networks, duplicate entries, networks the CDP facilitator doesn't settle, and which of Base, Polygon, Arbitrum One and Solana you accept.
  • Check tier extras: the CDP facilitator's own validate verdict and Bazaar index status, payee checks (EVM contract vs wallet, whether the Solana USDC token account exists, CounterpartyCheck screening), drift between /openapi.json and /.well-known/x402, a generated, self-validated extensions.bazaar block, and a multichain accepts snippet for Hono, Express or Next.

Live API: https://api.youraitools.co/x402fix (origin: https://x402fix.agentgate.workers.dev)

| Route | Price (USDC) | Returns | |---|---|---| | GET /v1/preview?url= | free, 10/min | grade, score, status, counts, detected versions and networks | | GET|POST /v1/lite?url= | $0.005 | every check plus a numbered fix list | | GET|POST /v1/check?url=&framework=hono | $0.02 | lite + CDP verdict, payee checks, docs drift, generated Bazaar block and accepts | | GET|POST /v1/site?url=https://origin | $0.05 | finds up to 8 paid routes from /.well-known/x402 and /openapi.json, grades each, checks doc drift |

Payment: x402 v2 or v1, exact USDC on Base, Polygon, Arbitrum One or Solana. Prepaid credits (Authorization: Bearer) are also accepted, via https://api.youraitools.co/credits.

MCP

  • Remote: https://api.youraitools.co/x402fix/mcp (tool check_x402_endpoint, free preview)
  • stdio: npx -y @agentgate-builder/x402fix. Set X402FIX_X402_PRIVATE_KEY to a Base wallet key holding a little USDC, and it pays for check reports ($0.02 each).
  • Docker: docker build -t x402fix-mcp . && docker run -i --rm x402fix-mcp

CI

curl -s "https://api.youraitools.co/x402fix/v1/preview?url=https://your.api/v1/paid" | jq -e '.status != "broken"'

Notes

  • Probes are unpaid and never send payment headers. Private, loopback and link-local hosts are refused, and ports are limited to 80, 443, 8080, 8443, 3000, 8000 and 8787.
  • Fixes are suggestions. A passing grade does not guarantee listing or settlement.

Develop: npm test; npm start (Node, port 8795); npx wrangler deploy. MIT.