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

@bitcoin-corporation/brc100-wallet

v0.1.0

Published

Drop-in browser client for the BRC-100 Google Wallet API — sign in with Google, get a Bitcoin SV wallet.

Readme

@bitcoin-corporation/brc100-wallet

Drop-in browser client for the BRC-100 Google Wallet API. Sign in with Google → get a Bitcoin SV wallet, in about five lines.

Maintained by The Bitcoin Corporation Ltd.

Add it to your site

Option 1 — script tag (no build step)

<div id="signin"></div>

<script src="https://YOUR-API-HOST/sdk/brc100-wallet.js"></script>
<script>
  const wallet = new BRC100Wallet({ apiBase: 'https://YOUR-API-HOST' })

  wallet.mountSignIn('#signin', {
    onReady: async (s) => {
      console.log('wallet:', s.wallet.identityKey, s.wallet.address)
      console.log('balance:', (await wallet.balance()).satoshis, 'sat')
    },
  })
</script>

That's it. mountSignIn shows the real Google button if the API has a Client ID configured, or a dev-login form otherwise.

You can also load it from a CDN once published:

<script src="https://cdn.jsdelivr.net/npm/@bitcoin-corporation/brc100-wallet"></script>

Option 2 — npm

npm install @bitcoin-corporation/brc100-wallet
import BRC100Wallet from '@bitcoin-corporation/brc100-wallet'

const wallet = new BRC100Wallet({ apiBase: 'https://YOUR-API-HOST' })
await wallet.mountSignIn('#signin', { onReady: (s) => console.log(s.wallet) })

API

const wallet = new BRC100Wallet({ apiBase, storageKey?, autoResume?, storage? })

// auth
wallet.mountSignIn(target, { onReady, onError, button })
await wallet.signInWithGoogleCredential(idToken)   // if you render your own button
await wallet.devSignIn('user-id')                  // dev only
wallet.isSignedIn()
wallet.signOut()

// wallet
await wallet.getWallet()            // { network, identityKey, address }
await wallet.balance()              // { satoshis, outputs, basket }
await wallet.outputs({ limit })     // UTXOs
await wallet.actions({ limit })     // history
await wallet.pay({ to, satoshis, description })
await wallet.sign({ data })
await wallet.encrypt({ plaintext })
await wallet.decrypt({ ciphertext })
await wallet.exportKey()            // migrate to self-custody

The session token is persisted (localStorage by default) so users stay signed in.

Publishing (maintainers)

The package is publish-ready (npm pack --dry-run ships 5 files, ~5 kB).

# one-time: create the @bitcoin-corporation org on npmjs.com, then:
npm login

cd sdk
npm publish        # publishConfig.access is already "public"

Notes:

  • The @bitcoin-corporation scope must exist as an npm org you belong to.
  • Bump version in package.json before each publish.
  • After publishing, the CDN URL works automatically: https://cdn.jsdelivr.net/npm/@bitcoin-corporation/brc100-wallet

License

MIT © The Bitcoin Corporation Ltd