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/svm

v3.0.1

Published

Wallet Standard adapter for butr (Solana / SVM).

Readme

@usebutr/svm

Wallet Standard adapter for butr (Solana / SVM).

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/react @usebutr/core @usebutr/svm zustand @wallet-standard/app

React 19 is a peer dependency of the provider. Discovery does not render a connect modal; add your picker as the provider child. @wallet-standard/app is required for Wallet Standard discovery.

Usage

import type { ReactNode } from "react";
import type { WalletManagerConfig } from "@usebutr/core";
import { discoverSvmAdapters } from "@usebutr/svm";
import { WalletManagerProvider } from "@usebutr/react";

// Every `discover*Adapters` export is a wallet source as-is.
const config: WalletManagerConfig = { sources: [discoverSvmAdapters] };

export const WalletProvider = ({ children }: { children: ReactNode }) => (
  <WalletManagerProvider config={config}>{children}</WalletManagerProvider>
);

Each adapter defines sendTx (solana:signAndSendTransaction, resolves the base58 signature), signMessage, signTransaction (resolves the signed transaction bytes) and signIn (Sign In With Solana) only when the wallet advertises the matching feature, and switchChain only when it advertises more than one Solana cluster. Wallet Standard carries the chain per call, so options.chain routes one transaction without moving the wallet. Balances and receipts need your own RPC client. Check a method's presence before calling it:

import type { ConnectedWallet } from "@usebutr/core";
import { SVM_CHAINS } from "@usebutr/core";

export const send = async (wallet: ConnectedWallet<"svm">, serializedTx: Uint8Array) => {
  if (!wallet.connector.sendTx) {
    throw new Error(`${wallet.connector.name} cannot send Solana transactions`);
  }
  return wallet.connector.sendTx(serializedTx, {
    account: wallet.account,
    chain: SVM_CHAINS.devnet,
  });
};

An account the wallet does not expose, or a chain it does not advertise, rejects. getSigner() resolves { kind: "wallet-standard", wallet }: reach any other feature with getFeature from @usebutr/wallet-standard-shared and the feature types this package exports. Chain registries (SVM_CHAINS, SVM_CHAINS_LIST) come from @usebutr/core.

@usebutr/svm/transaction exports prepareSolanaTransaction(tx, signer) for transports returning a bare signature. It exposes the serialized message and withSignature(bytes), which fills the signer's slot in a copy of the transaction. Ledger and WalletConnect share this legacy/v0 signing codec; the entry point loads no discovery code.

Documentation

License

MIT, copyright 2026 Pedro Filho.