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

@qpub/qui

v0.5.3

Published

QPub shared React UI primitives (shadcn-compatible, Tailwind + Radix)

Readme

@qpub/qui

React UI primitives for any React or Next.js project: Tailwind CSS tokens (shadcn-compatible), CVA, and Radix building blocks.

Install

Using npm:

npm install @qpub/qui

Peer vs bundled: Anything in @qpub/qui peerDependencies is not shipped inside the published package. Your app installs React, Radix, Tailwind-related helpers, etc., so there is a single runtime copy and qui stays small. The library’s own devDependencies are only for building Storybook and dist/ in this repo.

While migrating from local components/ui shims, --sync-peers on the published codemod can add any missing peer packages to your app’s package.json—see MIGRATION.md.

Peer dependencies (must be installed in the consuming app; see @qpub/qui peerDependencies for exact ranges):

  • react, react-dom
  • All Radix primitives referenced by the components you import (for example @radix-ui/react-dialog, @radix-ui/react-select, …); see @qpub/qui peerDependencies for the full set
  • class-variance-authority, clsx, tailwind-merge
  • tailwindcss, tailwindcss-animate

Optional or feature-specific (install when you use command palette, date picker, etc.):

  • lucide-react, cmdk, vaul, sonner, react-day-picker, react-resizable-panels

Tailwind consumers

Add the preset and scan the compiled package so utilities are generated:

// tailwind.config.js
module.exports = {
  presets: [require("@qpub/qui/tailwind-preset")],
  content: [
    "./app/**/*.{ts,tsx}",
    "./components/**/*.{ts,tsx}",
    "./node_modules/@qpub/qui/dist/**/*.{js,mjs}",
  ],
};

Import base variables once (adjust path if your bundler resolves CSS differently):

@import "@qpub/qui/globals.css";

Theming: token format, light/dark mode, next-themes, overrides, fonts, and component-specific notes — see docs/theming.md. Terminal appearance language — see docs/terminal.md.

Usage

Published output is a single client bundle ("use client" on dist/index.mjs). Import everything from @qpub/qui:

import { Button, Card, CardHeader, CardTitle, Input } from "@qpub/qui";

In a Next.js app, add transpilePackages: ["@qpub/qui"] in next.config. This package does not export cn — add your own class helper in the app if needed.

See Storybook: npm run dev from this repo.

Developing this package

npm install
npm run typecheck
npm run dev
npm run build
npm run lint
npm run build-storybook

Migrating an app (components/ui@qpub/qui)

Use the published import codemod (see MIGRATION.md for peers, Tailwind, app-only widgets, delete list). Run from your app root after npm install @qpub/qui:

node node_modules/@qpub/qui/scripts/qui-migrate-imports.mjs --sync-peers           # dry-run: imports + deps
node node_modules/@qpub/qui/scripts/qui-migrate-imports.mjs --sync-peers --write    # apply, then npm install

Without --write, the script prints diffs only. --sync-peers merges any missing @qpub/qui peers into the app’s dependencies.


License

This project is licensed under the Apache License 2.0.