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

@maxia-marketplace/oracle

v0.1.9

Published

Multi-source price data feed for AI agents. Data feed only. Not investment advice. No custody. No KYC.

Readme

@maxia/oracle

Multi-source price data feed for AI agents — TypeScript SDK. Pay-per-call in USDC on Base mainnet or use a free 100 req/day API key. No custody, no KYC.

Data feed only. Not investment advice. No custody. No KYC.

Install

npm install @maxia/oracle

Requires Node 18+ (uses the native fetch — no node-fetch, no axios).

Quick start

import { MaxiaOracleClient } from "@maxia/oracle";

// Register a free key (100 req/day, no KYC)
const bootstrap = new MaxiaOracleClient();
const registered = await bootstrap.register();
const key = registered.data.api_key;

// Then use it
const client = new MaxiaOracleClient({ apiKey: key });

const btc = await client.price("BTC");
console.log(btc.data.price);

// Up to 50 symbols in one call
const batch = await client.pricesBatch(["BTC", "ETH", "SOL", "AAPL"]);

// Cross-check divergence across sources
const conf = await client.confidence("BTC");
console.log(conf.data.divergence_pct);

// Force a single-source Chainlink on-chain fetch
const onchain = await client.chainlinkOnchain("BTC");

You can also pass the API key via environment variable:

export MAXIA_ORACLE_API_KEY=mxo_your_key_here

and point the client at a different backend (e.g. a local dev instance):

export MAXIA_ORACLE_BASE_URL=http://127.0.0.1:8003

9 methods

| Method | REST path | Auth | |---|---|---| | register() | POST /api/register | No | | health() | GET /health | No | | price(symbol) | GET /api/price/{symbol} | API key | | pricesBatch(symbols) | POST /api/prices/batch | API key | | sources() | GET /api/sources | API key | | cacheStats() | GET /api/cache/stats | API key | | listSymbols() | GET /api/symbols | API key | | chainlinkOnchain(symbol) | GET /api/chainlink/{symbol} | API key | | confidence(symbol) | GET /api/price/{symbol} (divergence only) | API key |

Every method returns a Promise<MaxiaResponse<T>> where MaxiaResponse<T> is { data: T, disclaimer: string }. The disclaimer is always present and always carries the mandatory legal string.

Error handling

Every call throws a typed exception on failure, all subclassed from MaxiaOracleError:

import {
  MaxiaOracleClient,
  MaxiaOracleAuthError,
  MaxiaOracleRateLimitError,
  MaxiaOracleUpstreamError,
  MaxiaOracleValidationError,
} from "@maxia/oracle";

const client = new MaxiaOracleClient({ apiKey: "mxo_..." });

try {
  const btc = await client.price("BTC");
} catch (err) {
  if (err instanceof MaxiaOracleAuthError) {
    // Missing or invalid key
  } else if (err instanceof MaxiaOracleRateLimitError) {
    // Daily quota exhausted
    console.log(`retry in ${err.retryAfterSeconds}s`);
  } else if (err instanceof MaxiaOracleUpstreamError) {
    // Every upstream source failed for this symbol
  } else if (err instanceof MaxiaOracleValidationError) {
    // Malformed symbol, oversized batch
  }
}

Non-goals

MAXIA Oracle is a data feed, not a regulated financial service. This SDK deliberately does NOT expose:

  • Order routing or trade execution
  • Wallet custody or signing
  • Swap, DeFi lending, yield farming, staking
  • Escrow or marketplace intermediation
  • Tokenized securities
  • "Investment advice" — no buy/sell signals, no portfolio construction

For a stdio MCP server suitable for Claude Desktop / Cursor / Zed, use the Python SDK pip install maxia-oracle which ships the maxia-oracle-mcp entry point. A native TypeScript MCP bridge is on the roadmap but not part of V1.

License

Apache-2.0. See LICENSE.

Links