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

plugin-x402-endpoints

v0.5.0

Published

ElizaOS plugin exposing the x402-endpoints catalogue (28 paid data endpoints: official EU/global registries + crypto pre-trade data) as native agent actions, billed per call via x402 (USDC on Base mainnet).

Readme

plugin-x402-endpoints — ElizaOS plugin

Exposes the 28 paid endpoints of the x402-endpoints catalogue as native ElizaOS actions. An Eliza agent can discover and call them in natural language; each call is billed per use via the x402 protocol (USDC on Base mainnet).

The catalogue covers:

  • Official EU / global registries — GLEIF (LEI), VIES (EU VAT), Companies House (UK), INSEE Sirene (FR), BODACC, EUR-Lex, Légifrance, EPO patents, TED tenders, sanctions screening, CVE, FDA recalls / drug labels, IBAN, ECB FX…
  • Crypto pre-trade data — token-safety, derivatives-radar, wallet-xray, dex-cex-spread, new-pairs, plus Polymarket odds and web search/extract.

The actions are generated from src/catalog.json, which is bundled at build time, so the plugin never diverges from the catalogue it was built from.

Two modes

| Mode | When | An action call does | |---|---|---| | Auto-pay | a funded Base buyer key is configured | pays the x402 micropayment and returns live data | | Discovery (default) | no key | returns the exact payment terms (price, network, asset, payTo, resource) + an example output |

⚠️ Never put a buyer key on a shared/hosted agent. Auto-pay is for an agent that runs with its own wallet.

Install

npm install plugin-x402-endpoints
# peer dependency:
npm install @elizaos/core

Usage

import { AgentRuntime } from "@elizaos/core";
import x402Plugin from "plugin-x402-endpoints";

const runtime = new AgentRuntime({
  character: {
    name: "MyAgent",
    plugins: ["plugin-x402-endpoints"],
    settings: {
      secrets: {
        // optional — enables auto-pay (a Base wallet funded in USDC):
        X402_BUYER_PRIVATE_KEY: process.env.X402_BUYER_PRIVATE_KEY,
      },
    },
  },
  plugins: [x402Plugin],
});

The agent now has 28 actions (X402_GLEIF_LEI, X402_VIES_VAT, X402_CRYPTO_TOKEN_SAFETY, X402_CRYPTO_DERIVATIVES_RADAR, X402_CRYPTO_WALLET_XRAY, …) and an X402_CATALOG provider that lists every paid tool in context. Example prompts:

  • "Look up LEI 529900T8BM49AURSDO55"X402_GLEIF_LEI
  • "Is token 0x… on Base a honeypot?"X402_CRYPTO_TOKEN_SAFETY
  • "Validate IE VAT 6388047V"X402_VIES_VAT

Parameters are taken from explicit action options, structured message content, or extracted from the natural-language message via the runtime model.

Settings

| Setting | Default | Role | |---|---|---| | X402_BUYER_PRIVATE_KEY | — | Private key of a Base wallet funded in USDC; enables auto-pay. EVM_PRIVATE_KEY / WALLET_PRIVATE_KEY are also accepted. | | X402_AUTO_PAY | 1 | Set to 0/false to force discovery mode even with a key. | | X402_BASE_URL | https://x402-endpoints.onrender.com | API base URL. | | X402_NETWORK | eip155:8453 | Payment network (Base mainnet). |

Build & test

npm install
npm run build     # tsup -> dist/ (ESM + CJS + d.ts)
npm run smoke     # discovery smoke test against the live API

License

MIT