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

polyhacks-whale-alerts

v1.0.0

Published

Real-time Polymarket whale alert tracking. Get notified when smart money moves.

Readme

polyhacks-whale-alerts

npm version

Real-time Polymarket whale alert tracking. Get notified when smart money moves.

Install

npm install polyhacks-whale-alerts

Quick Start

import { PolyHacksClient } from 'polyhacks-whale-alerts';

const client = new PolyHacksClient();

// Get recent whale trades
const whales = await client.getRecentWhales({ minUsd: 10000, limit: 5 });
console.log(whales.trades);

// Get the biggest trade today
const biggest = await client.getBiggestToday();
console.log('Biggest whale:', biggest);

// Stream new trades in real-time
const stop = await client.stream(
  (trade) => console.log('New whale:', trade),
  30000, // Poll every 30 seconds
  { minUsd: 5000 }
);

// Stop streaming
stop();

API Reference

new PolyHacksClient(options?)

Create a new client instance.

const client = new PolyHacksClient({
  apiKey: 'your-api-key',  // Optional: for paid tier
  baseUrl: '...',          // Optional: custom API endpoint
});

client.getRecentWhales(options?)

Fetch recent whale trades.

const response = await client.getRecentWhales({
  minUsd: 5000,   // Minimum trade value (default: 5000)
  limit: 10,      // Number of trades (default: 10)
});

// Returns: { trades: WhaleTrade[], count: number, cached: boolean }

client.getBiggestToday()

Get the single biggest whale trade of the day.

const biggest = await client.getBiggestToday();
// Returns: WhaleTrade | null

client.stream(callback, intervalMs?, options?)

Stream new trades via polling. Returns an unsubscribe function.

const stop = await client.stream(
  (trade) => console.log(trade),
  60000,           // Poll interval in ms (default: 60000)
  { minUsd: 5000 } // Options
);

stop(); // Stop streaming

Types

interface WhaleTrade {
  title: string;           // Market title
  outcome: string;         // Outcome name (Yes/No or custom)
  side: 'BUY' | 'SELL';    // Trade direction
  usd_value: number;       // Trade value in USD
  avg_price: number;       // Average fill price
  trader: string;          // Trader address (shortened)
  timestamp: string;       // ISO timestamp
  market_slug?: string;    // Market identifier
}

Pricing Tiers

| Feature | Free Tier | Paid Tier ($9.99/mo) | |---------|-----------|----------------------| | Requests | 5/hour | Unlimited | | Latency | 15 min delayed | Real-time | | API Key | Not required | Required |

Get your API key at polyhacks.app

Links

License

MIT