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

@bun-eth/components

v0.2.0

Published

Reusable Web3 UI components for Bun-Eth

Readme

@bun-eth/components

Reusable Web3 UI components for building Ethereum dApps, inspired by Scaffold-ETH 2.

Features

  • 🎨 Ready-to-use components - Address display, balance, inputs, and more
  • 🔌 Plug and play - Works with @bun-eth/hooks out of the box
  • 💅 Tailwind CSS - Styled with Tailwind, customizable
  • Accessible - Built with accessibility in mind
  • 📱 Responsive - Mobile-friendly designs

Installation

bun add @bun-eth/components @bun-eth/hooks

Components

Address Display

import { Address } from "@bun-eth/components";

<Address
  address="0x..."
  format="short" // or "long"
  size="base" // xs | sm | base | lg | xl
/>

Features:

  • ENS name resolution
  • Copy to clipboard
  • Link to block explorer
  • Blockie avatar

Balance

import { Balance } from "@bun-eth/components";

<Balance
  address="0x..."
  usdMode={false} // Toggle USD display
/>

Features:

  • Auto-refresh on new blocks
  • USD conversion toggle
  • Loading and error states

BlockieAvatar

import { BlockieAvatar } from "@bun-eth/components";

<BlockieAvatar
  address="0x..."
  size={24}
/>

Generates a unique, deterministic avatar for any Ethereum address.

Faucet

import { Faucet, FaucetButton } from "@bun-eth/components";

// As a button
<FaucetButton />

// As a modal
<Faucet onClose={() => {}} />

Local faucet for Anvil development network. Sends test ETH to any address.

Input Components

AddressInput

import { AddressInput } from "@bun-eth/components";

<AddressInput
  value={address}
  onChange={setAddress}
  placeholder="0x..."
/>

With built-in validation for Ethereum addresses.

EtherInput

import { EtherInput } from "@bun-eth/components";

<EtherInput
  value={amount}
  onChange={setAmount}
  usdMode={false}
/>

Amount input with USD conversion toggle.

IntegerInput

import { IntegerInput } from "@bun-eth/components";

<IntegerInput
  value={value}
  onChange={setValue}
  variant="uint256" // uint8 | uint16 | uint32 | uint64 | uint128 | uint256 | int256
/>

Integer input with variant-specific validation and wei conversion button.

NetworksDropdown

import { NetworksDropdown } from "@bun-eth/components";

<NetworksDropdown />

Dropdown to switch between configured networks.

Styling

All components use Tailwind CSS classes. You can customize by:

  1. Overriding with className prop (where supported)
  2. Extending Tailwind config with your theme
  3. Using CSS modules for complete custom styling

Example Usage

import {
  Address,
  Balance,
  FaucetButton,
  NetworksDropdown
} from "@bun-eth/components";
import { useAccount } from "wagmi";

function Header() {
  const { address } = useAccount();

  return (
    <div className="flex items-center justify-between p-4">
      <h1>My dApp</h1>

      <div className="flex items-center gap-4">
        <NetworksDropdown />
        {address && (
          <>
            <Balance address={address} />
            <Address address={address} format="short" />
          </>
        )}
        <FaucetButton />
      </div>
    </div>
  );
}

Requirements

  • React 18.2+ or React 19+
  • Tailwind CSS 3.4+
  • wagmi ^2.16.4
  • viem ^2.7.8
  • @bun-eth/hooks (workspace)

License

MIT