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.1.1

Published

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

Readme

@qpub/qui

Shared React primitives for QPub apps: 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/ here.

While migrating, --sync-peers on scripts/qui-migrate-imports.mjs can add any missing peer packages to the 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";

Override CSS variables in your own layer as needed.

Fonts

This package does not ship font files or @font-face rules. You choose how fonts are loaded (next/font, @fontsource/*, CDN, self-hosted assets, etc.).

The Tailwind preset maps font-sans / font-mono to CSS variables:

  • --font-sans — full sans font-family stack (comma-separated)
  • --font-mono — full monospace stack

The published globals.css (@import "@qpub/qui/globals.css") sets both to system UI fallbacks so components render correctly without extra setup. Override --font-sans / --font-mono on :root or body when you inject your own faces (for example map Geist from next/font into --font-sans; see MIGRATION.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 using file:../qui, set 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):

# From the consuming app repo (adjust path):
node ../qui/scripts/qui-migrate-imports.mjs --sync-peers           # dry-run: imports + deps
node ../qui/scripts/qui-migrate-imports.mjs --sync-peers --write    # apply, then npm install

# From this repo, pointing at the app:
npm run migrate-imports -- --root /path/to/qpub-website --sync-peers --write

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