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

@dinachi/cli

v0.7.2

Published

CLI for adding Dinachi UI components to your project

Readme

@dinachi/cli

A CLI for adding Dinachi UI components to your project. Just like shadcn/ui, this tool copies component source code directly into your project, giving you full ownership and control.

Best fit: React projects using Tailwind CSS (Next.js, Vite, Remix, CRA, and similar layouts).

Installation

npm install -g @dinachi/cli

Or use npx without global install:

npx @dinachi/cli@latest init

Usage

Two ways to use the CLI

Option 1: Install globally (recommended)

npm install -g @dinachi/cli

# Then use short commands
dinachi init
dinachi add button

Option 2: Use npx (no global install)

# Always use the full package name
npx @dinachi/cli init
npx @dinachi/cli add button

Initialize Dinachi UI in your project

dinachi init
# or
npx @dinachi/cli init

This will:

  • Set up the project configuration
  • Install required dependencies
  • Create utility functions
  • Generate a components.json config file with normalized project paths

Add components

dinachi add button
# or
npx @dinachi/cli add button

This will:

  • Copy the button component source code to your project
  • Place it in your configured components directory
  • Install any missing dependencies (or print them when using --skip-install)

Available Commands

  • dinachi init - Initialize Dinachi UI in your project
  • dinachi init --skip-install - Initialize without package installation
  • dinachi add <component> - Add a component to your project
  • dinachi add <component> --overwrite - Overwrite existing component files
  • dinachi add --all - Install all registered components
  • dinachi add <component> --skip-install - Add files without installing packages

Available Components

  • accordion - Collapsible content sections
  • alert-dialog - Modal dialogs for important actions
  • autocomplete - Text input with dynamic suggestions
  • avatar - User profile images with fallbacks
  • button - Clickable buttons with variants
  • checkbox - Checkbox inputs
  • checkbox-group - Grouped checkboxes
  • collapsible - Collapsible content panels
  • combobox - Input + dropdown selection
  • context-menu - Right-click context menus
  • dialog - Modal dialogs
  • drawer - Edge-anchored slide-in panel
  • field - Form field wrapper
  • fieldset - Group related form controls
  • form - Form component with validation
  • input - Text input fields
  • menu - Button-triggered action menu
  • menubar - Desktop-style menu bars
  • meter - Scalar measurement indicator
  • navigation-menu - Navigation menu systems
  • number-field - Numeric input with steppers
  • popover - Anchored floating panel
  • preview-card - Hover preview cards
  • progress - Task completion indicator
  • radio - Single-select radio controls
  • scroll-area - Custom scroll container
  • select - Dropdown select inputs
  • separator - Visual content divider
  • slider - Range slider inputs
  • switch - On/off toggle control
  • tabs - Tabbed interfaces
  • toast - Notification toasts
  • toggle - Toggle switches
  • toggle-group - Grouped toggles
  • toolbar - Tool button groups
  • tooltip - Hover tooltips

How it works

Unlike traditional component libraries, Dinachi UI copies the actual source code into your project. This means:

Full ownership - The code is yours to modify ✅ Dependencies stay in your app - Required packages are installed directly into your project ✅ Complete customization - Change variants, styles, and behavior as needed ✅ Zero abstractions - See exactly how components work

Configuration

After running dinachi init, you'll have a components.json file:

{
  "style": "default",
  "rsc": false,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "src/index.css",
    "baseColor": "slate",
    "cssVariables": true
  },
  "aliases": {
    "components": "./src/components",
    "utils": "./src/lib/utils",
    "ui": "./src/components/ui",
    "lib": "./src/lib",
    "hooks": "./src/hooks"
  }
}

Modifying Button Variants

Once you add the button component, you can modify the variants directly in your project:

// In your project: src/components/ui/button.tsx
const buttonVariants = cva(
  "inline-flex items-center justify-center...",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground hover:bg-primary/90",
        destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
        // Add your own variants:
        success: "bg-green-500 text-white hover:bg-green-600",
        warning: "bg-yellow-500 text-white hover:bg-yellow-600",
      },
      // Add your own size variants:
      size: {
        default: "h-10 px-4 py-2",
        sm: "h-9 rounded-md px-3",
        lg: "h-11 rounded-md px-8",
        xl: "h-12 rounded-md px-10", // Your custom size
        icon: "h-10 w-10",
      },
    },
    // ...
  }
)

The variants live in your code, so you have complete control!