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

@quillai-network/x402-wach

v1.0.2

Published

CLI SDK for WACH.AI token risk analysis via x402 payments

Readme

x402-wach

A CLI & SDK for WACH.AI token risk analysis, powered by the x402 payment protocol. Pay-per-request in USDC on Base — no API keys, no subscriptions.

x402-wach verify-risk 0xA0b8...3E8 eth

How it works

  1. You run a command (or call the SDK).
  2. The SDK sends a request to https://x402.wach.ai/verify-token.
  3. The server responds with HTTP 402 Payment Required.
  4. The SDK automatically signs a USDC micro-payment on Base using your local wallet.
  5. The request is retried with the payment header — you get back the token risk report.

All payment logic is handled transparently by the @x402/axios interceptor.

Quick Start

Install

# Clone & install
git clone <repo-url> && cd x402-
npm install
npm run build

# Link the CLI globally
npm link

Set up a wallet

You need a wallet with USDC on Base to pay for requests.

# Option 1 — Generate a brand new wallet
x402-wach wallet create

# Option 2 — Import an existing wallet via private key
x402-wach wallet import

Both options save a wallet.json in your current directory. Fund the wallet address with USDC on Base before making requests.

Analyze a token

x402-wach verify-risk <TOKEN_ADDRESS> <CHAIN_NAME>

Example:

x402-wach verify-risk 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 eth

Supported Chains

| Short Name | Chain | Chain ID | | ---------- | ------------------- | -------- | | eth | Ethereum | 1 | | pol | Polygon | 137 | | base | Base | 8453 | | bsc | Binance Smart Chain | 56 | | sol | Solana | solana |

Note: The token you're analyzing can be on any supported chain. The payment always happens in USDC on Base.

CLI Commands

| Command | Description | | -------------------------------------------------- | ---------------------------------------- | | x402-wach verify-risk <tokenAddress> <chainName> | Analyze token risk (pays USDC on Base) | | x402-wach wallet create | Generate a new wallet | | x402-wach wallet import | Import wallet from a private key | | x402-wach wallet info | Show current wallet address & file path | | x402-wach chains | List all supported chains | | x402-wach --help | Show help | | x402-wach --version | Show version |

Programmatic Usage

You can also use x402-wach as a library in your own Node.js / TypeScript project:

import { verifyTokenRisk } from "x402-wach";

const report = await verifyTokenRisk(
  "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "eth"
);

console.log(report);

See usage.md for the full programmatic API reference.

Project Structure

x402-/
├── src/
│   ├── cli.ts        # CLI entry point (Commander.js)
│   ├── client.ts     # x402 Axios wrapper & verifyTokenRisk()
│   ├── wallet.ts     # Wallet create / import / load / save
│   ├── chains.ts     # Chain mappings (short name → chain ID)
│   └── index.ts      # Public SDK exports
├── dist/             # Compiled output
├── package.json
├── tsconfig.json
└── README.md

Tech Stack

License

MIT