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

@bridgenode/plugin-x402

v0.1.0

Published

ElizaOS plugin for pay-per-request LLM inference via x402 on Solana USDC - no API keys, no accounts

Readme

@bridgenode/plugin-x402

ElizaOS plugin for pay-per-request LLM inference via x402 on Solana USDC.

No API keys. No accounts. No subscriptions. Agents pay per request with USDC micropayments — gas fees sponsored by BridgeNode.

npm version License: MIT-0 CI

Features

  • Pay-per-request LLM inference — OpenAI-compatible endpoint through BridgeNode
  • x402 payment flow — 402 → sign → retry, fully automatic (no custom crypto)
  • Streaming, tools & structured output — via AI SDK, for free
  • Live pricing — model costs from /v1/models, never hardcoded
  • Configurable spend capBRIDGENODE_MAX_USDC_PER_TX (default $1)
  • Free models available (zero-cost)
  • Gas sponsored — agents only need a USDC ATA, no SOL for fees

Why BridgeNode?

| | BridgeNode plugin | Other x402 plugins | |---|---|---| | Working payment flow | ✅ | ❌ (broken signer) | | Streaming / tools / structured output | ✅ | ❌ | | Live pricing from /v1/models | ✅ | ❌ (hardcoded) | | Spend cap | ✅ | ❌ |

Installation

npm install @bridgenode/plugin-x402

Usage

Add the plugin to your character:

{
  "name": "my-agent",
  "plugins": ["@bridgenode/plugin-x402"],
  "settings": {
    "secrets": {
      "SOLANA_PRIVATE_KEY": "your-agent-wallet-base58-private-key"
    }
  }
}

Or set the environment variables (see .env.example):

| Variable | Required | Default | Description | |---|---|---|---| | SOLANA_PRIVATE_KEY | ✅ | — | Agent wallet private key (base58) | | SOLANA_RPC_URL | ❌ | mainnet-beta | Solana RPC endpoint | | BRIDGENODE_BASE_URL | ❌ | https://bridgenode.cc/v1 | BridgeNode endpoint | | BRIDGENODE_MAX_USDC_PER_TX | ❌ | 1 | Max USDC per transaction (safety cap) | | BRIDGENODE_MODEL_SMALL | ❌ | deepseek-v4-flash | Model for TEXT_SMALL | | BRIDGENODE_MODEL_LARGE | ❌ | glm-5.2 | Model for TEXT_LARGE |

The wallet must have a USDC ATA on Solana mainnet (the first USDC transfer auto-creates it). No SOL balance is required — BridgeNode sponsors gas fees.

Spend cap

BRIDGENODE_MAX_USDC_PER_TX limits how much a single inference request can cost (default 1 USD). Set it to 0 to fully disable the cap (not recommended). The cap is enforced client-side before signing any payment transaction. If a request would exceed the cap, the payment is aborted and an error is logged.

Models

Live model list & pricing: https://bridgenode.cc/v1/models

TEXT_SMALL maps to BRIDGENODE_MODEL_SMALL (default deepseek-v4-flash), TEXT_LARGE maps to BRIDGENODE_MODEL_LARGE (default glm-5.2). Override via env or character settings.

Actions

  • GET_PRICE_ESTIMATE — fetches live pricing from /v1/models and reports it to the agent (free vs paid models, $/M tokens).

Development

npm install
npm run typecheck
npm run build
npm test          # unit tests (live-payment tests self-skip without TEST_WALLET_PK)

To run the live integration tests (real payment, few cents, S3-approved):

TEST_WALLET_PK=your-base58-key npx vitest run __tests__/live.integration.test.ts __tests__/smoke.test.ts

License

MIT-0 (No Attribution) — see LICENSE. BridgeNode is an agent-to-agent (A2A) platform; this plugin is built for autonomous agents.