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

logyo

v1.0.3

Published

A beautiful, feature-rich terminal logger with animations, gradients, and comprehensive logging capabilities

Readme

🎨 Logyo

A beautiful, feature-rich terminal logger with animations, gradients, and comprehensive logging capabilities

npm version License: MIT

✨ Features

  • 🎨 Rich Visual Design - Gradient colors, Unicode icons, and beautiful formatting
  • 📊 Performance Monitoring - Built-in metrics tracking and system monitoring
  • 🔒 Security Logging - Dedicated security event tracking with severity levels
  • 🎭 Animations - Loading spinners and dynamic visual effects
  • 🎯 Multiple Log Types - Messages, commands, system events, errors, and more
  • 🛡️ Error Handling - Comprehensive error logging with stack traces
  • High Performance - Optimized for minimal overhead

🚀 Installation

npm install logyo

📖 Quick Start

ES6 Modules (Modern Node.js)

import { logger } from 'logyo';

// Initialize with bot information
logger.logStartup({
  name: '🤖 MY AWESOME BOT 🤖',
  version: '1.0.0',
  commandCount: 25
});

// Log messages
logger.logMessage({
  messageType: 'text',
  body: 'Hello World!',
  senderName: 'Aeon San',
  senderNumber: '',
  chatType: 'private',
  isCommand: false,
  executionTime: 150
});

CommonJS (Traditional Node.js)

const { logger } = require('logyo');

// Same usage as above
logger.logStartup({
  name: '🤖 MY AWESOME BOT 🤖',
  version: '1.0.0',
  commandCount: 25
});

Browser (ES5 Compatible)

// If using in browser with bundler
import { logger } from 'logyo';

// Or with script tag (after building)
const { logger } = window.Logyo;

Logyo API Reference

Core Methods

logger.logStartup(botInfo)

Display a beautiful startup banner with system information.

Parameters:

  • botInfo (Object)
    • name (string, optional) - Bot/Application name (default: "🤖 APPLICATION LOGGER 🤖")
    • version (string) - Bot version
    • commandCount (number) - Number of available commands

logger.logMessage(messageData)

Log incoming messages with rich formatting.

Parameters:

  • messageData (Object)
    • messageType (string) - Type of message
    • body (string) - Message content
    • senderName (string) - Sender's name
    • senderNumber (string) - Sender's number
    • chatType ('group' | 'private') - Chat type
    • groupName (string, optional) - Group name if applicable
    • groupSize (number, optional) - Group member count
    • isOwner (boolean) - Is sender the owner
    • isAdmin (boolean) - Is sender an admin
    • isCommand (boolean) - Is this a command
    • hasMedia (boolean) - Contains media
    • isQuoted (boolean) - Is a quoted message
    • executionTime (number, optional) - Processing time in ms

logger.logCommand(commandName, status, executionTime, context)

Log command execution with status tracking.

Parameters:

  • commandName (string) - Name of the command
  • status ('executing' | 'success' | 'error' | 'cooldown' | 'permission') - Command status
  • executionTime (number, optional) - Execution time in milliseconds
  • context (Object, optional) - Additional context data

logger.logSystem(message, type, category)

Log system events with categorization.

Parameters:

  • message (string) - Log message
  • type ('success' | 'error' | 'warning' | 'info' | 'debug' | 'security' | 'performance') - Log type
  • category (string) - Event category (default: 'SYSTEM')

logger.logError(error, context)

Log errors with stack traces and context.

Parameters:

  • error (Error) - Error object
  • context (Object, optional) - Additional context
    • command (string) - Command that caused the error
    • user (string) - User identifier
    • stack (string) - Custom stack trace

logger.logPerformance(stats)

Display performance dashboard with system metrics.

Parameters:

  • stats (Object)
    • commandsExecuted (number) - Total commands executed
    • averageResponseTime (number) - Average response time in ms
    • commandsPerMinute (number) - Commands per minute rate
    • errors (number) - Total error count
    • uptime (number) - Uptime in milliseconds

logger.logConnection(status, details)

Log connection status changes.

Parameters:

  • status ('connecting' | 'connected' | 'disconnected' | 'reconnecting') - Connection status
  • details (Object, optional) - Additional connection details

logger.logSecurity(event, severity, details)

Log security events with severity levels.

Parameters:

  • event (string) - Security event description
  • severity ('low' | 'medium' | 'high' | 'critical') - Event severity
  • details (Object, optional) - Event details

Animation Methods

logger.loading(message, type)

Start a loading animation.

Parameters:

  • message (string) - Loading message
  • type ('dots' | 'spin' | 'bounce' | 'pulse' | 'wave') - Animation type

Returns:

  • Interval ID for clearing the animation

logger.clearLoading()

Clear the current loading animation.


Utility Access

Access colors, icons, and utility functions.

// Access colors, icons, and utility functions
const { colors, icons, utils } = logger;

// Create custom separators
console.log(utils.createSeparator('=', 50, colors.primary));

// Create custom boxes
console.log(utils.createBox('Custom content', 'Title', colors.success));

// Format utilities
console.log(utils.formatBytes(1024000)); // "1000 KB"
console.log(utils.formatDuration(65000)); // "1m 5s"

🎨 Customization

Colors

The logger includes an extensive color palette:

  • primary, secondary, success, warning, error
  • info, owner, admin, group, private
  • command, media, quoted, time, user
  • message, system, debug, performance
  • security, bot, neon, gold

Icons

Unicode icons for various elements:

  • Status: success, error, warning, info
  • Users: owner, admin, user, bot
  • System: time, shield, key, lock, gear
  • Special: sparkles, diamond, crown, magic

Configuration

Currently, Logyo uses sensible defaults. Future versions will include:

  • Custom color schemes
  • Configurable file paths
  • Log level filtering
  • Custom formatters


🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.