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

@bsv/simple

v0.2.9

Published

Simplified, modular helper library for BSV blockchain development

Readme

@bsv/simple

A high-level TypeScript library that makes BSV blockchain development simple. Build wallets, send payments, create tokens, issue credentials, and more — in just a few lines of code.

What is @bsv/simple?

@bsv/simple wraps the low-level @bsv/sdk into a clean, modular API. Instead of manually constructing locking scripts, managing key derivation, and handling transaction internalization, you call methods like wallet.pay(), wallet.createToken(), and wallet.inscribeText().

What can you build?

| Feature | Description | |---------|-------------| | Payments | Send BSV to any identity key via BRC-29 peer-to-peer payments | | Multi-Output Transactions | Combine P2PKH payments, OP_RETURN data, and PushDrop tokens in a single transaction | | Encrypted Tokens | Create, transfer, and redeem PushDrop tokens with encrypted payloads | | Inscriptions | Write text, JSON, or file hashes permanently to the blockchain | | MessageBox P2P | Send and receive payments and tokens peer-to-peer via MessageBox | | Certification | Issue and manage BSV certificates with a standalone Certifier | | Verifiable Credentials | W3C-compatible VCs backed by BSV certificates, with on-chain revocation | | DIDs | Generate and resolve did:bsv: Decentralized Identifiers | | Overlay Networks | Broadcast to and query SHIP/SLAP overlay services | | Server Wallet | Run a backend wallet for automated operations and funding flows |

Browser vs Server

The library has two entry points:

  • @bsv/simple (default) — Browser-safe. Uses WalletClient from @bsv/sdk to connect to the user's wallet on the client side. Will not pull in any server-only dependencies.
  • @bsv/simple/server — Uses @bsv/wallet-toolbox to run a server-side wallet from a private key. Used for agents, or servers receiving payments.

Both entry points provide the same API surface — the only difference is how they connect to the underlying wallet.

A taste of the API

import { createWallet } from '@bsv/simple/browser'

// Connect to the user's wallet
const wallet = await createWallet()

// Send a payment
await wallet.pay({ to: recipientKey, satoshis: 1000, memo: 'Coffee' })

// Create an encrypted token
await wallet.createToken({ data: { type: 'loyalty', points: 50 }, basket: 'rewards' })

// Inscribe text on-chain
await wallet.inscribeText('Hello BSV!')

// Get your DID
const did = wallet.getDID()
// { id: 'did:bsv:02abc...', ... }

Next Steps