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

baseui-cn

v1.3.3

Published

Add Base UI components to your app — one command at a time.

Readme

baseui-cn

Add Base UI components to your app, one command at a time.

baseui-cn is the CLI for the baseui-cn component library. It installs Tailwind-styled React components built exclusively on Base UI primitives, with no Radix or Vaul dependency layer in between.

Quick start

Use whichever package runner matches your setup:

npx baseui-cn init
npx baseui-cn add button
pnpm dlx baseui-cn init
pnpm dlx baseui-cn add button
bunx baseui-cn init
bunx baseui-cn add button

Core workflow

  1. Initialize the project once with init.
  2. Add the components or blocks you want with add.
  3. Run update later to replace previously installed files with the latest registry versions.

The CLI detects existing requested and dependency component files before writing. Existing dependencies can be reused, replaced, or cancelled with reuse selected by default. If you already know you want to replace every matching requested and dependency file, use --overwrite with add or use update, which replaces installed files by default.

Commands

init

Set up your project. This installs required dependencies, creates lib/utils.ts, and injects theme variables into the stylesheet you choose during setup.

npx baseui-cn init
npx baseui-cn init --css src/styles.css

add

Add one or more installables. If the project is not initialized yet, add will run init first.

npx baseui-cn add button
npx baseui-cn add command data-grid
npx baseui-cn add login signup
npx baseui-cn add otp-field --css src/styles.css
npx baseui-cn add button --overwrite
npx baseui-cn add --all

update

Replace existing installed components with the latest registry versions.

npx baseui-cn update button
npx baseui-cn update data-grid command
npx baseui-cn update login signup
npx baseui-cn update --all

list

List every currently supported installable in the registry.

npx baseui-cn list
npx baseui-cn list --json

Installable families

Some installables write a single file, while others install a small family of related files.

  • empty-state installs into components/ui/blocks.tsx
  • login and signup install into components/ui/auth.tsx
  • data-grid installs the full reusable data-grid family under components/data-grid/* plus its supporting hook

That means consumers can still run one command such as baseui-cn add data-grid, but receive the full grouped implementation instead of a single demo file.

Available installables

Display: button, badge, avatar, card, item, separator, scroll-area, skeleton, spinner, progress, toggle, toggle-group

Form: input, textarea, label, field, checkbox, switch, radio-group, select, combobox, autocomplete, slider, number-field, otp-field, input-group

Overlays: dialog, alert-dialog, drawer, popover, tooltip, preview-card, dropdown-menu, toast, command

Layout: collapsible, accordion, tabs

Navigation & Data: table, data-grid, breadcrumb, pagination, menubar, navigation-menu

Blocks: empty-state, login, signup

Requirements

  • React 18+
  • Tailwind CSS v4
  • Next.js 13+ with the App Router recommended, or any React framework with a compatible Tailwind setup

Docs

Maintainer release flow

Package publishing can be automated from git with the included GitHub Actions workflow.

  1. Bump packages/cli/package.json to the release version you want.
  2. Commit and push that change to main.
  3. Create and push a matching git tag in the format cli-v<version>.
git tag cli-v1.0.3
git push origin cli-v1.0.3

The workflow will install dependencies, build the generated registry artifacts, verify the CLI package, and publish baseui-cn to npm using the repository NPM_TOKEN secret.