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

@tomny-dev/uzi

v0.4.0

Published

Rapid-fire React UI components. Ship faster, build more.

Downloads

4,957

Readme

@tomny-dev/uzi

Rapid-fire React UI components. Ship faster, build more.

Install

pnpm add @tomny-dev/uzi

Usage

import { Button, Card, Modal, ThemeProvider, useToast } from "@tomny-dev/uzi";

If you want the packaged component styles, import the exported stylesheet once in your app:

@import "@tomny-dev/uzi/styles.css";

Storybook

Uzi includes Storybook as the interactive component catalog for exploring components, variants, states, and composition patterns.

To run Storybook locally:

pnpm install
pnpm storybook

Then open http://localhost:6006.

To verify the production Storybook build:

pnpm build-storybook

The static output is written to storybook-static/. Story files live beside their components under src/components/** using the *.stories.tsx naming convention.

CI builds Storybook on every pull request and push to main. After changes land on main, the Storybook deployment workflow publishes storybook-static/ to the uzi-storybook Cloudflare Pages project. The deployment workflow requires these repository secrets:

  • CLOUDFLARE_API_TOKEN — API token with Pages Write permission.
  • CLOUDFLARE_ACCOUNT_ID — Cloudflare account identifier.

The Cloudflare Pages project should use main as its production branch. A custom domain such as uzi.tomny.dev can be attached to that Pages project after the project exists.

Using With Coding Agents

Installing @tomny-dev/uzi in an app does not by itself cause Claude Code, Codex, or similar agents to prefer uzi components. You should add that policy to the consumer repo's agent guidance.

Recommended snippet for the consumer repo's CLAUDE.md, AGENTS.md, or equivalent:

## UI Components

- Prefer `@tomny-dev/uzi` for shared UI primitives and layout components.
- Check `uzi` before creating new local primitives such as buttons, inputs, labels, cards, modals, selects, dropdown menus, alerts, shells, navigation, and theme controls.
- Only introduce a repo-local primitive when `uzi` lacks the required behavior or when the local file is intentionally app-specific composition.
- Keep imports consistent with the surrounding area of the codebase. If the repo already uses thin wrappers around `uzi`, follow that local pattern.

If you want agents to discover props and examples directly, also configure the uzi MCP server. See mcp/README.md.

Themes

uzi ships with built-in light/dark tokens and a small accent palette layer.

"use client";

import { Button, ThemeProvider, useTheme } from "@tomny-dev/uzi";

function ThemeToggle() {
  const { resolvedTheme, toggleTheme, accent, setAccent } = useTheme();

  return (
    <div>
      <Button onClick={toggleTheme}>
        {resolvedTheme === "dark" ? "Switch to light" : "Switch to dark"}
      </Button>
      <Button variant="outline" onClick={() => setAccent(accent === "violet" ? "blue" : "violet")}>
        Toggle accent
      </Button>
    </div>
  );
}

export function App() {
  return (
    <ThemeProvider defaultTheme="system" defaultAccent="blue">
      <ThemeToggle />
    </ThemeProvider>
  );
}

Supported themes:

  • light
  • dark
  • system

Supported accent palettes:

  • blue
  • cyan
  • violet
  • emerald
  • amber
  • rose

Component Philosophy

uzi is not meant to be a from-scratch accessibility framework.

  • Use native HTML for simple form controls when the platform already gives the right behavior.
  • Use Radix for interaction-heavy primitives such as menus, dialogs, popovers, toasts, and custom selects.
  • Use uzi for the public component API, styling, tokens, and higher-level templates like TopBar, SidebarNav, and AppShell.

In practice, uzi should spend its complexity budget on reusable app scaffolding and cohesive design, not on rebuilding low-level widget behavior that Radix or the browser already solves.

Components

| Component | Description | |---|---| | Avatar | Profile image with fallback states | | Button | Primary, secondary, outline, ghost variants | | Card | Surface container with tone/padding control | | Checkbox | Checkbox form primitive | | Input | Text input primitive | | Label | Form label primitive | | MultiSelect | Custom multi-option picker with checkbox-style menu | | Pill | Inline badge/tag | | Modal | Radix-backed overlay dialog | | Select | Styled Radix-based single-select field | | Dropdown | Deprecated compatibility alias for Select | | DropdownMenu | Radix-based action menu primitives | | AppShell | Responsive layout with collapsible sidebar | | SidebarNav | Sidebar navigation list | | TopBar | Composable header shell for brand, nav triggers, and actions | | PageContainer | Centered responsive page-width container with configurable max width | | PageHeader | Page title, eyebrow, description, and action composition | | SectionHeader | Reusable section title, description, and actions | | EmptyState | Empty-result/resource state with visual and action slots | | Stack / Inline | Small gap/alignment layout helpers for common composition | | Stat / StatGroup | Domain-agnostic summary value and responsive stat grouping | | ThemeToggleButton | Reusable light/dark toggle wired to ThemeProvider | | ThemeProvider / useTheme | Light/dark + accent palette theming | | ToastProvider / useToast | Radix-backed toast notification system |

TopBar supports:

  • brandingLocation="left" | "center"
  • isSticky={true | false}
  • showThemeToggle
  • themeToggleProps

Documentation

SSR Notes

This package bundles CSS inline into the JavaScript output via vite-plugin-css-injected-by-js. At runtime, a <style> tag is injected into the document head so consumers do not need to import ./styles.css for client-side rendering.

If your app uses SSR (Next.js, Remix, etc.), the injected <style> tag won't run on the server, so there may be a brief flash of unstyled content on the first client render. Consumers who need SSR-safe styles should continue importing the separate stylesheet:

@import "@tomny-dev/uzi/styles.css";

Next.js App Router

The main @tomny-dev/uzi entry is a client entry because it exports interactive components and React context providers. Next.js Server Components can import and render these exports; Next.js will preserve the client boundary without requiring a local wrapper.

The application-scaffolding components themselves do not use hooks or browser-only APIs, but they remain exposed through the main client entry in this release. A separate server-safe layout entry can be considered later if consumer measurements justify the added package surface.

Use @tomny-dev/uzi/server for the server-safe getThemeScript export. Use @tomny-dev/uzi/utils for environment-neutral utilities such as cx, including calls made directly from Server Components.

Notes

  • No Tailwind — components use CSS modules internally
  • "use client" is handled by the bundle — no need to wrap imports
  • react and react-dom are peer dependencies, provided by your app