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

uiofcraft

v1.0.0

Published

Shared React components, styles and fonts, built on coss ui

Readme

uiofcraft

React components, styles and fonts shared across my projects. Built on coss ui, which uses Base UI and Tailwind CSS v4.

Install

pnpm add uiofcraft

Needs React 19 and Tailwind CSS v4 in the app.

Use

Import the styles after Tailwind in your main stylesheet:

@import "tailwindcss";
@import "uiofcraft/styles.css";

styles.css has the fonts and the theme. To bring your own fonts, import uiofcraft/theme.css instead and set --font-sans, --font-mono and --font-heading.

Import components from the root or from one component entry:

import { Button } from "uiofcraft";
import { Dialog, DialogPopup, DialogTrigger } from "uiofcraft/dialog";

Dark mode follows the dark class on an ancestor, usually <html>.

Components use Phosphor icons from @phosphor-icons/react/ssr. Use the same package for icons in your app so they match.

For AI agents

The package ships a usage guide and a page for every component in docs. Add this to the AGENTS.md (or CLAUDE.md) of an app that uses uiofcraft:

## UI

UI comes from the `uiofcraft` package. Before you add or change UI, read `node_modules/uiofcraft/docs/usage.md`, then the pages in `node_modules/uiofcraft/docs/components` for the components you use. Use those components and the theme tokens instead of writing new ones.

Exports

| Path | What | |---|---| | uiofcraft | All components, useMediaQuery, useCopyToClipboard and cn | | uiofcraft/<component> | One component file, for example uiofcraft/button | | uiofcraft/craft/<component> | One of my own components | | uiofcraft/hooks/<hook> | One hook, for example uiofcraft/hooks/use-media-query | | uiofcraft/styles.css | Fonts and theme | | uiofcraft/theme.css | Theme tokens, base styles and @source for the components | | uiofcraft/fonts.css | DM Sans and Lilex |

Develop

See MAINTAINING.md for local testing, customizing the theme and fonts, adding components, updating from coss ui, and releases.

License

MIT. Includes code from coss ui, MIT, copyright coss.com and Origin UI.