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

@schemastud/ui

v0.1.1

Published

The portable foundation UI primitives: shadcn/Radix-derived Button, Badge, Card (+ parts), Dialog, Input, Label, Select, Switch, a dependency-free Popover, and a headless TanStack DataTable — all skinned by host-owned Tailwind theme tokens (zero hard-code

Readme

@schemastud/ui

The portable foundation UI primitives for the schemastud/beam stack — the generic-UI dependency a rehomed component takes statically, instead of reaching into an app's local @/components/*.

Ships: Button, Badge, Card (+ CardHeader / CardTitle / CardDescription / CardContent / CardFooter), Dialog, Input, Label, Select / SimpleSelect, Switch, a dependency-free Popover, a headless TanStack DataTable (with its shared sort vocabulary), Separator, Skeleton, Tooltip, the useIsMobile hook, the full Sidebar block (collapsible desktop rail ⟷ mobile Sheet drawer + every Sidebar* menu part — the primitive a host account/app shell hangs its nav on), and cn.

The two rules that make it portable

  1. Zero hard-coded colors. Every primitive is skinned with semantic Tailwind tokens (bg-primary, text-muted-foreground, border-input, …) that resolve against the host's @theme variables. The host owns the palette; reskin = override the vars, never fork a component. (Beam token-var convention, rehome-components §5.)
  2. No app coupling — ever. No @/…, no sonner, no ziggy-js, no @inertiajs/*. Enforced on every build by npm run lint:imports (rehome-components §8b).

Semantic tone tokens

StatTile is the one primitive whose tone prop reaches past the shadcn base palette. The five tones resolve to exactly four token classes plus the muted default:

| tone | class | |---|---| | default | text-muted-foreground | | active | text-signal | | busy | text-info | | warn | text-warning | | danger | text-destructive |

text-destructive comes with any shadcn theme. The other three do not: a host must declare --color-signal, --color-info and --color-warning in its @theme block. The flagship's ~/Herd/splicewire-app/ui/src/index.css is the worked example — --color-signal: var(--signal); and its two siblings, each pointing at a token the theme already defines in light and dark.

An undeclared token renders untoned, never a raw hue: Tailwind simply emits no rule for the class, the glyph well keeps its inherited colour, and the tile stays legible. That is the whole reason nothing here names a hue — a host re-treats a tone by re-declaring the token, never by forking the component.

Consuming under Tailwind v4

Tailwind v4 ignores symlinked node_modules by default, so a consumer must scan this package's built dist for the utility classes it uses:

@source '../../node_modules/@schemastud/ui/dist';

react, react-dom, @radix-ui/react-dialog, @radix-ui/react-select, @radix-ui/react-switch, @tanstack/react-table and lucide-react are peer dependencies — the host provides the single copy.

Verify

  • npm run build — tsup ESM + .d.ts.
  • npm run typechecktsc --noEmit (also fails on any stray @/ import).
  • npm run lint:imports — the deny-list gate.
  • npm test — isolation mount: primitives render off a plain fixture, no Laravel.