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

@cjarero183006/cli-builder

v1.0.1

Published

Shared UI components and utilities for building beautiful CLI applications

Readme

      _ _       _           _ _     _
  ___| (_)     | |__  _   _(_) | __| | ___ _ __
 / __| | |_____| '_ \| | | | | |/ _` |/ _ \ '__|
| (__| | |_____| |_) | |_| | | | (_| |  __/ |
 \___|_|_|     |_.__/ \__,_|_|_|\__,_|\___|_|

I kept rewriting the same CLI boilerplate. So I extracted it into a package.

TypeScript Node.js

npm version npm downloads License Tests

Shared UI components and utilities for building beautiful CLIs

Quick Start · API Reference · Shared Configs · Used By


Why I Built This

Every CLI I built needed the same things: a banner, a spinner, colored messages, safe shell execution. I was copy-pasting between claude-skills and create-clean-app.

Now both import from one place. One fix, every CLI gets it.


Quick Start

npm install @cjarero183006/cli-builder
import { showBanner, createProgressReporter, showSuccess } from "@cjarero183006/cli-builder/ui";

showBanner({ title: "My CLI", subtitle: "v1.0.0" });

const progress = createProgressReporter();
progress.start("Installing dependencies...");
// ... do work
progress.stop("Dependencies installed!");

showSuccess("Done!");

API Reference

UI (@cjarero183006/cli-builder/ui)

| Export | Description | |--------|-------------| | showBanner(config) | ASCII art banner with gradient colors | | createProgressReporter() | Spinner-based progress indicator | | showSuccess(message) | Green success message | | showError(message) | Red error message | | showInfo(message) | Blue info message | | showWarning(message) | Yellow warning message | | showSeparator() | Visual separator line | | showNote(title, message) | Note box | | showGoodbye(config?) | Goodbye message | | confirmAction(message) | Yes/no confirmation prompt | | createGradient(colors) | Custom gradient function | | defaultGradient | Pre-configured gradient | | clack | Re-export of @clack/prompts | | chalk | Re-export of chalk |

Interfaces (@cjarero183006/cli-builder/interfaces)

| Export | Description | |--------|-------------| | ProgressReporter | { start(msg): void, stop(msg): void } | | Result<T> | { success: boolean, data?: T, error?: string } |

Utils (@cjarero183006/cli-builder/utils)

| Export | Description | |--------|-------------| | sleep(ms) | Async delay | | formatError(error, default?) | Extract error message | | wrapError(error, context) | Add context to error | | execSafe(command, options?) | Safe shell execution | | gitClone(url, dest, options?) | Clone repo safely | | escapeShellArg(arg) | Escape shell argument | | isShellSafe(input) | Validate shell input | | isValidGitUrl(url) | Validate git URL format |


Shared Configs

TypeScript

{
  "extends": "@cjarero183006/cli-builder/configs/tsconfig.base.json",
  "compilerOptions": { "outDir": "dist" },
  "include": ["src"]
}

Vitest

import { defineConfig } from "vitest/config";
import baseConfig from "@cjarero183006/cli-builder/configs/vitest.base.js";

export default defineConfig({ ...baseConfig });

Used By

| Package | What it does | |---------|--------------| | @cjarero183006/claude-skills | Claude Code skills manager | | @cjarero183006/create-clean-app | Clean Architecture scaffolder |


Architecture

src/
├── ui/               # Banner, progress, prompts, styles
├── interfaces/       # ProgressReporter, Result<T>
├── utils/            # Shell, error, sleep
└── index.ts          # Main entry

| Aspect | Choice | |--------|--------| | Architecture | Modular with subpath exports | | Testing | Vitest (34 passing) | | Build | tsup (ESM) | | Dependencies | @clack/prompts, chalk, figlet, gradient-string |


Development

git clone https://github.com/jarero321/cli-builder.git
cd cli-builder
bun install
bun run dev

| Script | What it does | |--------|--------------| | bun run dev | Watch mode | | bun run build | Production build | | bun run test:run | Single run | | bun run test:coverage | Coverage report |


License

MIT


Report Bug · Request Feature