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

@windstack/rpc

v2.3.4

Published

Typed Antelope RPC with endpoint verification, transaction resource estimation, finality, history, and safe transaction submission.

Readme

@windstack/rpc

Overview

@windstack/rpc provides typed Antelope node RPC, chain-verified endpoint failover, request timeouts, cancellation, strict response validation, Spring/Savanna transaction state, and Hyperion-compatible history.

Broadcast requests are not automatically retried because a transaction may already have reached the chain even when the original network response is lost.

Installation

npm install @windstack/rpc

Usage

import { RpcClient } from "@windstack/rpc";

const rpc = new RpcClient({
  endpoints: [
    "https://api.windcrypto.com",
    "https://backup.example",
  ],
  timeoutMs: 10_000,
  maxResponseBytes: 4 * 1024 * 1024,
  expectedChainId: "0123...64 hexadecimal characters...",
});

const info = await rpc.getInfo();
const account = await rpc.getAccount("alice");
const rows = await rpc.getTableRows({
  code: "vex.token",
  scope: "alice",
  table: "accounts",
});

Transaction resource computation

import { extractTransactionResourceUsage } from "@windstack/rpc";

const response = await rpc.computeTransaction({
  signatures: [],
  packed_trx: packedTransaction,
});

const usage = extractTransactionResourceUsage(response);
console.log(usage.cpuUs, usage.netBytes, usage.ramByAccount);

computeTransaction() uses the Antelope chain API to execute a transaction without broadcasting its state changes. Resource usage can then be normalized into CPU, NET, and per-account RAM deltas.

Recent finality is read from Spring and historical lookup falls back to Hyperion only when Spring reports UNKNOWN or explicitly does not support the status API:

import { AntelopeTransactionHistory, HyperionClient, SpringFinalityClient } from "@windstack/rpc";

const history = new AntelopeTransactionHistory(
  new SpringFinalityClient(rpc),
  new HyperionClient({ endpoint: "https://history.example" }),
);
const observation = await history.getTransaction(transactionId, signal);

HTTP request errors are exposed through RpcError; chain mismatches use RpcChainMismatchError; timeouts use RpcTimeoutError. Custom RPC paths do not retry unless marked { retry: "safe" }.

Security

Read requests retry only failures that may be transient. push_transaction is never retried automatically, because losing the response does not prove that the node rejected the transaction. Callers should reconcile an uncertain result before choosing to submit again.

Runtime

The package is ESM-first and requires Node.js 20.19 or newer when used directly in Node.js. It uses the standard fetch, Response, AbortController, and AbortSignal interfaces. A compatible fetch implementation can be supplied through the constructor when the runtime does not provide one globally.

License

MIT License.

Created by Gilang Ramadan. Copyright © 2026 PT WIND KRIPTOGRAFI TEKNOLOGI.