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

@open-resource-discovery/ui-components

v0.1.6

Published

A React UI component library with accessible, themeable components designed for specification UIs.

Readme

UI Components

A general-purpose React UI component library with accessible, themeable components.

📖 Browse the components on Storybook

AI-agent-friendly project map: llms.txt.

Installation

npm install @open-resource-discovery/ui-components

Quick Start

import { ThemeRoot, Button, Card } from "@open-resource-discovery/ui-components";
import "@open-resource-discovery/ui-components/styles";

function App() {
  return (
    <ThemeRoot>
      <Card>
        <Button>Click me</Button>
      </Card>
    </ThemeRoot>
  );
}

Wrap your application with <ThemeRoot> to provide theming context and CSS variables to all components.

Theming

Components are styled using CSS custom properties. Override them to match your brand:

.ord-ui {
  --ord-primary: #6366f1;
  --ord-primary-foreground: #ffffff;
  --ord-radius: 0.75rem;
  --ord-border: #e2e8f0;
}

Available tokens include --ord-background, --ord-foreground, --ord-primary, --ord-secondary, --ord-muted, --ord-accent, --ord-destructive, --ord-success, --ord-warning, --ord-border, --ord-ring, --ord-card, --ord-popover, and their -foreground variants.

Dark Mode

Use the useTheme hook to toggle between light and dark modes:

import { useTheme } from "@open-resource-discovery/ui-components";

function ThemeToggle() {
  const { theme, setTheme } = useTheme();

  return <button onClick={() => setTheme(theme === "dark" ? "light" : "dark")}>Toggle theme</button>;
}

The ThemeRoot component accepts a defaultTheme prop ('light', 'dark', or 'system'). When set to 'system', the library automatically follows the user's OS preference.

Components

Layout & Structure

  • Card - Container with header, content, and footer sections
  • Separator - Visual divider between content sections
  • ScrollArea - Custom scrollbar container

Forms & Inputs

  • Button - Primary action trigger with variants and sizes
  • Input - Text input field
  • Textarea - Multi-line text input
  • PasswordInput - Input with show/hide password toggle
  • NumberField - Numeric input with increment/decrement
  • Checkbox - Single checkbox control
  • CheckboxGroup - Group of related checkboxes
  • Radio - Single radio option
  • RadioGroup - Group of mutually exclusive radio options
  • Select - Dropdown selection
  • Combobox - Searchable dropdown selection
  • Switch - Toggle control
  • Slider - Range selection control
  • Field - Form field wrapper with label, description, and error

Feedback & Status

  • Badge - Small status indicator label
  • Spinner - Loading spinner animation
  • Skeleton - Placeholder loading state
  • Progress - Determinate progress bar
  • Meter - Value within a known range
  • Toast - Temporary notification message

Overlays & Disclosure

  • Dialog - Modal dialog window
  • Drawer - Slide-in panel overlay
  • Popover - Floating content panel
  • Tooltip - Contextual hover information
  • Accordion - Expandable content sections
  • Collapsible - Single expandable section
  • Tabs - Tabbed content panels

Data Display

  • Avatar - User profile image or initials
  • CodeBlock - Syntax-highlighted code display

Theming

  • ThemeRoot - Theme provider wrapper component
  • useTheme - Hook for programmatic theme control

Storybook

The latest published Storybook is at open-resource-discovery.github.io/ui-components.

To run it locally:

npm run storybook

License

Apache-2.0