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

@zerodev/wallet-react-ui

v0.0.11

Published

React wallet UI kit for ZeroDev (auth + signing flows)

Readme

@zerodev/wallet-react-ui

React wallet UI kit for ZeroDev — a drop-in authentication flow built on top of a standard wagmi setup, plus an enhanced wagmi connector that drives it.

Mount one component, get a full embedded-wallet sign-in experience: a multi-step screen for passkey / email / Google. UI styling comes from @zerodev/react-ui.

Installation

pnpm add @zerodev/wallet-react-ui \
  @zerodev/wallet-core @zerodev/wallet-react \
  wagmi viem @wagmi/core @tanstack/react-query zustand

@zerodev/wallet-core, @zerodev/wallet-react, wagmi, viem, @wagmi/core, @tanstack/react-query, and zustand are peer dependencies — install them alongside this package.

Setup

1. Add the connector to your wagmi config

import { zeroDevWallet } from '@zerodev/wallet-react-ui'
import { createConfig, http } from 'wagmi'
import { sepolia } from 'wagmi/chains'

export const config = createConfig({
  chains: [sepolia],
  connectors: [
    zeroDevWallet({
      projectId: 'your-project-id', // from https://dashboard.zerodev.app
      chains: [sepolia],
    }),
  ],
  transports: { [sepolia.id]: http() },
})

2. Import the stylesheet once at app entry

import '@zerodev/wallet-react-ui/styles.css'

3. Wrap your app in the wagmi + React Query providers

import { WagmiProvider } from 'wagmi'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { config } from './wagmi-config'

const queryClient = new QueryClient()

function Root() {
  return (
    <WagmiProvider config={config}>
      <QueryClientProvider client={queryClient}>
        <App />
      </QueryClientProvider>
    </WagmiProvider>
  )
}

Usage

Mount <ConnectWallet /> to render the active sign-in screen. Connecting via the zeroDevWallet connector is what opens the auth flow.

import { ConnectWallet } from '@zerodev/wallet-react-ui'
import { useAccount, useConnect } from 'wagmi'

function App() {
  const { status } = useAccount()
  const { connect, connectors } = useConnect()

  if (status !== 'connected') {
    return (
      <>
        <button onClick={() => connect({ connector: connectors[0] })}>
          Connect
        </button>
        <ConnectWallet />
      </>
    )
  }

  return <YourApp />
}

Customizing the sign-up page

Bare <ConnectWallet /> renders the canonical sign-up page (passkey → Google → email). Which methods appear — and how — is decided by composition, not config.

Keep the default page and set its options:

<ConnectWallet
  logo={<YourLogo />}
  renderSignUp={() => (
    <SignUp.Default
      emailAuthMethod="otp" // 'magicLink' (default) | 'otp'
      termsAndConditionsUrl="https://example.com/terms"
      privacyPolicyUrl="https://example.com/privacy"
    />
  )}
/>

Or compose the page yourself from the SignUp.* units:

import { ConnectWallet, SignUp } from '@zerodev/wallet-react-ui'

<ConnectWallet
  renderSignUp={() => (
    <SignUp emailAuthMethod="otp" termsAndConditionsUrl="https://example.com/terms">
      <SignUp.Google />
      <SignUp.Divider />
      <SignUp.Email />
    </SignUp>
  )}
/>
  • <SignUp> (the root) owns the shared page state and the consent gate: when either terms URL is set, a checkbox appears and every method is blocked until the user agrees. emailAuthMethod picks the email verification flow.
  • Units: SignUp.Passkey, SignUp.Google, SignUp.Email, SignUp.Wallet, SignUp.InstalledWallets, SignUp.MoreWallets, SignUp.Divider. Order and presence are yours; while one method is in flight, the others disable themselves.
  • SignUp.Wallet pins one external wallet as its own row. walletId is the WalletId union (e.g. 'metamask', 'coinbase', 'rabby'); the row connects the wallet when a live connector claims it (browser extension or a configured SDK connector) and is a link to the vendor's download page otherwise.
  • SignUp.InstalledWallets auto-discovers installed wallets: one row with an INSTALLED badge per announced (EIP-6963) browser extension, and nothing when none are installed. Wallets pinned via SignUp.Wallet are excluded automatically; excludeWalletIds hides further wallets by guide id or rdns, and maxWallets caps the list (default 4, known wallets ranked first).
  • SignUp.MoreWallets renders a row that opens an overlay sheet with the full wallet grid — every known wallet plus any other live connector; installed ones connect, the rest link to the vendor's download page.
  • SignUp.Default is the canonical composition; it accepts the same props as the root and forwards them.
  • Auth success/failure surfaces through wagmi — await connect, or watch useAccount().

API

| Export | Description | | --- | --- | | zeroDevWallet | wagmi connector with kit-specific auth extensions. | | <ConnectWallet /> | Renders the current auth step (sign-in, OTP, verifying, etc.). Props: logo, renderSignUp, size, onClose. | | <SignUp /> | Compound sign-up page: SignUp.Default plus the composable units (Passkey, Google, Email, Wallet, InstalledWallets, MoreWallets, Divider). | | useAuth | Read / drive the auth flow state. |

Types

AuthMethod, AuthStep, EmailAuthMethod, WalletId, ZeroDevKitConnectorParams.

Development

pnpm build       # build the package (dist + types + css)
pnpm dev         # watch mode (types)
pnpm typecheck
pnpm test        # vitest
pnpm storybook   # component catalog