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

@jfrader/ui

v0.25.0

Published

React component library based on Emotion and CSS custom properties.

Readme

@jfrader/ui

React components styled with Emotion and themed through the CSS custom properties from @jfrader/tokens.

Requires React 19 and the @jfrader/tokens/tokens.css stylesheet. The library is pre-1.0: the public API can change between minor versions, and the changelog marks every breaking change.

Install

pnpm add @jfrader/ui @jfrader/tokens
import { Button, Dialog, ThemeRoot } from '@jfrader/ui';

react and react-dom (^19.0.0) are peer dependencies.

Common subpaths

Every component also exports from its own subpath, with its prop types. This is the common set; the complete inventory is packages/ui/src/index.ts.

| Subpath | Exports | | --- | --- | | @jfrader/ui/accordion | Accordion | | @jfrader/ui/alert | Alert | | @jfrader/ui/avatar | Avatar | | @jfrader/ui/badge | Badge | | @jfrader/ui/breadcrumbs | Breadcrumbs | | @jfrader/ui/button | Button | | @jfrader/ui/calendar | Calendar | | @jfrader/ui/card | Card | | @jfrader/ui/checkbox | Checkbox | | @jfrader/ui/combobox | Combobox | | @jfrader/ui/command-palette | CommandPalette | | @jfrader/ui/container | Container | | @jfrader/ui/copy-button | CopyButton | | @jfrader/ui/date-picker | DatePicker | | @jfrader/ui/dialog | Dialog | | @jfrader/ui/divider | Divider | | @jfrader/ui/editable-details | EditableDetails | | @jfrader/ui/emblem | Emblem | | @jfrader/ui/flex | Flex | | @jfrader/ui/kbd | Kbd | | @jfrader/ui/menu | Menu | | @jfrader/ui/pagination | Pagination | | @jfrader/ui/person-avatar | PersonAvatar | | @jfrader/ui/pill | Pill | | @jfrader/ui/popover | Popover | | @jfrader/ui/progress | Progress | | @jfrader/ui/radio-group | RadioGroup | | @jfrader/ui/select | Select | | @jfrader/ui/skeleton | Skeleton | | @jfrader/ui/spinner | Spinner | | @jfrader/ui/stack | Stack | | @jfrader/ui/switch | Switch | | @jfrader/ui/tabs | Tabs | | @jfrader/ui/text-field | TextField | | @jfrader/ui/textarea | Textarea | | @jfrader/ui/theme-root | ThemeRoot | | @jfrader/ui/time-picker | TimePicker | | @jfrader/ui/toast | Toast, useToast | | @jfrader/ui/toggle-group | ToggleGroup | | @jfrader/ui/tooltip | Tooltip |

Game components (GameTable, GameCard, FlipGameCard, and the rest of the @jfrader/ui/game-* subpaths), the procedural scene (@jfrader/ui/scene), and optional integrations such as @jfrader/ui/next and @jfrader/ui/code-block/shiki are subpath-only imports.

Next.js App Router

Use the EmotionRegistry adapter from @jfrader/ui/next. The App Router layout covers dependencies and the Server Component boundary.

Theming

Set data-theme on <html> for the page, or use ThemeRoot for a subtree. ThemeProvider supplies styling callbacks with token references; it does not choose light or dark.

Person appearance data

import { resolveAppearanceId, resolvePersonAppearance } from '@jfrader/ui/person-avatar/appearance';

const appearance = resolvePersonAppearance(resolveAppearanceId('person-42', 'durable-visual-seed'));

The pure entry imports no React, Emotion, or DOM code. Version 3 preserves the original recipe and palette ordering. A blank override falls back to the untrimmed seed. Signatures are not unique IDs.

Build and release

pnpm --filter @jfrader/tokens build && pnpm --filter @jfrader/ui build

The build writes ES modules to dist/ (dist/index.js plus one dist/<name>.js per component) and declarations to dist/types/. It bundles neither React nor anything in dependencies.

Both published packages release together. See Releasing for the version policy, packing, the publish workflow, and registry authentication.