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

@blockrun/elizaos-plugin

v1.0.0

Published

BlockRun x402 pay-per-request AI plugin for ElizaOS - enables agents to make micropayments for AI API calls on Base

Readme

@elizaos/plugin-blockrun

Pay-per-request AI for ElizaOS agents via x402 micropayments on Base.

Overview

This plugin enables ElizaOS agents to make LLM API calls using the x402 protocol, paying with USDC micropayments on Base chain. No API keys required - just a wallet with USDC.

Supported Models:

  • OpenAI: gpt-4o, gpt-4o-mini
  • Anthropic: claude-sonnet-4, claude-3.5-haiku
  • Google: gemini-2.0-flash
  • And more via BlockRun gateway

Installation

npm install @elizaos/plugin-blockrun
# or
pnpm add @elizaos/plugin-blockrun

Configuration

Set your Base chain wallet private key:

BASE_CHAIN_WALLET_KEY=0x...

Or in agent settings:

const agent = new Agent({
  plugins: [blockrunPlugin],
  settings: {
    BASE_CHAIN_WALLET_KEY: '0x...',
  },
});

Usage

Plugin Registration

import { blockrunPlugin } from '@elizaos/plugin-blockrun';

const agent = new Agent({
  plugins: [blockrunPlugin],
});

Available Actions

BLOCKRUN_CHAT

Make a pay-per-request AI call:

// The action is triggered when the agent needs to query an AI model
// Payments are handled automatically via x402

Available Providers

BLOCKRUN_WALLET

Provides wallet context to the agent:

// Returns wallet address and USDC balance on Base
// Useful for agents to understand their payment capacity

How It Works

  1. Agent makes an AI request via BLOCKRUN_CHAT action
  2. BlockRun gateway returns 402 Payment Required with price
  3. Plugin automatically signs USDC payment (EIP-712)
  4. Request is retried with payment signature
  5. AI response is returned to the agent

All payments use USDC on Base chain. Typical cost: $0.001-0.01 per request.

Environment Variables

| Variable | Description | Required | |----------|-------------|----------| | BASE_CHAIN_WALLET_KEY | Private key for Base chain wallet | Yes | | BLOCKRUN_API_URL | Custom API URL (default: https://blockrun.ai/api) | No | | BLOCKRUN_DEFAULT_MODEL | Default model (default: openai/gpt-4o-mini) | No |

Links

License

MIT