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

@hareru/ui

v0.8.0

Published

Semantic CSS component library for Hareru UI

Readme

@hareru/ui

Semantic CSS component library for Hareru UI.

npm License: MIT

Features

  • 60 components — Buttons, forms, overlays, navigation, data display, and AI chat UI
  • Semantic CSS — BEM naming (hui-*) with CSS custom properties (--hui-*)
  • CVA variants — Type-safe variant management with class-variance-authority
  • Accessible — Built on Base UI primitives, WAI-ARIA compliant
  • forwardRef — All components support ref forwarding
  • Theming — Light and dark themes via data-theme attribute, zero-runtime CSS

Installation

# npm
npm install @hareru/ui @hareru/tokens

# pnpm
pnpm add @hareru/ui @hareru/tokens

# yarn
yarn add @hareru/ui @hareru/tokens

Peer dependencies: react >= 19, react-dom >= 19

Note: @hareru/tokens provides the CSS custom properties that @hareru/ui components reference.

Quick Start

1. Import CSS

A. Standalone (Hareru-only app — one import, everything included):

@import "@hareru/ui/styles.css";

B. Portable (alongside other frameworks — no global reset):

@import "@hareru/tokens/css";
@import "@hareru/ui/styles/components.css";
@import "@hareru/ui/styles/scope.css"; /* opt-in: .hui-root subtree typography */

C. Tailwind v4 coexistence (recommended for Tailwind projects):

@layer theme, base, hui, components, utilities;
@import "tailwindcss";
@import "@hareru/tokens/css";
@import "@hareru/ui/styles/components.layer.css";
@import "@hareru/ui/styles/scope.css"; /* opt-in */

D. Per-component (minimal bundle):

@import "@hareru/tokens/css";
@import "@hareru/ui/styles/components/Button.css";
@import "@hareru/ui/styles/components/Card.css";
/* Add @hareru/ui/styles/animations.css when using StreamingText, ReasoningPanel, or ToolCallCard */

styles.css already bundles tokens, so @hareru/tokens/css is not needed when using it.

If your host app has no CSS reset, optionally add @import "@hareru/ui/styles/baseline.css" for box-sizing: border-box and form element font inheritance.

2. Set up the provider

"use client"; // Required for Next.js App Router

import { ThemeProvider, Toaster } from "@hareru/ui";

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <ThemeProvider defaultTheme="system">
      {children}
      <Toaster />
    </ThemeProvider>
  );
}

3. Use components

import { Button, Card, CardHeader, CardTitle, CardContent } from "@hareru/ui";

function Example() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Hello</CardTitle>
      </CardHeader>
      <CardContent>
        <Button>Click me</Button>
        <Button variant="destructive">Delete</Button>
      </CardContent>
    </Card>
  );
}

All components are exported from @hareru/ui. There are no subpath imports.

Components

This is a guide to the main components. All components, subcomponents, variant functions, and type exports are available from @hareru/ui. For the full public API, see src/index.ts.

Layout

| Component | Description | |-----------|-------------| | Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter | Semantic card container | | BentoGrid, BentoGridItem | Drag-and-drop grid layout with presets | | Separator | Horizontal or vertical divider | | ScrollArea | Custom scrollbar container | | Accordion | Expandable content sections | | Collapsible | Expandable content section | | AspectRatio | Fixed aspect ratio container |

Form

| Component | Description | |-----------|-------------| | Button | Primary action element with variants | | Input | Text input field | | Textarea | Multi-line text input | | Select | Dropdown selection | | Combobox | Searchable select with autocomplete | | Switch | Toggle switch | | Toggle | Toggle button with variants | | ToggleGroup | Group of toggle buttons (single or multiple selection) | | Toolbar | Toolbar container for action buttons and links | | Checkbox | Binary selection control | | CheckboxGroup | Multi-checkbox group with shared value state | | Label | Form field label | | Slider | Numeric range input | | FormField, FormFieldLabel, FormFieldControl, FormFieldMessage | Form field validation wrapper |

Overlay

| Component | Description | |-----------|-------------| | Dialog | Modal dialog | | AlertDialog | Confirmation dialog | | Sheet | Slide-out panel | | Popover | Floating content panel | | Tooltip | Hover information | | PreviewCard | Hover link preview card | | DropdownMenu | Click-triggered dropdown menu | | ContextMenu | Right-click context menu | | Command | Command palette (cmdk) |

Navigation

| Component | Description | |-----------|-------------| | Breadcrumb | Navigation breadcrumb trail | | Pagination | Page navigation | | Tabs | Tab navigation | | NavigationMenu | Site navigation |

Feedback

| Component | Description | |-----------|-------------| | Alert | Status message | | Badge | Status indicator | | Toast, Toaster | Notification system | | Progress | Progress indicator | | Skeleton | Loading placeholder | | EmptyState | Empty content placeholder |

Data Display

| Component | Description | |-----------|-------------| | Avatar | User avatar | | Table | Data table with header, body, row, head, and cell | | ReadonlyField | Non-editable field display | | KeyValueList | Key-value pair list for metadata | | FieldDiff | Side-by-side field comparison | | AsyncComboboxField | Combobox with debounced async search |

DI Domain

| Component | Description | |-----------|-------------| | MetricCard | Metric value display with freshness indicator | | DefinitionBrowser | Tabbed browser for semantic models, metrics, and dimensions | | DataQualityIndicator | Quality dimension scores with alert display | | ConfidenceBadge | Confidence level badge | | QueryFeedback | User feedback collector for query results | | SemanticSuggest | Semantic suggestion list with evidence |

AI / Chat

| Component | Description | |-----------|-------------| | ChatContainer | Chat UI wrapper | | ChatMessage | Individual message bubble | | ChatComposer | Message input with send button | | StreamingText | Animated streaming text | | ToolCallCard | Tool invocation display | | ApprovalCard | Human-in-the-loop approval card | | ReasoningPanel | AI reasoning step display |

Hooks

| Hook | Description | |------|-------------| | useAGUIState | AG-UI protocol state manager with JSON Patch support |

Links

License

MIT — Copyright (c) 2026 MUSUBI Inc.