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

@agentdata/plugin-elizaos

v1.1.1

Published

ElizaOS plugin for AgentData API — crypto market data via x402

Downloads

41

Readme

@agentdata/plugin-elizaos

ElizaOS plugin exposing the AgentData API as agent actions. Real-time crypto market data for your ElizaOS agent via x402 micropayments on Base Mainnet.

ElizaOS x402 v2 Base Mainnet License: MIT

What this plugin does

Adds 8 crypto market data actions and 1 passive provider to any ElizaOS agent. The agent can query live prices, funding rates, DeFi yields, arbitrage opportunities, technical indicators, and sentiment data — paying per request in USDC on Base Mainnet.

No API keys. No subscriptions. Just fund a wallet with USDC and your agent can access premium crypto data on demand.

Install

npm install @agentdata/plugin-elizaos

Usage

In your agent character file:

import { agentdataPlugin } from '@agentdata/plugin-elizaos';

export const character = {
  name: 'CryptoTrader',
  // ... other config
  plugins: [agentdataPlugin],
  settings: {
    AGENTDATA_BUYER_PRIVATE_KEY: process.env.BUYER_WALLET_KEY, // 0x...
    AGENTDATA_BASE_URL: 'https://agentdata-api.com', // optional
  },
};

Actions

These trigger when the user mentions relevant keywords:

| Action | Price | Trigger phrases | |--------|-------|----------------| | GET_CHANGES_SINCE_LAST_CALL | $0.001 | "what changed", "since last time" | | WATCH_CONDITION | $0.010 | "alert me when", "watch for" | | GET_SIGNAL_CALIBRATION | free | "how accurate", "track record" | | GET_CRYPTO_PRICES | $0.002 | "crypto prices", "bitcoin price", "eth price" | | GET_FUNDING_RATES | $0.002 | "funding rate", "perpetuals" | | GET_MARKET_OVERVIEW | $0.003 | "market overview", "market sentiment" | | GET_DEFI_YIELDS | $0.003 | "defi yields", "best yield" | | GET_ARBITRAGE_OPPORTUNITIES | $0.005 | "arbitrage", "price difference" | | GET_TECHNICAL_INDICATORS | $0.003 | "rsi", "macd", "ta" | | GET_SENTIMENT | $0.002 | "fear and greed", "sentiment" | | GET_STABLECOIN_HEALTH | $0.002 | "usdc peg", "depeg" |

Provider

agentdata_market_context — passively injects current BTC/ETH prices and market sentiment into every agent turn. Gives your agent constant awareness of market state without explicit queries.

Payment modes

Without AGENTDATA_BUYER_PRIVATE_KEY — actions throw "Payment required" with the 402 details. The agent will tell the user how much each query costs.

With AGENTDATA_BUYER_PRIVATE_KEY — plugin auto-signs ERC-3009 TransferWithAuthorization using viem. Each query costs $0.001–$0.003 USDC. Fund the buyer wallet with $5 → good for ~1500–5000 queries.

No ETH required on the buyer wallet — the AgentData facilitator pays settlement gas.

Example agent conversation

User:  What are BTC and ETH doing right now?
Agent: [executes GET_CRYPTO_PRICES — $0.002 USDC]
       Bitcoin is at $68,718, Ethereum at $2,079.

User:  Is there arbitrage anywhere?
Agent: [executes GET_ARBITRAGE_OPPORTUNITIES — $0.005 USDC]
       Yes: SOL has a 0.12% spread between MEXC and Binance...

Related

  • agentdata-api — the underlying x402 service
  • agentdata-mcp — MCP version for Claude Desktop
  • Live service: https://agentdata-api.com

Keywords

ElizaOS plugin, ai16z plugin, crypto data plugin, DeFi plugin, x402 plugin, AI agent crypto, agentic crypto trading, DeFAI agent, autonomous trading agent, ElizaOS actions, crypto market data plugin, agent economy

License

MIT — see LICENSE.