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

agentindex-eliza-plugin

v1.0.0

Published

Agent Index plugin for Eliza - discover x402 endpoints for your AI agent

Readme

@agentindex/eliza-plugin

Give your Eliza agent the ability to discover x402 endpoints.

npm version

What This Does

Your Eliza agent can now:

  • Search for any x402 API or service
  • Discover tools it can pay for (crypto, weather, news, AI, etc.)
  • Find the best endpoints by price, health, and quality

All powered by Agent Index — the discovery layer for x402 AI agents.

Installation

npm install @agentindex/eliza-plugin

Usage

import { AgentRuntime } from '@elizaos/core';
import { agentIndexPlugin } from '@agentindex/eliza-plugin';

const agent = new AgentRuntime({
  plugins: [agentIndexPlugin],
  // ... your other config
});

That's it! Your agent can now discover x402 endpoints.

What Your Agent Can Do

Search for APIs

User: "Find me a crypto price API"

Agent: "I found these x402 endpoints:

  1. Real-time crypto prices URL: https://api.example.com/price Price: $0.01/call | Health: healthy | Tier: A

  2. Multi-chain token data URL: https://defi.example.com/tokens Price: $0.005/call | Health: healthy | Tier: B

Your agent can call these directly using x402 payments."

Get Trending Endpoints

User: "What endpoints are trending?"

Agent: "Here are the trending x402 endpoints:

  1. AI Image Generation URL: https://ai.example.com/generate Price: $0.05/call | Health: healthy | Tier: A

..."

Actions

| Action | Trigger | Description | |--------|---------|-------------| | SEARCH_AGENT_INDEX | "find me a...", "search for...", "I need..." | Search for endpoints | | TRENDING_ENDPOINTS | "what's trending", "popular endpoints" | Get trending endpoints |

Categories

The plugin automatically detects categories from your query:

  • crypto — cryptocurrency, DeFi, token data
  • weather — forecasts, climate data
  • news — headlines, articles
  • ai/ml — AI models, inference APIs

Advanced: Direct API Access

import { searchEndpoints, getTrending } from '@agentindex/eliza-plugin';

// Search programmatically
const cryptoApis = await searchEndpoints('price', 'crypto', 0.05, 10);

// Get trending
const trending = await getTrending();

Why This Matters

Your AI agent needs tools. Instead of hardcoding APIs:

  1. Let your agent discover what it needs at runtime
  2. Pay for services automatically via x402
  3. Always find the best option (by price, health, quality)

This is the future of agent-to-agent commerce.

Links

License

MIT © 402 Agent Inc