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

@bufinance/web3-signin

v0.2.5

Published

Headless cross-app Web3 wallet sign-in for BUFI: EIP-6963 wallet discovery + Supabase signInWithWeb3 (EIP-4361) + Turnstile captcha. Shared by desk-v1 and defi-web-app. Source of truth lives here; both apps consume it.

Readme

@bufinance/web3-signin

Headless, cross-app Web3 wallet sign-in for BUFI. One source of truth, consumed by both desk-v1 and defi-web-app so the login surface stays DRY.

It wraps three things:

  1. EIP-6963 wallet discovery — lists the browser wallets the user actually has (MetaMask, Coinbase Wallet, Brave, …). Each wallet ships its own name + icon; nothing is hardcoded.
  2. Supabase Web3 authsignInWithWeb3 (EIP-4361 "Sign in with Ethereum"). Supabase builds the SIWE message, the wallet signs, GoTrue verifies server-side and mints the session. No custom SIWE backend.
  3. Turnstile CAPTCHA (wallet logins only) — renders the Cloudflare Turnstile widget and hands the token to signInWithWeb3 as captchaToken. No siteverify Worker — Supabase verifies the token with the secret set in its dashboard.

Install (public npm)

bun add @bufinance/web3-signin

The package ships TypeScript source; consuming Next.js apps add it to transpilePackages.

Headless core

import { subscribeWallets, getWallets, signInWithWallet } from "@bufinance/web3-signin";

React

import { useWeb3SignIn, Turnstile } from "@bufinance/web3-signin/react";

function WalletButtons({ supabase }) {
  const [token, setToken] = useState<string>();
  const { wallets, signIn, status, error, pendingRdns } = useWeb3SignIn({
    supabase,
    statement: "I accept the BUFI Terms of Service at https://bu.finance/terms",
    onSignedIn: () => location.assign("/"),
  });

  return (
    <>
      <Turnstile sitekey={process.env.NEXT_PUBLIC_TURNSTILE_SITEKEY!} onToken={setToken} />
      {wallets.map((w) => (
        <button key={w.info.rdns} disabled={!token || pendingRdns === w.info.rdns}
                onClick={() => signIn(w, token)}>
          <img src={w.info.icon} width={20} height={20} alt="" /> {w.info.name}
        </button>
      ))}
      {error && <p>{error}</p>}
    </>
  );
}

One-time project setup

  • Supabase dashboard → Authentication → Providers → Web3 Wallet → enable Ethereum.
  • Supabase dashboard → Auth → Bot & Abuse Protection → enable CAPTCHA → Turnstile → paste the Secret key.
  • Cloudflare → create a Turnstile widget for bu.finance (+ localhost); put the Sitekey in NEXT_PUBLIC_TURNSTILE_SITEKEY and the Secret in Supabase (above).
  • Both apps must point at the same Supabase project (cmrpdkvogpxyneidmtnu in prod).

Releasing

This repo is the home. Bump version, commit, tag, and publish to GitHub Packages (npm publish). Both apps pick it up via their lockfile.