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

@usebutr/ledger

v2.0.1

Published

Ledger hardware-wallet adapter for butr (EVM + SVM + Sui + Bitcoin).

Readme

@usebutr/ledger

Ledger hardware-wallet adapter for butr (EVM + SVM + Sui + Bitcoin).

Part of butr, a multi-chain wallet discovery and connection-state library. Your application owns the picker UI and chain client.

Install

npm install @usebutr/core @usebutr/ledger @ledgerhq/hw-transport-webusb @ledgerhq/hw-app-eth zustand

WebUSB needs a Chromium browser and a user gesture for device access. Each platform's Ledger app package is an optional peer loaded on first connect: @ledgerhq/hw-app-eth (EVM), @ledgerhq/hw-app-solana (SVM), @ledgerhq/hw-app-sui (Sui) or @ledgerhq/hw-app-btc (Bitcoin). Install the ones you use.

Usage

Factories resolve an adapter, so hand them to the manager through fromAdapters:

import { EVM_CHAINS, fromAdapters } from "@usebutr/core";
import type { WalletManagerConfig } from "@usebutr/core";
import { createLedgerAdapter } from "@usebutr/ledger";
import { autoDiscovery } from "@usebutr/wallets";

const config: WalletManagerConfig = {
  sources: [
    autoDiscovery(),
    fromAdapters(
      Promise.all([
        createLedgerAdapter({ chainId: EVM_CHAINS.sepolia.id, id: "ledger-evm", platform: "evm" }),
        createLedgerAdapter({ accountCount: 3, id: "ledger-svm", platform: "svm" }),
      ]),
    ),
  ],
};

connect() opens the WebUSB prompt and reads accountCount addresses from the device, active first. chainId is a CAIP-2 id and defaults to the platform's mainnet. Ledger apps have no network switch, so there is no switchChain: build one adapter per chain.

A Ledger signs; your chain client owns RPC and broadcast. There is no sendTx, getBalance or subscribe. What each adapter defines:

  • EVM: signMessage (EIP-191 r || s || v).
  • SVM: signMessage and signTransaction, which resolves the whole signed transaction (legacy or v0).
  • Sui: signTransaction on BCS transaction bytes.
  • Bitcoin: signMessage (BIP-137 compact signature) and signTransaction on PSBT bytes.

Pass { account } to sign as another exposed account; an account the device did not expose rejects. For anything else, getSigner() hands back the device app:

const signer = await wallet.connector.getSigner();
if (signer.kind === "ledger-evm") {
  const { r, s, v } = await signer.app.signTransaction("44'/60'/0'/0/0", unsignedTxHex);
}

Documentation

License

MIT, copyright 2026 Pedro Filho.