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

@huitzo/dashboard-primitives

v0.2.2

Published

Copy-in (shadcn-style) hz-* primitive registry for Huitzo Dashboards. Per-primitive typed React source, brand-token styled, SHA-256 hash-pinned.

Readme

@huitzo/dashboard-primitives

Copy-in (shadcn-style) registry of hz-* primitives for Huitzo Dashboards.

Each primitive ships as readable .tsx source — not a compiled black box. An AI agent (or a human) reads the source, copies it into a dashboard project with huitzo primitives add <name> (PR-B6), and modifies it in place. Every file is SHA-256 hash-pinned in registry.json and the package is published with npm provenance so the supply chain is tamper-evident end to end.

Spec: docs/dashboards/v6/epic-b-ai-tooling-spec.md §3.3 (Phase 3: Primitives) and §7 (Primitive Seed).

Seed primitives

| Primitive | Import | Purpose | |-----------|--------|---------| | hz-card | @huitzo/dashboard-primitives/hz-card | Universal container (default / accent / success / warning, md / lg). | | hz-btn | @huitzo/dashboard-primitives/hz-btn | Universal CTA (primary / secondary / ghost); renders <button> or safe <a>. | | hz-stat | @huitzo/dashboard-primitives/hz-stat | Stat with delta arrow, inline SVG sparkline, locale-aware number formatting. | | hz-chart | @huitzo/dashboard-primitives/hz-chart | line / area / bar chart (Recharts), brand-token axes + locale-aware ticks. | | hz-table | @huitzo/dashboard-primitives/hz-table | Virtualized data grid (TanStack Table + Virtual), sortable, density variants. | | hz-form | @huitzo/dashboard-primitives/hz-form | Zod-schema-driven form (React Hook Form), field-level errors, optimistic submit. | | hz-stream | @huitzo/dashboard-primitives/hz-stream | Token-stream display with markdown, stop button, copy-on-complete. |

hz-eyebrow and hz-terminal remain CSS classes in @huitzo/dashboard-sdk-react and are deferred to PR-B5.5 — authors are not blocked.

Design contract

Every primitive in the seed obeys .claude/rules/dashboard-design.md:

  • Brand tokens only. Color, spacing, radius, shadow, and transitions resolve through var(--*) brand tokens — no hex literal, RGB triple, or HSL value anywhere in the source.
  • Accessibility floor. Every interactive element is keyboard-navigable; forms wire aria-describedby, tables sort by keyboard, charts expose an accessible data fallback.
  • AI-friendly authoring. Discriminated string-union variant props, TSDoc with an example per prop, a className escape hatch, and sensible defaults.

Layout

registry/
  hz-card/
    index.tsx          # the component (copy-in source)
    hz-card.module.css # the styles  (copy-in source, brand tokens only)
    meta.json          # name, description, tags, variants, tokens, file hashes
    README.md          # usage notes (read by the MCP server / Claude Skill)
    hz-card.test.tsx   # co-located component + a11y + token tests
  ...
registry.json          # generated manifest: per-file SHA-256 across all primitives
scripts/gen-registry.mjs

Regenerate the manifest after editing any primitive:

npm run gen-registry   # rewrites meta.json files[] + registry.json
npm test               # registry-hashes.test.ts guards against drift

Tree-shaking

There is no barrel entry — you import one primitive at a time (@huitzo/dashboard-primitives/hz-card). Importing hz-card never pulls in Recharts, TanStack, React Hook Form, or react-markdown; those stay external to their respective primitive bundles.