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

shubh-cli

v0.3.1

Published

CLI tool for scaffolding components from shubh-ui design system

Readme

shubh-cli

A powerful CLI tool for scaffolding, generating, and managing components from the shubh-ui design system.

Installation

npm install -g shubh-cli
# or
npx shubh-cli

Quick Start

1. Initialize your project

npx shubh-ui init

This command will:

  • Create a components/ui directory
  • Generate a shubh-ui.json configuration file
  • Create utility helpers (utils/cn.ts)

2. Add components

# Add a single component
npx shubh-ui add button

# Add multiple components
npx shubh-ui add button input card modal

# Add with specific selections
npx shubh-ui add button --help

Supported components:

  • button - Versatile button with variants
  • input - Text input with validation states
  • card - Container with header/footer slots
  • modal - Dialog component
  • badge - Tag/badge component
  • alert - Alert notification
  • avatar - User avatar
  • tabs - Tab navigation
  • dropdown - Dropdown menu
  • label - Form label with states
  • table - Data table
  • sidebar - Side navigation
  • navbar - Top navigation
  • checkbox - Checkbox input
  • radio - Radio input
  • switch - Toggle switch
  • select - Select dropdown
  • textarea - Multi-line textarea
  • pagination - Pagination controls
  • serverdatatable - Div-structured server-side data table with search, sort, expand, and pagination

Configuration

The shubh-ui.json file controls component generation:

{
  "$schema": "https://shubh-ui.dev/schema.json",
  "style": "default",
  "tsx": true,
  "aliases": {
    "@": "./src",
    "@/components": "./components",
    "@/utils": "./utils"
  },
  "componentPath": "./components/ui"
}

Configuration Options

  • style: Component style (currently "default")
  • tsx: Use TypeScript/TSX (true | false)
  • aliases: Import path aliases
  • componentPath: Where to store generated components

Usage Example

// After: npx shubh-ui init && npx shubh-ui add button

import Button from "@/components/ui/button";

export function App() {
  return (
    <Button variant="primary" size="lg">
      Click me
    </Button>
  );
}

Project Structure

After initialization and adding components:

your-project/
├── components/
│   └── ui/
│       ├── button/
│       │   ├── button.tsx
│       │   ├── button.types.ts
│       │   └── index.ts
│       ├── input/
│       │   └── ...
│       └── card/
│           └── ...
├── utils/
│   ├── cn.ts              # Class name utility
│   └── index.ts
├── shubh-ui.json          # CLI config
└── package.json

Customization

Each generated component is fully customizable. Simply edit the files in components/ui/ComponentName/:

  • ComponentName.tsx - Main component implementation
  • ComponentName.types.ts - Type definitions and variants
  • README.md - Component documentation

Features

Type-safe components - Full TypeScript support
Accessible - WCAG compliant
Tailwind CSS - Utility-first styling
Customizable - Modify components for your needs
Tree-shakeable - Only include what you use
Copy-paste friendly - No external dependencies required after generation

Troubleshooting

"Project not initialized"

Run npx shubh-ui init in your project root first.

"Template not found"

Check available components: npx shubh-ui add --help

Import issues

Ensure your path aliases in tsconfig.json match shubh-ui.json

Development

git clone https://github.com/yourusername/shubh-ui
cd shubh-ui/packages/cli

# Install dependencies
npm install

# Build
npm run build

# Test CLI locally
npm run dev

License

MIT


Made with ❤️ by Shubham