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

pingmeup

v1.0.4

Published

Professional notification system for Electron applications with 20+ notification types, rich content, animations, and cross-platform theming

Readme

PingMeUp 🔔

Professional notification system for Electron applications with native OS-like experience.

Features

  • 🎨 Native-like design - Matches Windows, macOS, and Linux notification styles
  • Simple API - Easy to use with minimal configuration
  • 🎯 Multiple types - Info, success, warning, error notifications
  • ⏱️ Customizable duration - 5-second default, customizable, or persistent notifications
  • 🎨 Theme support - Light/dark themes with automatic system detection
  • 📍 Positioning - Top/bottom, left/right positioning options
  • 🔍 Real-time debugging - Comprehensive console logging for troubleshooting
  • 🏗️ TypeScript support - Full type definitions included

Installation

npm install pingmeup
# or
yarn add pingmeup

Quick Start

const { ElectronNotificationManager } = require('pingmeup');

// Initialize the notification manager
const notificationManager = new ElectronNotificationManager();

// Show different types of notifications
await notificationManager.info('Hello!', 'This is an info notification');
await notificationManager.success('Success!', 'Operation completed');
await notificationManager.warning('Warning!', 'Something needs attention');
await notificationManager.error('Error!', 'Something went wrong');

API Reference

Constructor

const notificationManager = new ElectronNotificationManager(defaultOptions);

Default Options:

  • type: 'info' - Default notification type
  • duration: 5000 - Default duration in milliseconds (0 = no auto-close)
  • theme: Auto-detected system theme ('light' | 'dark' | 'windows' | 'macos' | 'linux')
  • clickToClose: true - Allow click to close
  • position: 'top-right' - Default position

Methods

show(options) - Show Custom Notification

const id = await notificationManager.show({
  title: 'Custom Title',
  message: 'Custom message',
  type: 'info', // 'info' | 'success' | 'warning' | 'error'
  duration: 5000, // milliseconds, 0 = no auto-close
  icon: '🔔', // Custom emoji or icon
  theme: 'dark', // 'light' | 'dark' | 'windows' | 'macos' | 'linux'
  clickToClose: true,
  position: 'top-right' // 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'
});

Convenience Methods

// Info notification (5 seconds)
await notificationManager.info(title, message, duration?);

// Success notification (5 seconds)
await notificationManager.success(title, message, duration?);

// Warning notification (7 seconds)
await notificationManager.warning(title, message, duration?);

// Error notification (no auto-close)
await notificationManager.error(title, message, duration?);

Management Methods

// Close specific notification
notificationManager.close(id);

// Close all notifications
notificationManager.closeAll();

// Get active notification count
const count = notificationManager.getActiveCount();

Examples

Basic Usage

const { app, BrowserWindow } = require('electron');
const { ElectronNotificationManager } = require('pingmeup');

let notificationManager;

app.whenReady().then(() => {
  // Initialize with custom defaults
  notificationManager = new ElectronNotificationManager({
    theme: 'windows',
    position: 'top-right',
    duration: 4000
  });

  // Show welcome notification
  notificationManager.info(
    'Welcome!', 
    'Application started successfully'
  );
});

Advanced Usage

// Long-running operation with progress
const id = await notificationManager.show({
  title: 'Processing...',
  message: 'This may take a while',
  type: 'info',
  duration: 0, // Don't auto-close
  clickToClose: false
});

// Update notification when done
setTimeout(() => {
  notificationManager.close(id);
  notificationManager.success('Done!', 'Processing completed');
}, 5000);

Different Themes

// Windows style
notificationManager.show({
  title: 'Windows Style',
  message: 'Square corners, Segoe UI font',
  theme: 'windows'
});

// macOS style  
notificationManager.show({
  title: 'macOS Style',
  message: 'Rounded corners, SF Pro font',
  theme: 'macos'
});

// Linux style
notificationManager.show({
  title: 'Linux Style',
  message: 'Ubuntu font, moderate rounding',
  theme: 'linux'
});

Debugging

All operations are logged to the console with prefixed tags:

[NOTIFICATION MANAGER] Initialized with defaults: {...}
[NOTIFICATION MANAGER] Creating notification notification-1: {...}
[NOTIFICATION notification-1] Template loaded successfully
[NOTIFICATION notification-1] Setting up notification with data: {...}
[NOTIFICATION notification-1] Auto-close set for 5000ms

Error Handling

The system includes comprehensive error handling:

try {
  await notificationManager.show({
    title: 'Test',
    message: 'Test message'
  });
} catch (error) {
  console.error('Failed to show notification:', error);
}

Testing

Run the included example to test the notification system:

cd example
node simple-test.js

This will show various notification types with different durations and settings.

Requirements

  • Electron 20.0.0 or higher
  • Node.js 16.0.0 or higher

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Support

For issues and questions: