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

noren-pay

v0.1.0

Published

Pay x402 APIs on Robinhood Chain with one call. fetchPaid('slug') checks the challenge, enforces your spending caps, settles USDG and returns the data.

Readme

noren-pay

Pay x402 APIs on Robinhood Chain with one call.

fetchPaid('slug') reads the 402 challenge, checks every field of it, enforces your spending caps, settles USDG through the Noren gateway and returns the data. No accounts, no API keys.

npm i noren-pay
import { createNorenPay } from 'noren-pay';

const pay = createNorenPay({
  privateKey: process.env.NOREN_PAYER_KEY!, // stays in your process
  maxPerCallUsdg: 0.05,
  maxPerDayUsdg: 0.5,
});

console.log(await pay.listApis());            // free catalog: slug, price, payTo
const { data, paidUsdg, settlementTx } = await pay.fetchPaid('news');

Requires Node 22+. The payer wallet needs USDG and a little ETH for gas on Robinhood Chain (eip155:4663).

What it checks before any money moves

  • The challenge is for eip155:4663 and the asset is USDG.
  • payTo and the spender are valid addresses.
  • The price in the challenge is not higher than the price in the public catalog.
  • The price is within maxPerCallUsdg and today's spend (UTC) stays within maxPerDayUsdg. Defaults: 0.10 and 1.00 USDG.
  • The slug is lowercase letters, digits and dashes, so it cannot escape the path.
  • The approve is for exactly the price, never unlimited.

A refused call throws NorenPayError with a code such as cap_per_call, cap_per_day, overcharge, wrong_network, wrong_asset, unknown_api.

Limits

  • Robinhood Chain and USDG only. Other chains are refused, not guessed.
  • The daily cap is kept in memory. A restarted process starts at zero, so for hard limits also fund the payer wallet with only what you are willing to spend.
  • If settlement succeeds but the final fetch fails, the spend is still counted and the error includes the settlement transaction.
  • This is a client. It does not custody keys or run a server.

Verified

Unit tests cover each refusal and assert the facilitator is never called when a check fails. One real call was made against the live gateway: fetchPaid('news') settled 0.01 USDG on Robinhood Chain.

Gateway: https://gateway.usenoren.xyz · Docs: https://docs.usenoren.xyz · Apache-2.0