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

@ethernauta/op

v0.0.48

Published

OP-Stack support for Ethernauta — bridge verbs, 18 predeploys, per-chain L1 deploys, op-node RPC, fee estimation.

Readme

bundlejs

Philosophy

OP-Stack–specific primitives. Op-node JSON-RPC methods, the L1-calldata fee model, the predeploy contract bindings, per-chain L1 deployment registry, and the L1↔L2 bridge verbs — everything that's true of every OP-Stack rollup (Optimism, Base, Mode, Zora, Worldchain, Soneium, Lisk) but isn't part of L1 Ethereum.

The Yellow-Paper substrate — accounts, EVM, RLP, EIP-1559, the eth_* method surface — stays in @ethernauta/eth. This package is the layer on top.

Modules

API

Op-node RPC — Readable<T>

import {
  optimism_outputAtBlock,
  optimism_rollupConfig,
  optimism_syncStatus,
  optimism_version,
} from "@ethernauta/op"

Surface mirrors the op-node spec — output roots, rollup config, sync state — and rides the same Readable<T> shape as eth_*.

Fees

import { estimate_op_fees } from "@ethernauta/op"

const fees = await estimate_op_fees({
  tx: { to, value, input },
  base_fee_multiplier: 1.5,
  priority_percentile: 10,
})(reader({ chain_id }))

// { base_fee_per_gas, max_priority_fee_per_gas, max_fee_per_gas, l1_fee }

estimate_op_fees composes eth_feeHistory + eth_maxPriorityFeePerGas + the GasPriceOracle predeploy at 0x420…000F so consumers get the 1559 triple plus the L1 calldata surcharge in one call. Relocated here from the (now retired) @ethernauta/gas package.

Predeploys

import {
  GasPriceOracle,
  L1Block,
  L2StandardBridge,
  L2CrossDomainMessenger,
  L2ToL1MessagePasser,
} from "@ethernauta/op/predeploys"

Method bindings against the fixed-address contracts at 0x420…Callable<T> for view methods, Signable<T> for state changes. Pinned to op-contracts/v6.0.0.

Per-chain L1 deploys

import { require_deploy_addresses } from "@ethernauta/op"
import { eip155_8453 } from "@ethernauta/chain/eip155-8453"

const deploys = require_deploy_addresses(eip155_8453)
// { OptimismPortal, DisputeGameFactory, AnchorStateRegistry,
//   L1StandardBridge, L1CrossDomainMessenger, BatcherInbox, … }

Returns the L1 deployment addresses for every supported OP-Stack chain. Spec-anchored optional fields (fault-proof set) tag chains pre-/post-fault-proof migration.

Bridge verbs — Bridgeable<T>

import {
  send_eth,
  send_erc20,
  send_message,
  start_withdraw_eth,
  start_withdraw_erc20,
  start_withdraw_message,
  prove_withdraw,
  execute_withdraw,
  fetch_message_proof,
  get_status,
} from "@ethernauta/op/bridge"

import { create_bridge } from "@ethernauta/transport"

const bridge = create_bridge(CHAINS)({
  l1_chain_id: ETH_MAINNET,
  l2_chain_id: BASE,
})

const hash = await send_eth({
  to: recipient,
  value: parse(UintSchema, "0x..."),
})(bridge.signer)

The bridge surface covers both deposit (L1 → L2) and the three-phase withdraw (start on L2, prove on L1 after the output root is published, execute on L1 after the dispute window). get_status walks the fault-dispute state machine and fetch_message_proof derives the merkle witness from on-chain state — no hosted indexer (M4).

Errors are typed: revert payloads from the OptimismPortal / DisputeGameFactory / FaultDisputeGame contracts decode into a discriminated OpBridgeError union.

Solidity sources

The vendored OP contracts (op-contracts/v6.0.0) live colocated under packages/op/src/bridge/<contract>/ and packages/op/src/predeploys/<contract>/. pnpm pull-contracts refreshes them from the upstream repo; pnpm pull-superchain-registry refreshes the per-chain L1 deploys registry.