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

shadowfeed-agent

v1.0.1

Published

SDK for AI agents to discover and purchase data feeds from ShadowFeed marketplace via x402 micropayments on Stacks

Downloads

33

Readme

@shadowfeed/agent

SDK for AI agents to discover and purchase real-time crypto data feeds from ShadowFeed via x402 micropayments on Stacks (Bitcoin L2).

Quickstart (5 minutes)

1. Install

npm install @shadowfeed/agent

2. Generate a wallet

npx tsx -e "const {generateKeypair}=require('x402-stacks'); console.log(generateKeypair('mainnet'))"

Fund the generated SP... address with STX from any exchange.

3. Buy your first feed

import { ShadowFeed } from '@shadowfeed/agent';

const sf = new ShadowFeed({
  privateKey: process.env.AGENT_PRIVATE_KEY!,
  network: 'mainnet',
  agentName: 'My Agent',
});

// Discover available feeds
const feeds = await sf.discover();
console.log(`${feeds.length} feeds available`);

// Buy data — payment is automatic
const result = await sf.buy('whale-alerts');
console.log(result.data);

API Reference

new ShadowFeed(config)

| Option | Type | Default | Description | |--------|------|---------|-------------| | privateKey | string | required | Stacks private key (hex) | | network | 'mainnet' \| 'testnet' | required | Stacks network | | agentName | string | 'ShadowFeed Agent' | Name shown in dashboard | | baseUrl | string | 'https://api.shadowfeed.app' | API endpoint | | timeoutMs | number | 30000 | Request timeout |

sf.discover(options?, refresh?)

List available feeds. Cached by default.

// All feeds
const all = await sf.discover();

// Filter by category
const onchain = await sf.discover({ category: 'on-chain' });

// Filter by price
const cheap = await sf.discover({ maxPrice: 0.01 });

// Force refresh cache
const fresh = await sf.discover(undefined, true);

sf.buy(feedId, queryParams?)

Purchase a single feed. Returns data + metadata.

const result = await sf.buy('whale-alerts');
// result.feed     → 'whale-alerts'
// result.data     → { alerts: [...], summary: {...} }
// result.price_stx → 0.005
// result.tx       → '0xabc123...'

// With query params (e.g. wallet-profiler)
const wallet = await sf.buy('wallet-profiler', {
  address: '0xb5998e11E666Fd1e7f3B8e8d9122A755eec1E9b7',
  chain: 'ethereum',
});

sf.chain(feedIds, delayMs?)

Purchase multiple feeds in sequence.

const research = await sf.chain([
  'btc-sentiment',
  'smart-money-flows',
  'defi-scores',
], 2000);

console.log(research.total_spent_stx); // 0.093
console.log(research.feeds.length);    // 3

sf.getFeed(feedId)

Get info about a specific feed without purchasing.

const info = await sf.getFeed('smart-money-flows');
// info.price_stx → 0.08
// info.category  → 'on-chain'

sf.health() / sf.stats()

Check API health or get provider statistics (free endpoints).

Available Feeds (16)

Original Feeds

| Feed | Price | Category | |------|-------|----------| | whale-alerts | 0.005 STX | on-chain | | btc-sentiment | 0.003 STX | social | | defi-scores | 0.01 STX | analytics |

Nansen Premium Feeds

| Feed | Price | Category | |------|-------|----------| | smart-money-flows | 0.08 STX | on-chain | | token-intel | 0.05 STX | analytics | | wallet-profiler | 0.05 STX | on-chain | | smart-money-holdings | 0.05 STX | on-chain | | dex-trades | 0.08 STX | on-chain |

Free API Feeds

| Feed | Price | Category | |------|-------|----------| | liquidation-alerts | 0.008 STX | derivatives | | gas-prediction | 0.003 STX | infrastructure | | token-launches | 0.005 STX | discovery | | governance | 0.005 STX | governance | | stablecoin-flows | 0.005 STX | analytics | | security-alerts | 0.005 STX | security | | dev-activity | 0.003 STX | development | | bridge-flows | 0.005 STX | cross-chain |

Examples

See examples/ for complete working agents:

How It Works

ShadowFeed uses the x402 protocol for machine-to-machine payments:

  1. Agent requests a feed → server returns HTTP 402 Payment Required
  2. SDK automatically signs a STX payment transaction
  3. Payment is verified and settled on Stacks (Bitcoin L2)
  4. Agent receives the data

All payments are real on-chain STX transactions, verifiable on Hiro Explorer.

License

MIT