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

@kivacore/ui-cli

v0.27.2

Published

Kiva UI CLI - add, update and theme Kiva UI components

Readme

Kiva UI CLI

Command-line tool for the Kiva UI component library. It adds, updates and migrates Kiva UI components, hooks and themes in your project. It only reads the public Kiva UI registry, so it needs no account or sign-in.

Usage

npx @kivacore/ui-cli <command>

Local build

Run pnpm build from this package. It needs no environment variables or secrets. The build uses tsup 9 and writes both the CLI and library to dist/. For local builds, tsup supports Node 22.18+, 24.11+, or 26+ on those release lines.

Commands

Component Registry

Components come from https://ui.kivacore.com/r. To use another registry, see Environment Variables.

add [items...]

Add Kiva UI components, hooks, or utilities to your project.

Prerequisite: Run npx shadcn@latest init first to create components.json.

npx @kivacore/ui-cli add button               # Add a component
npx @kivacore/ui-cli add button dialog         # Add multiple components
npx @kivacore/ui-cli add --all                 # Install all available components
npx @kivacore/ui-cli add hooks-debounce        # Add a hook
npx @kivacore/ui-cli add rn-button             # Add a React Native component
npx @kivacore/ui-cli add rn-hooks-use-kiva-tenant  # Add a React Native hook
npx @kivacore/ui-cli add utils-cn              # Add a utility
npx @kivacore/ui-cli add button --dry-run      # Preview installation
npx @kivacore/ui-cli add button -o             # Overwrite existing files
npx @kivacore/ui-cli add button -p ./src/ui    # Custom target path

What happens:

  1. Resolves components and their dependencies from the Kiva registry
  2. Installs vendor primitives by fetching vendor registry items (shadcn/Plate) and writing files via components.json aliases
  3. Writes Kiva component files to components/kiva/
  4. Installs npm dependencies
  5. Bundled lib/hook files are shared across components (written once, skipped if exists)
  6. Plate installs always include core editor primitives (editor, editor-kit) for editor/static compatibility
  7. Vendor-component files (e.g. editor/) are bundled with the component

Registry Names:

| Input | Registry Name | |-------|---------------| | button | @kivacore/ui-button | | hooks-debounce | @kivacore/hooks-debounce | | utils-cn | @kivacore/utils-cn | | rn-button | @kivacore/rn-button → components/kiva-native/ | | rn-hooks-use-kiva-tenant | @kivacore/rn-hooks-use-kiva-tenant → hooks/kiva-native/ |

--all react-native / --all-rn installs every @kivacore/rn-* item — native components and native hooks.

Options:

| Option | Description | |--------|-------------| | -a, --all | Install all available components from the registry | | -o, --overwrite | Overwrite existing files without prompting | | -d, --dry-run | Show what would be installed without making changes | | -p, --path <path> | Custom target path for files |

update

Update all installed Kiva components to the latest version from the registry. Detects and optionally removes components that were deleted from the registry.

npx @kivacore/ui-cli update               # Update all installed components
npx @kivacore/ui-cli update --prune       # Update and remove stale components
npx @kivacore/ui-cli update --dry-run     # Preview what would be updated

Scans components/kiva/, components/kiva-native/, hooks/kiva/ (web hooks) and hooks/kiva-native/ (native hooks, reported as rn-hooks-<name>) to detect installed items, resolves latest versions from the registry, and updates all files including new vendor primitives and npm dependencies. Components that no longer exist in the registry are reported as stale — use --prune to remove them.

Options:

| Option | Description | |--------|-------------| | -d, --dry-run | Show what would be updated without making changes | | --prune | Remove locally installed components that no longer exist in the registry |

list

List available Kiva UI registry items (components, hooks, utilities) or published npm packages.

npx @kivacore/ui-cli list                # List registry components
npx @kivacore/ui-cli list --packages     # List published @kivacore npm packages
npx @kivacore/ui-cli list --json         # Output as JSON

Options:

| Option | Description | |--------|-------------| | --packages | List published @kivacore npm packages instead |

themes

Browse and manage Kiva UI themes.

themes list

List all available theme presets.

npx @kivacore/ui-cli themes list
themes add [name]

Apply a theme to your project's globals.css.

npx @kivacore/ui-cli themes add midnight            # Apply a theme preset by name
npx @kivacore/ui-cli themes add --url <share-url>   # Apply theme from a share URL
npx @kivacore/ui-cli themes add --file ./theme.json # Apply theme from a local JSON file

Options:

| Option | Description | |--------|-------------| | --url <url> | Apply theme from a share URL (overrides name argument) | | --file <path> | Apply theme from a local JSON file (overrides name argument) |

themes current

Display current :root and .dark CSS variables from your globals.css.

npx @kivacore/ui-cli themes current

Project Setup

commitlint

Set up commitlint, husky, and lint-staged in your project.

npx @kivacore/ui-cli commitlint

CLI Management

upgrade

Upgrade the CLI to the latest version. Automatically detects your package manager (npm, pnpm, yarn, bun).

npx @kivacore/ui-cli upgrade

info

Display the CLI version, system information, the registry URL and the config file location.

npx @kivacore/ui-cli info

config

Show the configuration, or change the color theme of the help output.

npx @kivacore/ui-cli config          # Show configuration
npx @kivacore/ui-cli config --theme  # Pick a help color theme

Global Options

--json

Output results in JSON format. Useful for scripting and CI/CD pipelines.

npx @kivacore/ui-cli list --json
npx @kivacore/ui-cli info --json

-v, --version

Display the CLI version.

-h, --help

Display help information.

npx @kivacore/ui-cli --help
npx @kivacore/ui-cli add --help

Environment Variables

All are optional and read at runtime.

| Variable | Description | |----------|-------------| | KIVA_REGISTRY_URL | Kiva UI registry base URL (default https://ui.kivacore.com/r) | | KIVA_SHADCN_REGISTRY_URL | shadcn registry URL (default <registry>/shadcn) | | KIVA_PLATE_REGISTRY_URL | Plate registry URL (default <registry>/plate) | | KIVA_AI_ELEMENTS_REGISTRY_URL | AI Elements registry URL (default <registry>/ai-elements) |

The help theme setting is stored with conf under the docyrus project name, the name from before the Kiva rename, so existing settings carry over. kiva-ui info shows the file path.

License

MIT