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 🙏

© 2025 – Pkg Stats / Ryan Hefner

privy-wallet-kit

v0.0.3

Published

[![npm version](https://img.shields.io/npm/v/privy-wallet-kit.svg?style=flat-square)](https://www.npmjs.com/package/privy-wallet-kit) [![npm downloads](https://img.shields.io/npm/dm/privy-wallet-kit.svg?style=flat-square)](https://www.npmjs.com/package/pr

Readme

Privy Wallet Kit 🛠️

npm version npm downloads License

Privy Wallet Kit is an open-source React UI component library designed specifically for Privy Embedded Wallets.

It provides developers with "drop-in" components (like Token Lists, Transfer Forms, Transaction History) so you don't have to rebuild the UI for Privy's headless wallet system from scratch.

🚧 Status: Active Development - This library is currently in early alpha.

🌟 Features

  • 🧩 Drop-in UI Components: Ready-to-use components for common wallet operations.
  • 🎣 Headless Hooks: Logic is separated from UI. Use our hooks (useWalletBalance, useTransfer) to build your own custom UI if needed.
  • 🎨 Shadcn-like Architecture: Built with Tailwind CSS. Components are fully customizable via className and designed to be copied/pasted or imported directly.
  • ⚡ Powered by Viem: Robust and type-safe blockchain interactions.
  • 🔌 Network Management: Built-in NetworkSwitcher and multi-chain support.
  • ⛽ Gas Estimation: Automatic gas fee estimation for transactions.
  • 🔐 Zero Global State: Relies on Privy's context. No Redux or Zustand required.

📦 Installation

You can find the package on npm.

npm install privy-wallet-kit
# Peer dependencies
npm install @privy-io/react-auth viem react react-dom

🚀 Usage

1. Setup Privy Provider

Ensure your app is wrapped in the PrivyProvider from @privy-io/react-auth.

import { PrivyProvider } from '@privy-io/react-auth';

export const App = () => {
  return (
    <PrivyProvider
      appId="your-privy-app-id"
      config={{
        embeddedWallets: {
          createOnLogin: 'users-without-wallets',
        },
      }}
    >
      <YourApp />
    </PrivyProvider>
  );
};

2. Use Hooks (Headless)

import { useWalletBalance, useNetwork, useTransfer } from 'privy-wallet-kit';

const MyWallet = () => {
  const { balance } = useWalletBalance();
  const { chainId, switchNetwork } = useNetwork();
  const { estimateGas, sendTransaction } = useTransfer();

  return (
    <div>
      <p>Balance: {balance} ETH</p>
      <p>Network: {chainId}</p>
      <button onClick={() => switchNetwork(1)}>Switch to Mainnet</button>
    </div>
  );
};

3. Use Components

import { TokenList, TransferForm, NetworkSwitcher } from 'privy-wallet-kit';
import 'privy-wallet-kit/dist/style.css'; // Import styles

const WalletPage = () => {
  return (
    <div className="p-4 max-w-md mx-auto space-y-4">
      <NetworkSwitcher />
      <TokenList />
      <TransferForm
        onReview={(details) => console.log(details)}
        onCancel={() => console.log('cancelled')}
      />
    </div>
  );
};

🗺️ Roadmap

  • [x] Phase 1: Project Scaffolding - Vite library mode, Tailwind setup.
  • [x] Phase 2: Core Hooks - useWalletBalance, useAssetList, useTransfer (with Gas Est).
  • [ ] Phase 3: UI Components - TokenList, AssetCard, TransferCard.
  • [ ] Phase 4: Utilities - Formatting helpers.

🛠️ Tech Stack

  • React 18+
  • Tailwind CSS
  • @privy-io/react-auth
  • Viem
  • Lucide React

📄 License

MIT

privy-wallet-kit