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

@bee-ui/cli

v1.1.0

Published

CLI tool for adding Bee UI components - No Tailwind CSS required, all styles included!

Downloads

27

Readme

🐝 @bee-ui/cli

CLI tool for adding Bee UI components to your project
Generate and customize React components with TypeScript and Tailwind CSS.

npm version license TypeScript

🚀 Quick Start

Installation

npm install -g @bee-ui/cli
# or
yarn global add @bee-ui/cli
# or
pnpm add -g @bee-ui/cli

Usage

# Initialize your project
beeui init

# Add components to your project
beeui add button
beeui add input card
beeui add --all

✨ Features

  • 🚀 Zero Config - Works out of the box
  • 🎯 TypeScript First - Full type safety support
  • 🎨 Tailwind CSS - Modern utility-first styling
  • Accessible - Built with accessibility in mind
  • 🔧 Customizable - Easy to customize and extend
  • 📦 Tree Shakeable - Only include what you need

📚 Commands

beeui init

Initialize your project with Bee UI configuration:

beeui init

This will:

  • Create a components.json configuration file
  • Install necessary dependencies
  • Set up Tailwind CSS configuration
  • Configure component paths and aliases

beeui add

Add components to your project:

# Add single component
beeui add button

# Add multiple components
beeui add button input card

# Add all components
beeui add --all

# Overwrite existing components
beeui add button --overwrite

beeui diff

View differences between your local components and the latest versions:

beeui diff button

🛠️ Configuration

The CLI creates a components.json file in your project root:

{
  "$schema": "https://bee-ui.com/schema.json",
  "style": "default",
  "rsc": false,
  "tsx": true,
  "typescript": true,
  "tailwind": {
    "config": "./tailwind.config.js",
    "css": "./src/app/globals.css",
    "baseColor": "slate",
    "cssVariables": true,
    "prefix": ""
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils"
  }
}

📁 Project Structure

After running the CLI, your project will have this structure:

your-project/
├── bee_components/
│   ├── button/
│   │   ├── Button.tsx
│   │   ├── Button.styles.ts
│   │   ├── Button.types.ts
│   │   ├── types.ts
│   │   └── index.ts
│   ├── input/
│   │   ├── Input.tsx
│   │   ├── Input.styles.ts
│   │   ├── Input.types.ts
│   │   ├── types.ts
│   │   └── index.ts
│   └── ...
├── components.json
├── tailwind.config.js
└── package.json

🎨 Using Generated Components

Import and use components directly from your project:

import { Button } from './bee_components/button';
import { Input } from './bee_components/input';

function App() {
  return (
    <div className="p-6 space-y-4">
      <Input placeholder="Enter your name" />
      <Button variant="primary">Submit</Button>
    </div>
  );
}

🔧 Customization

Tailwind CSS Configuration

The CLI automatically configures Tailwind CSS:

// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './bee_components/**/*.{js,ts,jsx,tsx}',
  ],
  theme: {
    extend: {
      colors: {
        border: "hsl(var(--border))",
        input: "hsl(var(--input))",
        ring: "hsl(var(--ring))",
        background: "hsl(var(--background))",
        foreground: "hsl(var(--foreground))",
        primary: {
          DEFAULT: "hsl(var(--primary))",
          foreground: "hsl(var(--primary-foreground))",
        },
        // ... more colors
      },
    },
  },
  plugins: [],
}

CSS Variables

The CLI adds CSS variables for theming:

/* globals.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    /* ... more variables */
  }
}

📦 Dependencies

The CLI automatically installs these dependencies:

  • tailwindcss - Utility-first CSS framework
  • tailwindcss-animate - Animation utilities
  • class-variance-authority - Component variant management
  • clsx - Conditional className utility
  • tailwind-merge - Tailwind class merging utility

🚀 Advanced Usage

Custom Component Templates

You can customize component generation by modifying the templates in your project.

Integration with Existing Projects

The CLI works seamlessly with:

  • Next.js
  • Create React App
  • Vite
  • Any React project with Tailwind CSS

TypeScript Support

Full TypeScript support with:

  • Type definitions for all components
  • IntelliSense and autocomplete
  • Type checking for props and variants

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

# Clone the repository
git clone https://github.com/your-username/bee-ui.git
cd bee-ui

# Install dependencies
npm install

# Start development
npm run dev

# Build CLI
npm run build:cli

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support

🙏 Acknowledgments


GitHub stars GitHub forks GitHub issues