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

logger-alvamind

v1.0.5

Published

A colorful and informative logger with resource usage for Node.js

Readme

🚀 logger-alvamind 🌈

Your Colorful Companion for Node.js Logging!

npm version npm downloads npm license GitHub stars GitHub forks

Tired of boring, monochrome logs? logger-alvamind is here to spice things up! 🎉 This library provides a colorful, informative, and resource-aware logging experience for your Node.js applications. It's like giving your console a fresh coat of paint and a dashboard all in one! 🎨📊

✨ Features & Benefits

  • 🌈 Colorful Logging:
    • Each log level (info, warn, error, debug, verbose, resource) gets its own vibrant color scheme, making it easy to distinguish different messages at a glance.
    • Uses ANSI escape codes, so it works on most modern terminals.
  • ⏱️ Timestamps:
    • Every log message is automatically prefixed with a timestamp, so you know exactly when it happened.
  • 🗂️ File Name Tracking:
    • Logs include the file name where the log was called, making debugging a breeze.
  • 📊 Real-Time Resource Usage:
    • Display your application's current CPU and RAM usage directly in your console. No need for external tools!
    • Resource usage is updated every second.
    • Only updates when there is a change, preventing flickering on the console.
  • ✉️ Message Rate Tracking:
    • You can display the current message rate, for example, messages per second.
  • 🧹 Clean Output:
    • Clears the current line before logging the message, making the output clean and avoiding messy overlaps.
  • 🛠️ Easy to Use:
    • Simple API with methods for each log level, just like your standard console.log.
  • 📦 Lightweight:
    • Minimal dependencies to keep your project lean and fast.
  • ⌨️ TypeScript Support:
    • Written in TypeScript with full type definitions for a smooth development experience.

⚙️ Installation

Get started in a flash! ⚡️

npm install logger-alvamind

🚀 Quick Start

Here's a simple example to get you logging like a pro! 😎

import { logger, setMesageRateString } from 'logger-alvamind';

logger.info('This is an info message.');
logger.warn('Watch out! Something might be fishy.');
logger.error('Houston, we have a problem!');
logger.debug('Debugging this logic...');
logger.verbose('More details, for the nerds!');
logger.resource('Resource usage info.');
setMesageRateString('120 messages/sec');

📖 API Reference

logger Object

  • logger.info(message: string, ...args: any[]): void
    • Logs an informational message in green shades.
    • message: The main log message string.
    • ...args: Optional additional arguments to log.
  • logger.warn(message: string, ...args: any[]): void
    • Logs a warning message in orange shades.
    • message: The main log message string.
    • ...args: Optional additional arguments to log.
  • logger.error(message: string, ...args: any[]): void
    • Logs an error message in red shades.
    • message: The main log message string.
    • ...args: Optional additional arguments to log.
  • logger.debug(message: string, ...args: any[]): void
    • Logs a debug message in light blue shades.
    • message: The main log message string.
    • ...args: Optional additional arguments to log.
  • logger.verbose(message: string, ...args: any[]): void
    • Logs a verbose message in light grey shades.
    • message: The main log message string.
    • ...args: Optional additional arguments to log.
  • logger.resource(message: string, ...args: any[]): void
    • Logs a resource message in dark green shades.
    • message: The main log message string.
    • ...args: Optional additional arguments to log.
  • logger.clear(): void
    • Clear the current line on the console.

setMesageRateString(messageRate: string): void

  • Set the message rate string that will be displayed in resource usage info.
    • messageRate: The message rate string.

🛣️ Roadmap

Here's what we have planned for the future:

✅ Done

  • [x] Basic colorful logging with different levels.
  • [x] Timestamps in log messages.
  • [x] Tracking of the filename where the log is called.
  • [x] Display CPU and RAM usage in console.
  • [x] Clear current line before logging.
  • [x] Display custom message rate.
  • [x] Initial release as an npm package.
  • [x] Comprehensive documentation and examples.

⏳ In Progress

  • [ ] Implement log formatting options.
  • [ ] Add configurable refresh rate for resource usage display.
  • [ ] Explore adding log filtering based on levels.

🚀 Future Goals

  • [ ] Add support for log file output.
  • [ ] Create a visual dashboard for resource tracking.
  • [ ] Make colors and styles customizable through configuration.
  • [ ] Add more log levels (e.g., fatal).
  • [ ] Explore integrations with other logging tools.

📝 Contribution

Contributions are always welcome! 🎉 If you have ideas for new features, improvements, or bug fixes, feel free to:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make your modifications and commit them with descriptive messages.
  4. Submit a pull request.

We appreciate your help in making logger-alvamind even better! 💪

💰 Donation

If you find this library useful and want to support its development, you can donate via:

Any amount is greatly appreciated! 🙏 Your support helps keep this project alive and thriving.

⚠️ Disclaimer

This library is provided as is, without any warranty. We strive to keep it bug-free and useful, but we cannot guarantee that it will meet all of your specific needs. Use it at your own risk. By using this library, you agree to our terms of use.

📜 License

logger-alvamind is licensed under the MIT License. Feel free to use, modify, and distribute it in your projects.

🤝 Stay Connected

We'd love to hear from you! Share your thoughts, ideas, and experiences using logger-alvamind. Let's make logging awesome! 🤘

Let's Get Logging! 🚀