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

@holoscript/ui

v0.1.0

Published

Shared HoloScript Native UI Components

Readme

@holoscript/ui

Shared React UI components for the HoloScript ecosystem. Dark-themed, Tailwind CSS-based primitives used across Studio, dashboards, and agent interfaces.

Installation

pnpm add @holoscript/ui

Peer dependencies: react ^19.2.0, react-dom ^19.2.4.

Requires Tailwind CSS configured in the consuming app. Components use tailwind-merge + clsx for class composition.

Usage

import { Button, Badge, Input, Spinner, StatCard } from '@holoscript/ui';

function Dashboard() {
  return (
    <div>
      <Badge variant="default">Live</Badge>
      <StatCard title="Revenue" value={12500} format="usd" trend={4.2} />
      <Input placeholder="Search..." />
      <Button variant="outline" size="sm">Save</Button>
      <Spinner size="md" />
    </div>
  );
}

Components

| Component | Description | |-----------|-------------| | Button | Forwarded-ref button with 6 variants (default, destructive, outline, secondary, ghost, link) and 4 sizes (default, sm, lg, icon). | | Badge | Inline status pill with 4 variants (default, secondary, outline, destructive). Rounded-full, small text. | | Input | Forwarded-ref text input. Dark-themed with emerald focus ring. Accepts all native input props. | | Spinner | Animated SVG loading indicator. 3 sizes (sm, md, lg). | | StatCard | Metric display card with trend indicator. Formats: usd, eth, number. Shows up/down arrows via lucide-react. Supports loading skeleton state. | | PanelSplitter | Draggable resize handle for split-panel layouts. Supports mouse and touch. Emits pixel deltas; parent controls clamping. Horizontal or vertical. | | ContextMenu | Fixed-position right-click menu with Edit, Duplicate, Delete actions. Auto-clamps to viewport. Closes on outside click. | | SimplePropertyInspector | Sidebar panel for editing object name, color (preset grid + custom picker), and size (range slider). Studio-themed. | | ErrorBoundary | Class-based error boundary with labeled crash messages, retry/reload buttons, onError callback, optional renderFallback, and dev-only stack traces. |

Utilities

| Export | Description | |--------|-------------| | cn(...classes) | Merges Tailwind classes without conflicts. Wraps clsx + tailwind-merge. |

Theming

All components use a dark color palette built on Tailwind's slate scale with emerald accents:

  • Backgrounds: slate-900, slate-800
  • Text: slate-100, slate-300, slate-400
  • Accent: emerald-500 (focus rings, primary buttons, links)
  • Destructive: red-500 / red-400
  • Studio tokens: Some components reference studio-* custom colors (studio-panel, studio-border, studio-accent, studio-muted, studio-text). These must be defined in the consuming app's Tailwind config.

Override styles by passing className -- cn() ensures your classes win over defaults.

Adding New Components

  1. Create src/components/YourComponent.tsx.
  2. Use cn() for all class merging. Follow the dark slate + emerald accent palette.
  3. Export from src/index.ts.
  4. Add tests in src/__tests__/YourComponent.test.tsx using @testing-library/react.
  5. Run pnpm test and pnpm typecheck before committing.

Build

pnpm build        # tsup -> dist/ (CJS + ESM + .d.ts)
pnpm dev          # watch mode
pnpm test         # vitest
pnpm typecheck    # tsc --noEmit