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

custom-cli-alerts

v3.0.3

Published

CLI alerts with matte colors and symbols: success, info, warning, error. Cross platform comaptible: Windows, MacOS, Lunux

Readme

Custom CLI Alerts ✨

License npm

🤔 Why Custom CLI Alerts?

Customization of any kind is great, but customizing CLI UI is just amazing! I wanted to have something I could use in my project that is easy, has minimal dependencies and can be personalised with colors and emojis:

  • 🎨 Beautiful Output: Enhances user experience with visually appealing alerts using Catppuccin's color palette
  • ⚙️ Customizable: Change symbols, colors, and styles per alert or globally
  • Modern UI: Powered by Clack for spinners and animations
  • 🛡️ Type-Safe: Built with TypeScript for reliable development
  • 🌐 Cross-Platform: Works seamlessly on Windows, MacOS, and Linux
  • 🚀 Zero Configuration: Works out of the box with sensible defaults

Perfect for CLI tools, dev utilities, and any Node.js application needing that extra touch of polish. 🎉

👀 Visual Examples

custom-cli-alerts

Default Alerts

// Success
alert({ type: "success", message: "Task completed!" });

// Info with description
alert({
  type: "info",
  message: "New version available",
  description: "UPDATE",
});

// Warning with spinner
alert({
  type: "warning",
  message: "Processing...",
  description: "LOADING",
});

// Error
alert({
  type: "error",
  message: "Operation failed",
});

Custom Styled Alerts

// Custom symbols
configure({
  symbols: {
    success: "🚀",
    info: "💡",
    warning: "⚡",
    error: "💥",
  },
});

// Custom colors
alert({
  type: "info",
  message: "Custom style",
  style: {
    symbol: "⭐",
    color: chalk.hex("#FF69B4"),
  },
});

✨ Features

🎨 Custom colors and symbols 🌈 Powered by Clack for beautiful UI ⚡ Spinners and animations 🎯 TypeScript support 🔧 Cross-platform (Windows, MacOS, Linux)

🚀 Installation

# with Node
npm install stylish-cli-alerts
# run without Node
npx stylish-cli-alerts

🎮 Usage

typescriptCopyimport alert, { configure } from 'stylish-cli-alerts';

// Basic usage
alert({ type: "success", message: "Task completed!" });

// Custom styling
configure({
symbols: {
success: '🚀',
info: '💡'
}
});

// Per-alert styling
alert({
type: "info",
message: "Custom style",
style: {
symbol: '⭐',
color: chalk.hex('#FF69B4')
}
});

🛠️ Tech Stack

TypeScript Clack Chalk

🎨 Color Palette

Styled with Catppuccin's beautiful palette:

  • Success: #179299 (Teal)
  • Error: #e64553 (Red)
  • Info: #7287fd (Blue)
  • Warning: #df8e1d (Yellow)

Special thanks to the Catppuccin team for their wonderful color scheme.

🤝 Contributing

Fork the Project Create Feature Branch (git checkout -b feature/amazing) Commit Changes (git commit -m 'Add feature') Push Branch (git push origin feature/amazing) Open Pull Request

🙏 Acknowledgments

Clack Chalk

Special thanks to:

  • natemoo-re for Clack's beautiful prompts
  • chalk team for terminal styling
  • Ahmad Awais for inspiration from better-cli-alerts
  • Catppuccin for their beautiful color palette
  • All contributors and the open source community

📝 License MIT License - see LICENSE file