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

shredstream

v1.0.3

Published

Solana ShredStream SDK/Decoder for JavaScript/TypeScript, enabling ultra-low latency Solana transaction streaming via UDP shreds from https://www.shredstream.com

Readme

Solana ShredStream SDK for JavaScript / TypeScript

Solana ShredStream SDK/Decoder for JavaScript/TypeScript, enabling ultra-low latency Solana transaction streaming via UDP shreds from ShredStream.com

Part of the ShredStream.com ecosystem — ultra-low latency Solana shred streaming via UDP.

License: MIT TypeScript Node

📋 Prerequisites

  1. Create an account on ShredStream.com
  2. Launch a Shred Stream and pick your region (Frankfurt, Amsterdam, Singapore, Chicago, and more)
  3. Enter your server's IP address and the UDP port where you want to receive shreds
  4. Open your firewall for inbound UDP traffic on that port (e.g. configure your cloud provider's security group)
  5. Install Node.js 18+ and npm:
    # Linux (Ubuntu/Debian)
    curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
    sudo apt install -y nodejs
    
    # macOS
    brew install node

🎁 Want to try before you buy? Open a ticket on our Discord to request a free trial.

📦 Installation

npm install shredstream

⚡ Quick Start

TypeScript

Create a file index.ts:

import { ShredListener } from 'shredstream';

const PORT = parseInt(process.env.SHREDSTREAM_PORT || '8001');
const listener = new ShredListener(PORT);

// Decoded transactions — ready-to-use Solana transactions
listener.on('transactions', (slot, txs) => {
  txs.forEach(tx => console.log(`slot ${slot}: ${tx.signature}`));
});

// OR raw shreds — lowest latency, arrives before block assembly
// listener.on('shred', (slot, index, payload) => {
//   console.log(`slot ${slot} index ${index} len ${payload.length}`);
// });

listener.start();

Run it:

npx tsx index.ts

JavaScript

Create a file index.js:

const { ShredListener } = require('shredstream');

// Bind to the UDP port configured on ShredStream.com
const PORT = parseInt(process.env.SHREDSTREAM_PORT || '8001');
const listener = new ShredListener(PORT);

// Decoded transactions — ready-to-use Solana transactions
listener.on('transactions', (slot, txs) => {
  txs.forEach(tx => console.log(`slot ${slot}: ${tx.signature}`));
});

// OR raw shreds — lowest latency, arrives before block assembly
// listener.on('shred', (slot, index, payload) => {
//   console.log(`slot ${slot} index ${index} len ${payload.length}`);
// });

listener.start();

Run it:

node index.js

📖 API Reference

new ShredListener(port, options?)

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | port | number | — | UDP port to bind | | options.recvBuf | number | 8 MiB | Socket receive buffer size | | options.maxAge | number | 128 | Maximum slot age before eviction |

Events

  • 'shred' (slot: bigint, index: number, payload: Buffer) — Emitted for each received data shred
  • 'transactions' (slot: bigint, txs: Transaction[]) — Emitted as transactions are decoded from incoming shreds

Methods

  • listener.start() — Create the UDP socket and begin listening
  • listener.stop() — Close the socket
  • listener.activeSlots() — Number of slots currently being accumulated

Transaction

| Field | Type | Description | |-------|------|-------------| | signatures | Buffer[] | Raw 64-byte signatures | | raw | Buffer | Full wire-format transaction bytes | | signature | string | First signature as base58 |

🎯 Use Cases

ShredStream.com shred data powers a wide range of latency-sensitive strategies — HFT, MEV extraction, token sniping, copy trading, liquidation bots, on-chain analytics, and more.

💎 PumpFun Token Sniping

ShredStream.com SDK detects PumpFun token creations ~499ms before they appear on PumpFun's live feed — tested across 25 consecutive detections:

ShredStream.com provides a complete, optimized PumpFun token creation detection code exclusively to Pro plan subscribers and above. Battle-tested, high-performance, ready to plug into your sniping pipeline. To get access, open a ticket on Discord or reach out on Telegram @shredstream.

⚙️ Configuration

OS Tuning

# Linux — increase max receive buffer
sudo sysctl -w net.core.rmem_max=33554432

# macOS
sudo sysctl -w kern.ipc.maxsockbuf=33554432

🚀 Launch a Shred Stream

Need a feed? Launch a Solana Shred Stream on ShredStream.com — sub-millisecond delivery, multiple global regions, 5-minute setup.

🔗 Links

  • 🌐 Website: https://www.shredstream.com/
  • 📖 Documentation: https://docs.shredstream.com/
  • 🐦 X (Twitter): https://x.com/ShredStream
  • 🎮 Discord: https://discord.gg/4w2DNbTaWD
  • 💬 Telegram: https://t.me/ShredStream
  • 💻 GitHub: https://github.com/ShredStream
  • 🎫 Support: Discord
  • 📊 Benchmarks: Discord

📄 License

MIT — ShredStream.com