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

shadcn-ui-lib

v0.0.20

Published

Internal UI component library built on [shadcn/ui](https://ui.shadcn.com/) + [Radix UI](https://www.radix-ui.com/) + Tailwind CSS v4.

Downloads

7,661

Readme

shadcn-ui-lib

Internal UI component library built on shadcn/ui + Radix UI + Tailwind CSS v4.

How it works

  • Components are pre-built as ESM with full type declarations.
  • All dependencies (Radix UI, platejs, etc.) are bundled — consumers only need to install peer dependencies.
  • Multi-entry build with sideEffects: false enables tree-shaking: only imported components end up in your bundle.
  • Theme variables and base styles are exported via src/styles/globals.css — Tailwind utility classes are generated on demand by the consuming project.

Usage in your project

1. Install

pnpm add shadcn-ui-lib

Peer dependencies (install if not already present; react/react-dom are assumed since this is a React library):

pnpm add lucide-react sonner zod @tanstack/react-form

2. Setup Tailwind

Install Tailwind CSS v4 in your project, then in your app's entry CSS file:

@import "shadcn-ui-lib/styles/globals.css";
@import "shadcn-ui-lib/styles/scrollbar.css";
@source "../node_modules/shadcn-ui-lib/src";

Adjust the @source path based on where your CSS entry file lives relative to node_modules.

3. Use components

import { Button, Dialog, DialogContent, DialogTrigger } from "shadcn-ui-lib/ui";
import { BlockEditor } from "shadcn-ui-lib/block-editor";
import { useAppForm } from "shadcn-ui-lib/form";

Dev

pnpm install
pnpm dev        # starts vite dev server with component showcase
pnpm build      # builds ESM output to dist/
pnpm typecheck  # runs tsc --noEmit

Adding components

Use the shadcn CLI with Radix UI style (configured in components.json):

pnpm dlx shadcn@latest add <component>

Then follow the export + showcase steps in AGENTS.md.