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

@usenami/plugin-funding

v0.1.0

Published

ElizaOS plugin: multi-venue perpetual funding-rate data & cross-exchange funding arbitrage across 20+ exchanges (Binance, Bybit, OKX, Hyperliquid + HIP-3 sub-DEXes). Free funding screener + paid x402 funding-arb / funding-spread signals (auto-pay in USDC

Downloads

36

Readme

@usenami/plugin-funding

ElizaOS plugin: multi-venue perpetual funding-rate data and cross-exchange funding arbitrage across 20+ exchanges — a free screener plus paid x402 signals that auto-pay per call.

npm license

This is the public source mirror of @usenami/plugin-funding, the ElizaOS plugin for Usenami's funding-rate data. It's a thin client over the public Usenami funding API — the same HTTP + x402 contract as the @usenami/funding-mcp MCP server, so the same endpoints and wallet work with either.

Why

Perpetual funding rates drift apart across exchanges constantly. Knowing where funding is richest — and which long-venue / short-venue pairs give the best delta-neutral spread right now — is a live, perishable signal. This plugin gives an ElizaOS agent that signal directly: a free screener to scan the whole market, and two paid endpoints for the ranked arbitrage view, settled per-call in USDC on Base via x402 so there's no API key, account, or subscription to manage.

Install

npm install @usenami/plugin-funding

Quickstart

Add the plugin to your character. The free screener needs no config. To let the paid actions auto-pay, set X402_PRIVATE_KEY to a Base wallet holding a little USDC:

import fundingPlugin from "@usenami/plugin-funding";

export const character = {
  // ...existing config
  plugins: [fundingPlugin],
  settings: {
    secrets: {
      // optional — only needed for the paid actions:
      X402_PRIVATE_KEY: "0x<your-base-wallet-private-key>",
    },
  },
};

For local dev you can also put the same vars in .env.

Actions the agent gets

| Name | Cost | Purpose | |---|---|---| | FUNDING_SCREENER | free | Current cross-venue funding rates across 20+ exchanges. Optional symbol filter. No wallet. | | FUNDING_ARB | ~$0.003 (x402) | Ranked long-venue / short-venue funding-arbitrage pairs (delta-neutral). Optional symbol filter. | | FUNDING_SPREAD | ~$0.001 (x402) | Funding-rate spread for one symbol across all venues (min/max venue, basis). |

If X402_PRIVATE_KEY is set, the paid actions auto-pay the x402 challenge and return the data. If it's not set, they return the x402 payment requirements instead, so any x402-capable agent can pay the call itself and retry. The free screener never touches a wallet.

Coverage

20+ venues including Binance, Bybit, OKX, Hyperliquid, Aster, Lighter, and Hyperliquid HIP-3 sub-DEXes (where on-chain RWA / niche perp funding lives). The set the API ranks over is broader than any single exchange's view.

Env contract

Same as @usenami/funding-mcp:

| Var | Default | Purpose | |---|---|---| | USENAMI_API_BASE | https://api.usenami.io | API base URL. | | X402_PRIVATE_KEY | (unset) | Base wallet (0x + 64 hex) that auto-pays the paid endpoints over x402. Optional. | | FUNDING_FETCH_TIMEOUT_MS | 30000 | Per-request timeout. |

Payment model

  • Free screener. FUNDING_SCREENER is a public preview — no wallet, no payment.
  • Per-call x402. The paid endpoints answer an HTTP 402 with x402 payment requirements; with a wallet configured the plugin settles it in USDC on Base and retries automatically. No account, no subscription — you pay only for the calls you make.
  • No key custody. The plugin holds nothing but the optional Base wallet you give it; there's no Usenami API key to leak.

Links

License

MIT — see LICENSE.