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

@heightproof/web3

v0.1.1

Published

Detect EVM RPC failures that return 200 OK: wrap an EIP-1193 provider or viem transport and report every call to Heightproof.

Downloads

190

Readme

@heightproof/web3

Report every EVM JSON-RPC call your application makes to a self-hosted Heightproof instance, which detects the provider failures that still return 200 OK: stale chain heads, providers disagreeing at the same block height, JSON-RPC errors inside success responses, reorg lag, and rate limiting disguised as success.

npm install @heightproof/web3

Wrap an EIP-1193 provider

import { wrapEip1193Provider } from "@heightproof/web3";

const provider = wrapEip1193Provider(window.ethereum, {
  projectId: "my-project",
  apiKey: process.env.HEIGHTPROOF_API_KEY!,
  endpoint: "https://heightproof.internal",
  chainId: 1,
  provider: "alchemy"
});

Or use the viem transport

import { createPublicClient } from "viem";
import { mainnet } from "viem/chains";
import { heightproofTransport } from "@heightproof/web3";

const client = createPublicClient({
  chain: mainnet,
  transport: heightproofTransport({
    projectId: "my-project",
    apiKey: process.env.HEIGHTPROOF_API_KEY!,
    endpoint: "https://heightproof.internal",
    rpcUrl: process.env.EVM_RPC_URL!,
    chainId: 1,
    provider: "alchemy"
  })
});

createHeightproofRpcClient(options) gives the same recording around a plain request() call when you are not using viem or an injected provider.

What it records

Method, chain, provider label, latency, status, the block the call resolved against, a hash of the normalized result, its shape (value, null, empty_array, empty_data, error_in_body), any JSON-RPC error code, and whether the response looked like rate limiting. Raw results are not sent.

Your RPC URL never leaves your process: Heightproof receives a hash of the endpoint, never the URL, because provider URLs embed API keys.

Cross-provider verification

Off unless configured, because it sends real requests to the endpoints you name:

wrapEip1193Provider(provider, {
  // ...
  verify: {
    endpoints: [{ rpcUrl: process.env.SECONDARY_RPC_URL!, provider: "infura" }],
    sampleRate: 0.01, // fraction of deterministic reads to re-check
    maxCallsPerMinute: 60 // hard ceiling on extra requests
  }
});

Sampled reads are re-issued against every endpoint pinned to the same block height, so a mismatch is a real disagreement rather than head skew. Verification runs after your call returns and never delays or fails it.

Delivery

Events are batched in memory and sent every 5 seconds or every 25 events. Recording never blocks or throws into your RPC calls. If Heightproof is unreachable, batches are retried; the in-memory queue is capped (5,000 events by default, oldest dropped first) so an outage costs telemetry, not your application's memory. Batches the server rejects outright (bad key, invalid payload) are dropped rather than retried forever.

License

MIT