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

@prb/effect-evm

v2.1.0

Published

Effect-TS integration for Ethereum Virtual Machine (EVM) frontend development

Readme

effect-evm

MIT License Effect viem

[!WARNING]

This is experimental, beta software. It is provided "as is" without warranty of any kind, express or implied.

Type-safe, composable EVM abstractions for Effect, built on viem.

Banner

📦 Installation

bun add @prb/effect-evm

Peer dependencies

  • effect@^3.19.11
  • @effect/platform@^0.93.7
  • viem@^2.0.0
  • Optional: @wagmi/core@^2.0.0 (for effect-evm/wagmi)
  • Optional: react@>=18.2.0, react-dom@>=18.2.0 (for effect-evm/react-hooks)

🚀 Usage

import { Effect } from "effect";
import { mainnet } from "viem/chains";
import { ContractReader, erc20Abi, makeEffectEvmLayer, type ChainConfig } from "effect-evm";

// 1. Configure chains
const configs: ChainConfig[] = [{ chainId: 1, chain: mainnet, rpcUrls: ["https://rpc.example"] }];

// 2. Create the layer
const EvmLayer = makeEffectEvmLayer(configs, window.ethereum);

// 3. Use services
const program = Effect.gen(function* () {
  const reader = yield* ContractReader;
  return yield* reader.read({
    chainId: 1,
    address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    abi: erc20Abi,
    functionName: "balanceOf",
    args: ["0x..."],
  });
});

// 4. Run
Effect.runPromise(program.pipe(Effect.provide(EvmLayer)));

✨ Features

  • ContractsContractReader (multicall), ContractWriter, ContractPipeline, typedContract
  • TransactionsTxManager with reactive state tracking
  • EventsEventStream, ReliableEventStream (confirmations + reorg filtering)
  • Chain utilitiesBalanceService, BlockService, GasService, NonceService
  • Deploy + NFTsDeployService, Erc721Service
  • Signatures + simulationSignatureService, SimulationService (Tenderly)
  • SubscriptionsSubscriptionService (blocks/logs/pending tx)
  • EIP-7702 — Delegation and atomic batching for EOAs
  • React hookseffect-evm/react-hooks (primitives + convenience hooks)
  • Safe App + Safe multisiguseIsSafeAppContext, useIsHostSafeApp, useIsSafeMultisigWallet
  • Wagmi integrationeffect-evm/wagmi (build layers from wagmi config)
  • Browser persistencebrowser namespace (localStorage-backed stores)
  • Testingeffect-evm/testing-kit (mocks + makeEffectEvmTestLayer)

⚙️ Write Preflight Modes

ContractPipeline.writeAndTrack / writeAndWait now support per-call preflight strategy:

  • strict (default): estimate + simulate, fail on either
  • best-effort: continue on GasEstimationError / SimulationFailedError
  • none: skip estimate/simulate and submit directly

best-effort only relaxes preflight; submission/receipt/decode errors still fail normally.

Recommended usage:

  • Keep strict for create, batch, or high-cost writes.
  • Consider best-effort for simple withdraw/claim flows.
  • Use none only when your UX intentionally prefers wallet-first submission.

🧾 Terminal Outcomes

ContractPipeline.writeAndWait and writeAndTrack(...).terminal now return a terminal union:

  • { _tag: "success", hash, receipt, events }
  • { _tag: "queued", reference?, reason?, details? }
  • { _tag: "cancelled", reference?, reason?, details? }

Only operational errors (preflight/submission/receipt/decode) use Effect.fail.

📖 Documentation

📄 License

MIT