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

csm-dev-wallet

v1.5.1

Published

Chrome extension for QA testing Lido CSM widget — connect as any operator address

Downloads

497

Readme

CSM Dev Wallet

Chrome extension for testing the Lido CSM widget. Connect to any dapp as any CSM operator address — no private keys needed.

Injects an EIP-1193 provider (window.ethereum) so the dapp sees it as a regular wallet.

Features

  • Browse all CSM/CM operators with search by ID or address
  • Connect as manager, rewards, or proposed address
  • Favorites operators
  • Manual address entry + Anvil built-in accounts
  • Optional signing approval modal (Anvil only)
  • Configurable RPC endpoints

Networks

| Network | Signing | |---------|---------| | Ethereum Mainnet | Watch-only (signing blocked) | | Hoodi Testnet | Watch-only (signing blocked) | | Anvil Local Fork | Full signing via impersonation |

Anvil fork source is auto-detected.

Install

Option 1: Pre-built (recommended)

  1. Download the latest .zip from Releases
  2. Unzip and load unpacked in chrome://extensions (enable Developer mode)

Option 2: Build from source

git clone https://github.com/exromany/csm-dev-wallet.git
cd csm-dev-wallet
npm install
npm run build

Load unpacked from .output/chrome-mv3/.

Usage

  1. Click extension icon to open popup
  2. Select network (top right)
  3. Browse operators or switch to Manual tab for arbitrary addresses
  4. Click an address to connect — the dapp will see it as the active wallet
  5. For signing (transactions, typed data), use an Anvil fork

Development

Requires Node >= 24.

For dev mode with hot reload: npm run dev, load from .output/chrome-mv3-dev/.

| Command | Description | |---------|-------------| | npm run dev | WXT dev mode with hot reload | | npm run build | Production build | | npm run test | Run tests | | npm run test:e2e | Build + Playwright e2e tests | | npm run lint | Lint with oxlint | | npm run typecheck | TypeScript check | | npm run build:package | Build extension + playwright helpers → dist/ |

Playwright Testing API

This extension ships as an npm package with a Playwright helper for dapp e2e tests. Install it and get a programmable wallet with zero manual interaction.

Launch

import { launch } from 'csm-dev-wallet/playwright';

const { context, wallet } = await launch();
// For local dev: launch({ extensionPath: '.output/chrome-mv3' })

launch() starts Chromium with the extension loaded and returns a WalletController bound to the service worker.

Setup (before page navigation)

Talks directly to the service worker — call before navigating to the dapp.

await wallet.setup({
  origin: 'http://localhost:3000',
  network: 1,                        // chainId
  account: '0x...',                  // auto-connects, no popup
  signingMode: 'approve',           // 'approve' | 'reject' | 'error' | 'prompt'
  operators: [...],                  // optional: seed operator cache
  moduleAvailability: { csm: true, cm: false }, // optional
});

Page control (mid-test)

These methods call wallet_test* RPC via window.ethereum on the given page.

await wallet.switchAccount(page, '0xNew');     // emits accountsChanged
await wallet.switchNetwork(page, 560048);      // emits chainChanged
await wallet.setSigningMode(page, 'reject');   // next sign → 4001
await wallet.disconnect(page);                 // emits accountsChanged([])
const state = await wallet.getState(page);     // current wallet state

Operator queries (mid-test)

Read cached operators, look up a single operator, or select an account by operator+role.

const ops = await wallet.getOperators(page);              // all cached operators
const ops = await wallet.getOperators(page, 560048, 'cm'); // explicit chain/module

const op = await wallet.getOperator(page, '42');           // single operator by ID

await wallet.selectOperator(page, '42', 'manager');        // set manager address as active
await wallet.selectOperator(page, '42', 'rewards');        // set rewards address
await wallet.selectOperator(page, '42', 'proposedManager'); // set proposed manager

RPC & operator refresh (mid-test)

Configure RPC endpoints and refresh operator data from chain.

await wallet.setRpcUrl(page, 1, 'https://my-rpc.example.com');   // set mainnet RPC
await wallet.setRpcUrl(page, 31337, 'http://127.0.0.1:9545');    // set anvil RPC

const ops = await wallet.refreshOperators(page);                  // refetch from RPC
const ops = await wallet.refreshOperators(page, 560048, 'cm');    // explicit chain/module
const ops = await wallet.refreshOperators(page, 1, 'csm', rpcUrl); // with RPC override

Signing modes

| Mode | Behavior | |---|---| | approve | Auto-sign via Anvil impersonation, no popup | | reject | Auto-reject with code 4001 (user denied) | | error | Simulate RPC failure with code -32603 | | prompt | Normal popup behavior (default) |

Custom RPC methods

Available on window.ethereum when the extension is loaded:

| Method | Params | Effect | |---|---|---| | wallet_testGetState | — | Returns composed wallet state | | wallet_testConnect | { address?, source? } | Connect with optional address | | wallet_testDisconnect | — | Disconnect, emit accountsChanged([]) | | wallet_testSetAccount | { address, source? } | Switch address, emit accountsChanged | | wallet_testSetNetwork | { chainId } | Switch chain, emit chainChanged | | wallet_testSetSigningMode | { mode } | Set signing behavior | | wallet_testSeedOperators | { operators, chainId, moduleType } | Inject operator cache | | wallet_testGetOperators | { chainId?, moduleType? } | Get cached operators (defaults from site state) | | wallet_testGetOperator | { operatorId, chainId?, moduleType? } | Get single operator by ID | | wallet_testSetOperatorAccount | { operatorId, role, chainId?, moduleType? } | Select operator address by role | | wallet_testSetRpcUrl | { chainId, rpcUrl } | Set custom RPC URL for a chain | | wallet_testRefreshOperators | { chainId?, moduleType?, rpcUrl? } | Refetch operators from RPC |