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

tickersfeed

v1.1.0

Published

SDK for TickersFeed — pay-per-call stock & crypto data API for AI agents. No API keys, just USDC micropayments on Base.

Readme

tickersfeed

SDK for TickersFeed — pay-per-call stock & crypto data API for AI agents.

No API keys. No subscriptions. Your agent pays a fraction of a cent in USDC per request and gets instant market data.

Install

npm install tickersfeed ethers

Quick Start

import { TickersFeed } from 'tickersfeed';

const tf = new TickersFeed({ privateKey: process.env.WALLET_KEY });

const quote = await tf.stock('AAPL');
console.log(`Apple: $${quote.quote.c}`);

Prerequisites

  • Node.js 18+
  • A wallet with USDC on Base (even $1 is enough for hundreds of calls)
  • Get testnet USDC from faucet.circle.com to try it free

Endpoints & Pricing

| Method | Cost | Description | |---|---|---| | tf.stock('AAPL') | $0.003 | Real-time/delayed stock quote | | tf.stockEarnings('AAPL') | $0.003 | Last 4 quarters of earnings | | tf.stockNews('AAPL') | $0.005 | News + sentiment analysis | | tf.crypto('BTC') | $0.002 | Crypto price data | | tf.cryptoMarket() | $0.001 | Top crypto by market cap | | tf.defiYields() | $0.001 | Best DeFi yield opportunities | | tf.defiProtocols() | $0.001 | Top DeFi protocols by TVL | | tf.gas() | $0.001 | Ethereum + Base gas prices | | tf.walletTransfers(addr) | $0.003 | USDC transfer history | | tf.walletPortfolio(addr) | $0.003 | Multi-token balances | | tf.chainStats('base') | $0.002 | Daily on-chain stats | | AI Analysis | | | | tf.analyzeStock('AAPL') | $0.03 | AI stock analysis (quote + earnings + news) | | tf.analyzeCrypto('BTC') | $0.02 | AI crypto analysis | | tf.analyzeMarket() | $0.05 | AI market overview (stocks + crypto + DeFi) | | tf.compare('AAPL', 'TSLA') | $0.05 | AI head-to-head comparison | | tf.analyzePortfolio(addr) | $0.08 | AI on-chain portfolio analysis |

Examples

Stock quote

const quote = await tf.stock('TSLA');
console.log(quote.quote);
// { c: 248.50, h: 252.10, l: 245.30, o: 247.00, pc: 246.80, dp: 0.69, t: 1718... }

Earnings

const earnings = await tf.stockEarnings('NVDA');
for (const q of earnings.earnings) {
  console.log(`${q.period}: actual ${q.actual} vs estimate ${q.estimate} (${q.surprisePercent}%)`);
}

Crypto market overview

const market = await tf.cryptoMarket();
console.log(`Total crypto market cap: $${(market.market.total_market_cap_usd / 1e12).toFixed(2)}T`);
for (const coin of market.top.slice(0, 5)) {
  console.log(`  ${coin.symbol}: $${coin.price_usd.toFixed(2)} (${coin.change_24h > 0 ? '+' : ''}${coin.change_24h.toFixed(1)}%)`);
}

DeFi yields

const yields = await tf.defiYields({ chain: 'base', min_tvl: 1000000, limit: 5 });
for (const pool of yields.pools) {
  console.log(`${pool.project} ${pool.symbol}: ${pool.apy_total.toFixed(1)}% APY ($${(pool.tvl_usd / 1e6).toFixed(1)}M TVL)`);
}

Wallet portfolio

const portfolio = await tf.walletPortfolio('0xYOUR_ADDRESS', { chain: 'base' });
for (const token of portfolio.tokens) {
  console.log(`${token.symbol}: ${token.balance}`);
}

AI stock analysis

const report = await tf.analyzeStock('AAPL');
console.log(report.analysis.summary);
console.log(`Outlook: ${report.analysis.outlook}`);
console.log(`Risks: ${report.analysis.risks.join(', ')}`);

AI asset comparison

const cmp = await tf.compare('AAPL', 'TSLA');
console.log(cmp.analysis.verdict);
for (const diff of cmp.analysis.key_differences) {
  console.log(`  - ${diff}`);
}

AI market overview

const market = await tf.analyzeMarket();
console.log(market.analysis.summary);
console.log(`Outlook: ${market.analysis.outlook}`);

On-chain stats

const stats = await tf.chainStats('base', { days: 7 });
for (const day of stats.daily_stats) {
  console.log(`${day.date}: ${(day.tx_count / 1e6).toFixed(1)}M txns, ${day.active_addresses.toLocaleString()} addresses`);
}

Error Handling

import { TickersFeed, TickersFeedError } from 'tickersfeed';

try {
  const quote = await tf.stock('INVALID');
} catch (err) {
  if (err instanceof TickersFeedError) {
    console.log(`API error ${err.status}: ${err.message}`);
  }
}

How It Works

Each API call automatically handles the x402 payment protocol:

  1. Requests the endpoint → receives HTTP 402 with price
  2. Signs a USDC micropayment on Base using your wallet
  3. Retries with the payment → receives the data

You never interact with the blockchain directly — the SDK handles everything.

License

MIT