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

@hanzo/ui

v5.3.2

Published

Multi-framework UI library with React, Vue, Svelte, and React Native support. Based on shadcn/ui with comprehensive framework coverage.

Readme

@hanzo/ui

A comprehensive UI component library for Hanzo applications, built with React and TypeScript.

Version 4.5.6

Installation

npm install @hanzo/ui
# or
pnpm add @hanzo/ui
# or
yarn add @hanzo/ui

Components

Primitives

Core UI components based on Radix UI primitives:

  • Accordion - Collapsible content panels
  • Alert - Informative alert messages
  • AlertDialog - Modal dialogs for important alerts
  • Avatar - User avatar display
  • Badge - Status and label badges
  • Breadcrumb - Navigation breadcrumbs
  • Button - Interactive buttons with variants
  • Calendar - Date picker calendar
  • Card - Container cards for content
  • Carousel - Image/content carousel
  • Checkbox - Checkbox input
  • Collapsible - Collapsible content sections
  • Combobox - Searchable select dropdown
  • Command - Command palette component
  • ContextMenu - Right-click context menus
  • Dialog - Modal dialogs
  • Drawer - Slide-out drawer panels
  • DropdownMenu - Dropdown menu component
  • Form - Form components with validation
  • HoverCard - Hover-triggered info cards
  • Input - Text input field
  • InputOTP - One-time password input
  • Label - Form labels
  • NavigationMenu - Navigation menu bar
  • Popover - Popover overlays
  • Progress - Progress indicators
  • RadioGroup - Radio button groups
  • ResizablePanel - Resizable panel layouts
  • ScrollArea - Custom scrollable areas
  • SearchInput - Search input with icon
  • Select - Select dropdown
  • Separator - Visual separator line
  • Sheet - Side sheet panels
  • Skeleton - Loading skeleton screens
  • Slider - Range slider input
  • Switch - Toggle switch
  • Table - Data tables
  • Tabs - Tabbed interfaces
  • TextArea - Multi-line text input
  • TextField - Enhanced text input
  • Toast - Toast notifications (via Sonner)
  • Toggle - Toggle buttons
  • ToggleGroup - Grouped toggle buttons
  • Tooltip - Hover tooltips
  • VideoPlayer - Video playback component

Assets

Icon components and visual assets:

AI Provider Icons

  • AnthropicIcon - Anthropic AI logo
  • OpenAIIcon - OpenAI logo
  • GeminiIcon - Google Gemini logo
  • DeepSeekIcon - DeepSeek logo
  • MistralIcon - Mistral AI logo
  • MetaIcon - Meta AI logo
  • GroqIcon - Groq logo
  • OllamaIcon - Ollama logo
  • HanzoIcon - Hanzo AI logo
  • TogetherAI - Together AI logo
  • ExoIcon - Exo logo
  • GrokIcon - Grok logo
  • LmStudioIcon - LM Studio logo
  • OpenRouterIcon - OpenRouter logo
  • PerplexityIcon - Perplexity logo
  • QwenIcon - Qwen logo
  • AyaCohereIcon - Aya/Cohere logo

Feature Icons

  • AIAgentIcon - AI agent indicator
  • AisIcon - AI services icon
  • ReactJsIcon - React.js logo
  • ReasoningIcon - AI reasoning indicator
  • ToolsIcon - Tools/utilities icon
  • TracingIcon - Tracing/monitoring icon
  • ScheduledTasksIcon - Scheduled tasks icon
  • SendIcon - Send/submit icon

File Type Icons

  • FileTypeIcon - Dynamic file type icon based on extension
  • DirectoryTypeIcon - Folder/directory icon

Utilities

Helper functions and hooks:

  • cn() - Class name utility (clsx + tailwind-merge)
  • markdown() - Markdown to JSX converter
  • formatText() - Text formatting utilities
  • useDebounce() - Debounce hook
  • useMap() - Map state management hook
  • formatDateToLocaleStringWithTime() - Date formatting
  • getFileExt() - File extension extraction
  • hexToRgb() - Color conversion utilities

Custom Components

Additional enhanced components:

  • ChatInput - Chat message input
  • ChatInputArea - Multi-line chat input
  • ChatSettingsIcon - Chat settings icon
  • CopyToClipboardIcon - Copy to clipboard button
  • DotsLoader - Loading dots animation
  • FileList - File list display
  • FileUploader - File upload component
  • JsonForm - JSON-based dynamic forms
  • MarkdownText - Markdown renderer
  • PrettyJsonPrint - Formatted JSON display

Styling

The library uses Tailwind CSS for styling. Make sure your application includes Tailwind CSS configuration.

Dependencies

Key peer dependencies:

  • React 18.3.1+
  • React DOM 18.3.1+
  • @hookform/resolvers ^3.3.2
  • react-hook-form 7.51.4
  • lucide-react 0.456.0
  • next-themes ^0.2.1
  • embla-carousel ^8.1.6

Usage Examples

Basic Button

import { Button } from '@hanzo/ui';

function App() {
  return (
    <Button variant="primary" onClick={() => console.log('clicked')}>
      Click me
    </Button>
  );
}

Alert Dialog

import {
  AlertDialog,
  AlertDialogTrigger,
  AlertDialogContent,
  AlertDialogHeader,
  AlertDialogTitle,
  AlertDialogDescription,
  AlertDialogFooter,
  AlertDialogAction,
  AlertDialogCancel
} from '@hanzo/ui';

function ConfirmDialog() {
  return (
    <AlertDialog>
      <AlertDialogTrigger>
        <Button>Open Dialog</Button>
      </AlertDialogTrigger>
      <AlertDialogContent>
        <AlertDialogHeader>
          <AlertDialogTitle>Are you sure?</AlertDialogTitle>
          <AlertDialogDescription>
            This action cannot be undone.
          </AlertDialogDescription>
        </AlertDialogHeader>
        <AlertDialogFooter>
          <AlertDialogCancel>Cancel</AlertDialogCancel>
          <AlertDialogAction>Continue</AlertDialogAction>
        </AlertDialogFooter>
      </AlertDialogContent>
    </AlertDialog>
  );
}

AI Provider Icons

import { OpenAIIcon, AnthropicIcon, GeminiIcon } from '@hanzo/ui/assets';

function AIProviders() {
  return (
    <div className="flex gap-4">
      <OpenAIIcon className="h-6 w-6" />
      <AnthropicIcon className="h-6 w-6" />
      <GeminiIcon className="h-6 w-6" />
    </div>
  );
}

License

BSD-3-Clause

Author

Hanzo AI, Inc.

Repository

https://github.com/hanzoai/react-sdk