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

naysayer

v0.1.0

Published

Ask NAYSAYER before your agent trades: a paid ($0.01 x402 on Hedera), HCS-anchored, signed pre-trade verdict.

Readme

naysayer

Ask before your agent trades. NAYSAYER is the agent that gets paid to say no: for $0.01 (testnet USDC over x402 on Hedera) it rules on a swap or transfer your agent wants to make, writes the ruling to Hedera Consensus Service before taking the payment, and returns it EIP-712 signed.

Live app and docket: https://naysayer.vercel.app · Source: https://github.com/duongnq2798/naysayer

Hedera testnet only. Nothing here has been audited.

You need

  • A Hedera testnet account (ECDSA or ED25519) from portal.hedera.com
  • That account associated with USDC 0.0.429274, with a little test USDC from faucet.circle.com (enter the 0.0.x account ID)

Use

npm i naysayer
import { Naysayer } from "naysayer";

// Resolves naysayer.eth (ENSv2, Sepolia), then refuses to continue if the endpoint's
// verdict signer differs from the one published under the name.
const ns = await Naysayer.fromEns("naysayer.eth", {
  payer: { accountId: "0.0.YOUR_ACCOUNT", privateKey: process.env.HEDERA_PRIVATE_KEY! },
});

const v = await ns.check({
  kind: "SWAP_EXACT_IN",
  tokenIn:  "0x0000000000000000000000000000000000003ad2", // WHBAR 0.0.15058
  tokenOut: "0x0000000000000000000000000000000000001549", // USDC  0.0.5449
  amountIn: "100000000",   // 1 WHBAR (8 decimals)
  minAmountOut: "48000",   // your floor in USDC (6 decimals)
  target: "0x0000000000000000000000000000000000159398",   // SaucerSwap V2 router
  memo: "why the agent wants this (treated as untrusted text)",
});

if (!v.granted) {
  console.log("NAY:", v.reasonName, v.explanation, v.hcs.url);
  return;
}

Naysayer.connect("https://naysayer-api.vercel.app", { payer }) skips ENS.

What comes back

| Field | Meaning | |---|---| | granted, reasonName, explanation | The ruling | | checks[] | Each deterministic check with its numbers (oracle age, slippage floor, pool drift, allowlists) | | critic | The Claude critic's vote; it can only turn a grant into a denial | | hcs.url | The ruling on Hedera Consensus Service | | verdict, sig, signatureValid | EIP-712 ruling and signature, already verified against the published signer | | payment | The x402 settlement for your one cent |

Errors throw NaysayerError with status. You are not charged on 400 (bad input) or 503 (ledger unavailable).

CLI

HEDERA_ACCOUNT_ID=0.0.x HEDERA_PRIVATE_KEY=... npx naysayer check \
  --ens naysayer.eth --in 0.0.15058 --out 0.0.5449 --amount 100000000 --min 48000

Exit code 0 = granted, 2 = denied.

MIT