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

@forgemeshlabs/pay-per-crawl-node

v0.1.3

Published

Bot ledger plus an HTTP 402 price tag: see every AI, SEO and script crawler, keep search engines free, charge x402-capable agents in USDC on Base.

Readme

@forgemeshlabs/pay-per-crawl-node

Express, Fastify, Hono and Koa adapters for x402 / MPP pay-per-crawl. Thin wrappers over @forgemeshlabs/pay-per-crawl-core: same options, same discovery routes (/.well-known/x402.json, /llms.txt, /agents.txt). You keep 100%: no account, no custody.

npm install @forgemeshlabs/pay-per-crawl-node
// Express
import { payPerCrawl } from "@forgemeshlabs/pay-per-crawl-node/express";
app.use(payPerCrawl({ payTo: "0xYourWallet", mode: "monitor" })); // before your routes

// Fastify
import { payPerCrawl } from "@forgemeshlabs/pay-per-crawl-node/fastify";
await app.register(payPerCrawl, { payTo: "0x...", mode: "gate" });

// Hono (Node, Bun, Deno, Workers)
import { payPerCrawl } from "@forgemeshlabs/pay-per-crawl-node/hono";
app.use("*", payPerCrawl({ payTo: "0x..." }));

// Koa
import { payPerCrawl } from "@forgemeshlabs/pay-per-crawl-node/koa";
app.use(payPerCrawl({ payTo: "0x..." }));

Options are the core options (see the core README); anything not passed is read from env (PAY_TO, PRICE_USD, MODE, FACILITATOR_URL, CLASS_POLICY, BOT_OVERRIDES, ALLOW_PATHS, TRUST_HEADER, MPP_SECRET, PRO_KEY). Examples in examples/node.

Notes

  • Express, Fastify and Koa verify search engines with Node DNS; Hono uses DNS-over-HTTPS so it also runs on edge runtimes. Pass resolver to override.
  • trustHeader (e.g. x-forwarded-for) must be a header your own proxy overwrites or appends. The right-most entry is used; the client-controlled left-most is never trusted. Without it the socket address is used.
  • Replay lock is in memory per process; pass store for a shared one across instances.
  • Bugs and bad config fail open.

How money flows

Crawler signs a USDC authorization; the adapter has the facilitator verify and settle, and serves the page only on a settlement transaction hash. USDC lands in payTo.

MIT.