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

solana-web3.js-on_steroids

v1.0.1

Published

A systems-grade resilience layer for Solana web3.js

Readme

Solana web3.js on Steroids ⚙️🧱

A systems-grade resilience layer for @solana/web3.js

Solana UX today is fragile: wallet adapters leak abstractions, RPC behavior is inconsistent, and many integrations fall short of production-grade reliability. Solana on Steroids treats crypto UX correctness as a systems problem, making network instability and RPC variability invisible to your users.

NPM Version License: MIT


🌩 The Problem: The "Fragile UX" Trap

Standard Solana dApps often suffer from:

  • Node Lag: Node A says "confirmed," but Node B (used by the app) says "not found."
  • Ghost Transactions: Transactions dropped during congestion with no clear recovery path.
  • RPC Single-Point-of-Failure: If your primary RPC provider hiccups, your entire app freezes.
  • Cryptic Errors: Raw hex logs and "Simulation failed" messages that confuse users.

💊 The Solution: Systems-Grade Resilience

This library wraps @solana/web3.js in a robust, automated engine that handles the edge cases of a high-performance blockchain.

1. Transparent RPC Failover (Proxy Pattern)

Uses a JS Proxy to wrap the Connection object. If a node failure (5xx, network error) is detected, it automatically swaps to a healthy fallback node mid-request. Your app code stays "dumb" while the infra stays smart.

2. Multi-Node Confirmation Polling

Doesn't trust a single node's word. It polls multiple RPC providers simultaneously for signature status to bypass node lag and ensure the fastest possible confirmation UI.

3. Continuous Re-broadcasting Loop

Transactions are "babysat" by an engine that refreshes blockhashes and re-broadcasts automatically until a definitive landing or expiration occurs.

4. Intelligent Simulation Parsing

Intercepts simulation logs and translates raw program errors into human-readable insights before the user even signs.


🚀 Installation

npm install solana-web3.js-on_steroids

🛠 Quick Start

import { SteroidClient } from 'solana-web3.js-on_steroids';

const client = new SteroidClient('https://api.mainnet-beta.solana.com', {
  fallbacks: [
    'https://solana-mainnet.rpc.extrnode.com',
    'https://api.alchemy.com/v2/your-key'
  ],
  maxRetries: 5,
  enableLogging: true
});

// Use it exactly like a standard @solana/web3.js Connection
const balance = await client.connection.getBalance(myPublicKey);

// Connect a wallet adapter for steroidal transactions
const steroidWallet = client.connectWallet(walletAdapter);
const signature = await steroidWallet.signAndSend(transaction);

🧬 Core Architecture

SteroidConnection

A resilient proxy for web3.js.Connection.

  • Health Heartbeat: Background pings monitor latency and uptime across all fallbacks.
  • Error classification: Distinguishes between Transient errors (retry same node) and Node Failures (failover to next node).

SteroidTransaction

The heavy-duty engine for submission and confirmation.

  • Signature Polling: Parallel checks across confirmationNodes.
  • Blockhash Refresh: Automatically re-fetches recentBlockhash if the transaction has been pending too long, preventing expiration before signing.

📜 License

MIT License. See LICENSE for details.

🤝 Contributing

We treat reliability as a first-class citizen. If you find an edge case where a transaction could be lost or an RPC error could be better handled, please open an issue or PR.