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 🙏

© 2025 – Pkg Stats / Ryan Hefner

harukit

v1.2.1

Published

CLI tool for Harukit UI components

Readme

CLI Commands

Harukit provides a powerful command-line interface for managing your UI components. All commands support automatic package manager detection and dependency installation.

Main Commands

init - Initialize Harukit

Set up Harukit in your project with automatic dependency installation.

# Interactive setup
npx harukit@latest init

# Skip prompts and use defaults
npx harukit@latest init --yes

What it does:

  • Creates harukit.json configuration file
  • Sets up components/ and lib/ directories
  • Generates utility functions in lib/utils.ts
  • Updates global CSS with Tailwind variables
  • Automatically installs all required dependencies using your package manager

Package Manager Support:

npx harukit@latest init      # npm
pnpm dlx harukit@latest init # pnpm  
yarn dlx harukit@latest init # yarn
bunx --bun harukit@latest init # bun

add - Add Components

Add one or more components to your project with automatic dependency resolution.

# Add single component
npx harukit@latest add button

# Add multiple components
npx harukit@latest add button card input

# Overwrite existing components
npx harukit@latest add button --overwrite

Options:

  • --yes - Skip prompts and use defaults
  • --overwrite - Replace existing component files

What it does:

  • Downloads component files to your components/ directory
  • Automatically installs component-specific dependencies
  • Resolves and installs peer dependencies
  • Shows installation progress

remove - Remove Components

Clean up components and unused dependencies from your project.

# Remove single component
npx harukit@latest remove button

# Remove multiple components  
npx harukit@latest remove button card input

What it does:

  • Removes component files from components/ directory
  • Identifies unused dependencies
  • Prompts to clean up orphaned packages
  • Updates project configuration

list - Show Available Components

Display all components you can add to your project.

npx harukit@latest list

Output includes:

  • Component names
  • Brief descriptions
  • Categories (Form, Layout, Feedback, etc.)

info - Get Component Information

Show detailed information about Harukit or specific components.

# General Harukit information
npx harukit@latest info

# Specific component details
npx harukit@latest info button

# Multiple component info
npx harukit@latest info button card

update - Check for Updates

Check for newer versions and get update instructions.

npx harukit@latest update

Quick Examples

Complete Setup Flow:

# 1. Initialize in existing project
npx harukit@latest init

# 2. See what's available
npx harukit@latest list

# 3. Add the components you need
npx harukit@latest add button card input tooltip

# 4. Start building!

Package Manager Detection: Harukit automatically detects and uses your preferred package manager:

  1. CLI Detection: Uses the package manager from your command (npx → npm, pnpm dlx → pnpm)
  2. Lock File Detection: Falls back to package manager indicated by lock files
  3. System Default: Uses bun if available, otherwise npm

No Manual Dependency Management: All init and add commands automatically handle:

  • Installing required peer dependencies
  • Resolving version conflicts
  • Using your project's package manager
  • Showing installation progress

Global Options

All commands support:

  • --help - Show command help
  • --version - Show Harukit version

Need Help?