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

@halaprix/domino

v1.0.0

Published

Sequential, self-triggering on-chain reads. FSM executor for Multicall3 — reduces N×M RPC calls to M multicalls.

Readme

domino

        ┌─────────┬─────────┐
        │  ●   ●  │  ●      │
        │         │    ●    │
        │  ●   ●  │      ●  │
        └─────────┴─────────┘
   turns M calls × N steps into M multicalls

   _|                            _|
 _|_|_|    _|_|    _|_|_|  _|_|        _|_|_|      _|_|
_|    _|  _|    _|  _|    _|    _|  _|  _|    _|  _|    _|
_|    _|  _|    _|  _|    _|    _|  _|  _|    _|  _|    _|
  _|_|_|    _|_|    _|    _|    _|  _|  _|    _|    _|_|

CI npm version bundle size TypeScript MIT License

Sequential, self-triggering on-chain reads.

Quick Start

Standard multicall batches calls that are known upfront. But what about when Step 2 depends on Step 1? You either make N×M sequential RPC calls, or you make fewer calls than you could. domino solves this with an FSM executor: each step's calls are batched, and results flow into the next step automatically.

npm install @halaprix/domino

Features

  • Sequential steps: FSM executor automatically resolves state-dependent contract reads.
  • 2-step vault resolution: Built-in support for ERC4626 metadata and convertToAssets.
  • Bulk operations: Resolve N vaults or tokens in O(steps) RPC calls instead of O(N).
  • Framework-agnostic core: Works with viem, ethers v5, and ethers v6.
  • Tiny footprint: ~2.1KB gzip wrapper, tree-shakeable engines (only your chosen library is bundled).

Installation

Pick your preferred engine. The library is framework-agnostic, and unused engines are tree-shaken out.

For the v5 engine, explicitly install ethers v5 in addition to the main package:

npm install @halaprix/domino
npm install ethers@^5  # v5 engine only

Usage

viem (Recommended)

import { createPublicClient, http, mainnet } from "viem";
import { createResolver } from "@halaprix/domino/viem";

const client = createPublicClient({ chain: mainnet, transport: http() });
const resolver = createResolver(client);

// ERC20 token with owner balance
const token = await resolver.resolveErc20({
  token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  owner: "0xd8dA6BF26764cbF84d5537Bd0c02F5f6bCF9A1d9",
});
// { symbol: "USDC", decimals: 6, balance: 12345678n }

// Bulk ERC4626 vault resolution (2-step: metadata + convertToAssets)
const vaults = await resolver.resolveErc4626Bulk({
  entries: vaultAddresses.map((addr) => ({ vault: addr, owner: "0xd8d..." })),
});
// Resolves all M vaults in exactly 2 multicall rounds

ethers v6

import { BrowserProvider } from "ethers";
import { createResolver } from "@halaprix/domino/ethers-v6";

const provider = new BrowserProvider(window.ethereum);
const resolver = createResolver(provider);

const token = await resolver.resolveErc20({ token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" });

ethers v5

Requires ethers v5: npm install ethers@^5

import { providers } from "ethers";
import { createResolver } from "@halaprix/domino/ethers-v5";

const provider = new providers.Web3Provider(window.ethereum);
const resolver = createResolver(provider);

const vault = await resolver.resolveErc4626({ vault: "0x...", owner: "0x..." });

Documentation

Contributing

See our Contributing Guide for details on how to set up the repository, run tests, and submit pull requests.

License

MIT