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

@ensolid/cli

v0.0.2

Published

CLI for adding beautiful, accessible SolidJS components to your projects. Inspired by shadcn/ui.

Readme

@ensolid/cli

A CLI for adding beautiful, accessible SolidJS components to your projects. Inspired by shadcn/ui.

Features

  • 🚀 Easy Setup - Initialize your project with a single command
  • 📦 Component Installation - Add individual components on demand
  • 🔄 Dependency Resolution - Automatically handles component dependencies
  • 📝 TypeScript Support - Full TypeScript support with type definitions
  • 🎨 Customizable - Components are copied to your project for full customization
  • 🔍 Diff Tracking - Check for updates against the registry

Quick Start

Initialize Your Project

npx @ensolid/cli init

This will:

  • Detect your project configuration
  • Create an ensolid.json config file
  • Set up CSS variables for theming
  • Install required dependencies (clsx, tailwind-merge)
  • Create the cn utility function

Add Components

Add individual components:

npx @ensolid/cli add button

Add multiple components at once:

npx @ensolid/cli add button card dialog

Add all available components:

npx @ensolid/cli add --all

List Available Components

npx @ensolid/cli list

Show only installed components:

npx @ensolid/cli list --installed

Check for Updates

npx @ensolid/cli diff

Check a specific component:

npx @ensolid/cli diff button

Commands

init

Initialize a new project or update configuration.

npx @ensolid/cli init [options]

Options:

  • -y, --yes - Skip confirmation prompts
  • -d, --defaults - Use default configuration
  • -f, --force - Force overwrite existing configuration
  • -c, --cwd <cwd> - Working directory (defaults to current)

add

Add components to your project.

npx @ensolid/cli add [components...] [options]

Options:

  • -y, --yes - Skip confirmation prompts
  • -o, --overwrite - Overwrite existing files
  • -a, --all - Add all available components
  • -p, --path <path> - Custom path to add components
  • -c, --cwd <cwd> - Working directory (defaults to current)

list

List available components.

npx @ensolid/cli list [options]

Options:

  • -i, --installed - Show only installed components
  • -a, --available - Show only available (not installed) components
  • -c, --cwd <cwd> - Working directory (defaults to current)

diff

Check for updates against the registry.

npx @ensolid/cli diff [component] [options]

Options:

  • -c, --cwd <cwd> - Working directory (defaults to current)

Configuration

The CLI stores configuration in ensolid.json:

{
  "$schema": "https://ensolid.dev/schema.json",
  "style": "default",
  "rsc": false,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "src/index.css",
    "baseColor": "slate",
    "cssVariables": true
  },
  "registry": "https://raw.githubusercontent.com/haike0513/ensolid/main/public/registry",
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils",
    "ui": "@/components/ui",
    "lib": "@/lib",
    "hooks": "@/hooks"
  }
}

Configuration Options

| Option | Description | |--------|-------------| | style | The style preset to use | | rsc | Enable React Server Components (unused in SolidJS) | | tsx | Whether to use TypeScript | | tailwind.config | Path to Tailwind config file | | tailwind.css | Path to global CSS file | | tailwind.baseColor | Base color theme | | tailwind.cssVariables | Use CSS variables for theming | | registry | URL to the component registry | | aliases.components | Import alias for components | | aliases.utils | Import alias for utils | | aliases.ui | Import alias for UI components | | aliases.lib | Import alias for lib | | aliases.hooks | Import alias for hooks |

Custom Registry

You can host your own component registry. The registry should have the following structure:

registry/
├── index.json          # List of all components
├── components/
│   ├── button.json     # Component metadata
│   ├── card.json
│   └── ...
├── button.tsx          # Component source files
├── card.tsx
└── ...

Registry Index (index.json)

[
  {
    "name": "button",
    "type": "components:ui",
    "files": ["button.tsx"],
    "dependencies": [],
    "registryDependencies": []
  }
]

Component Metadata (components/button.json)

{
  "name": "button",
  "type": "components:ui",
  "dependencies": ["@kobalte/core"],
  "registryDependencies": [],
  "files": ["button.tsx"]
}

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Development with watch mode
pnpm dev

# Test locally
node dist/index.js init

License

MIT