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/evm

v2.3.4

Published

Generic EVM address, JSON-RPC, EIP-1193, and EIP-6963 provider utilities.

Readme

@windstack/evm

Overview

@windstack/evm provides generic address and chain-ID normalization, a chain-verified HTTP JSON-RPC client, EIP-1193 wallet access, and EIP-6963 provider discovery.

The client uses announced EIP-6963 providers and can fall back to window.ethereum. A particular wallet is preferred only when preferredRdns is explicitly configured.

Embedded DApps can use the same EIP-1193 and EIP-6963 discovery flow through the frame provider. The DApp side binds to one exact wallet-host origin, while the wallet host binds requests to one exact iframe window and DApp origin.

Installation

npm install @windstack/core @windstack/evm

Usage

import { EvmRpcClient, createEVMClient, normalizeEvmAddress } from "@windstack/evm";

const client = await createEVMClient();
const accounts = await client.connect();
const chainId = await client.getChainId();
const address = normalizeEvmAddress(accounts[0]);

const rpc = new EvmRpcClient({
  endpoints: ["https://rpc.example", "https://backup.example"],
  expectedChainId: chainId,
  maxResponseBytes: 4 * 1024 * 1024,
});
const blockNumber = await rpc.request("eth_blockNumber", [], { retry: "safe" });

client.on("accountsChanged", (nextAccounts) => {
  console.log(nextAccounts);
});

await client.switchChain("0x1a50");

For embedded applications, install the provider in the DApp frame and host it from the wallet shell:

import {
  createEvmFrameHost,
  createEvmFrameProvider,
} from "@windstack/evm";

const provider = createEvmFrameProvider({
  parentOrigin: "https://wallet.example",
  parentWindow: window.parent,
  providerInfo: {
    uuid: "6fd3e0d4-b77c-4ab8-9a95-b9f4c80db196",
    name: "Example Wallet",
    icon: "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'/>",
    rdns: "com.example.wallet",
  },
});

const host = createEvmFrameHost({
  allowedOrigin: "https://app.example",
  sourceWindow: frame.contentWindow!,
  handleRequest: ({ method, params }) =>
    walletRequest({ method, params }),
});

Chain-specific metadata belongs in a chain package. For example, VEX EVM metadata is exported by @windstack/vexanium and can be registered with EIP-3085:

await client.addChain({
  chainId: "0x1a50",
  chainName: "VEX EVM",
  nativeCurrency: {
    name: "Vexanium",
    symbol: "VEX",
    decimals: 18,
  },
  rpcUrls: ["https://api.windcrypto.com/rpc"],
});

Security

Chain identifiers must use canonical 0x-prefixed hexadecimal values. Applications should verify the chain ID returned by a newly supplied RPC endpoint before presenting that endpoint to users or requesting wallet registration.

Runtime

The package targets browser environments with wallet providers. It forwards requests to the selected EIP-1193 provider and does not contain private-key storage or transaction-signing code of its own.

License

MIT License.

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