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

@barui/cli

v1.0.0

Published

## **📌 Overview** BarUI is a **CLI tool** designed to help developers quickly integrate **pre-built UI components** into their React or Next.js projects. Instead of manually creating and styling UI elements, developers can simply run a command like:

Downloads

3

Readme

BarUI - A CLI for Adding UI Components in React/Next.js Projects

🚀 Easily Generate Pre-Built UI Components with a Simple Command!

📌 Overview

BarUI is a CLI tool designed to help developers quickly integrate pre-built UI components into their React or Next.js projects. Instead of manually creating and styling UI elements, developers can simply run a command like:

npx barui add Modal

This automatically fetches the Modal component from the BarUI component library and adds it to the specified directory in your project.


✨ Features

Component Generation: Quickly add UI components like modals, buttons, carousels, etc.
Configurable Paths: Customize where components are generated using barui.config.mjs or barui.config.mts.
Supports JavaScript & TypeScript: Choose between .jsx or .tsx components.
Tailwind CSS Styling: All components are styled using Tailwind CSS, making them highly customizable and responsive.
Simple Setup: Initialize the CLI with barui init.
Error Handling: Prevents empty folders when components don’t exist.


🛠 How It Works

1️⃣ Install & Initialize

Run the following command in your project:

npx barui init

This will create a barui.config.mjs file where you can specify:

  • Component Path (where components should be placed).
  • Language (JavaScript or TypeScript).

2️⃣ Add a Component

To add a component (e.g., a Modal):

npx barui add Modal

This will:
✅ Check if the component exists in BarUI’s component library.
✅ Copy the component into your project’s specified directory.
✅ Display a success message.


3️⃣ Configuration (barui.config.mjs)

Example configuration:

export default {
  componentPath: "./src/components/ui", // Where components will be added
  language: "ts", // "mjs" for JSX, "ts" for TypeScript (TSX)
};

🚧 Future Improvements

🔹 Support for more UI components.
🔹 Integration with a cloud-based component registry.
🔹 Theming options for customization.
🔹 More interactive CLI prompts using ClackJS.


🔗 Conclusion

BarUI simplifies component management in React and Next.js projects by automating the process of adding and configuring reusable UI components. All components are built with Tailwind CSS, ensuring a modern, responsive, and customizable design. Save time, write less boilerplate, and focus on building great apps! 🚀