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

@rpc-relay/pro

v1.6.6

Published

Local low-latency accelerator for RPC Relay Pro

Readme

rpc-relay-pro

Local accelerator for RPC Relay Pro. Requires Node.js 22 or newer and a Pro or Pro+ token.

The local cache accelerator is included in Pro and Pro+.

Version 1.1 adds:

  • zero-network warm reads with foreground leakage counters;
  • fixed-size, randomized, padded miss batches;
  • cache keys bound to observed block number/hash;
  • multi-upstream safe-head validation and 64-block finality policy;
  • reorg invalidation and bounded stale-if-error behavior;
  • access-pattern learning and background predictive prefetch.
curl -fsSL https://rpc-relay.pages.dev/install.sh | sh
rpc-relay-pro setup                       # Ethereum Mainnet (backward compatible)
rpc-relay-pro setup --chain base          # Base Mainnet (chain ID 8453)
rpc-relay-pro setup --chain arbitrum      # Arbitrum One
rpc-relay-pro setup --chain optimism      # OP Mainnet
rpc-relay-pro setup --chain polygon       # Polygon PoS

Interactive terminals may omit PRO_TOKEN; the setup wizard requests it without echoing. Setup stores configuration with owner-only permissions, installs the active version under ~/.rpc-relay-pro/versions, starts the accelerator, waits for /health, and validates a real eth_blockNumber response.

Commands:

rpc-relay-pro doctor
rpc-relay-pro integrations
rpc-relay-pro restart
rpc-relay-pro benchmark
rpc-relay-pro audit
rpc-relay-pro mcp-config
rpc-relay-pro mcp
rpc-relay-pro stop
rpc-relay-pro start

The accelerator serves one explicitly configured network at a time. Ethereum, Base, Arbitrum, Optimism, and Polygon use different WebSocket routes and persisted cache files; chain identity is included in every cache key. Re-run setup with --chain <name> to switch networks.

Pro also exposes rpc_relay_simulateTransaction, which runs eth_call, gas estimation, and access-list construction without signing or submitting the transaction. Trace methods are forwarded when the selected upstream supports them. Transaction submission remains disabled by default.

Every localhost RPC response includes X-RPC-Chain, X-RPC-Chain-Id, X-Cache-Status, X-Local-Proxy-Ms, and X-RPC-Data-Age-Ms. Treat local lookup latency and data freshness as separate measurements. For timing-sensitive logic, reject responses whose chain, cache state, or age exceeds the strategy's explicit budget.

Proof benchmark:

npm run benchmark:moat
npm run test:accelerator-correctness

Local endpoints:

  • JSON-RPC: POST http://127.0.0.1:8545/
  • Health: GET http://127.0.0.1:8545/health
  • Prometheus metrics: GET http://127.0.0.1:8545/metrics
  • Redacted diagnostics: GET http://127.0.0.1:8545/diagnostics

Cache state is persisted atomically to ~/.rpc-relay-pro/cache.json every 30 seconds and during graceful SIGINT/SIGTERM shutdown.

Local MCP server

rpc-relay-pro mcp exposes allowlisted read-only EVM RPC, health, and diagnostics over MCP stdio for the configured Ethereum or Base network. It talks only to localhost; the Pro token remains in the accelerator's owner-only config and never appears in MCP messages. Run rpc-relay-pro mcp-config for copy-ready client configuration.

The MCP surface does not provide funding rates, volatility/ATR calculations, trade signals, signing, transaction submission, slippage protection, or stop management. Pair it with independent market and on-chain signal sources, timestamp every input, and let the execution system enforce freshness, liquidity, gas, and slippage limits.