@kivacore/ui-pro-developer-tools
v0.0.3
Published
Installer-driven Kiva UI Pro developer tools and component source templates.
Readme
@kivacore/ui-pro-developer-tools
Installer-driven source distribution for Kiva UI Pro components. Instead of importing compiled library code, this package copies component source directly into your app — similar to how shadcn/ui and Animate UI work.
Installation
npm install @kivacore/ui-pro-developer-tools
# or
pnpm add @kivacore/ui-pro-developer-toolsPrerequisites
Your target app must have:
- A
components.jsonwithaliases.uiset to@/components/ui - A
@/*path alias configured intsconfig.jsonortsconfig.app.json - A
src/directory
Each installable component also declares its own required shadcn components and npm packages. The CLI validates all prerequisites before copying any files.
CLI Usage
The package provides a ui-pro-developer-tools CLI binary.
Add a component
npx ui-pro-developer-tools add <component-name> [options]Options
| Option | Description |
| --- | --- |
| --cwd <path> | Target app directory (defaults to current directory) |
| --dry-run | Preview files that would be written without making changes |
| --overwrite | Allow overwriting existing files |
Examples
# Preview what would be installed
npx ui-pro-developer-tools add data-view --dry-run
# Install into the current directory
npx ui-pro-developer-tools add data-view
# Install into a specific app, replacing existing files
npx ui-pro-developer-tools add data-view --cwd apps/my-app --overwriteAvailable components
| Component | Description |
| --- | --- |
| data-view | Data view shell with shared core and alias-based template |
The data source query builder is part of Kiva UI. Install it with npx @kivacore/ui-cli add @kivacore/ui-kiva-query-builder, or use the @kivacore/data-source-query-builder package.
Programmatic API
import { installComponent, installables } from '@kivacore/ui-pro-developer-tools';
// List available components
console.log(Object.keys(installables));
// Install a component
const result = installComponent('data-view', {
cwd: '/path/to/app',
dryRun: false,
overwrite: false
});Exports
installables— registry of all installable component definitionsinstallComponent(name, options)— install a component into a target app- Type exports for
DataViewand the data grid it renders
How it works
- The CLI validates the target app has the required shadcn components and npm packages installed
- Source files from
templates/are copied into the app'ssrc/directory undercomponents/kiva/ - Shared helpers are installed alongside the component
- The installed source becomes part of your app — customize it freely
Required peer dependencies
react^19react-dom^19
License
MIT
