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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jAlert

v6.0.0

Published

Simple jQuery (Modal | Popup | Lightbox | Alert) Plugin - ES5 compatible

Readme

Join the chat at https://gitter.im/jAlert/Lobby License Build npm

jAlert - The Ultimate jQuery Modal & Lightbox Plugin

✨ Why Choose jAlert?

🎯 Perfect for jQuery Sites - If you're already using jQuery, jAlert integrates seamlessly without adding bulky dependencies. No need to learn new frameworks or rewrite existing code.

⚡ Zero Config - Include JS/CSS and add a modal immediately, no complicated setup.

🎨 Beautiful by Default - 12 built-in themes with smooth animations. Your modals will look professional out of the box.

📱 Responsive Design - Works perfectly on desktop, tablet, and mobile with touch-friendly controls and swipe gestures.

♿ Basic Accessibility - Keyboard navigation, screen reader support, and ARIA attributes for better usability.

🎯 When to Use jAlert

  • Simple Modal Needs - Quick alerts, confirmations, or information dialogs
  • Image & Video Galleries - Lightbox slideshows with navigation controls
  • Content Previews - Show videos, iframes, or AJAX content in modals
  • Form Dialogs - Login forms, contact forms, or any interactive content
  • jQuery Projects - Perfect addition to existing jQuery-based websites
  • Quick Prototypes - Get beautiful modals running in minutes, not hours

Browser Compatibility

Minimum browser versions that should fully support this plugin:

  • Chrome: 30+
  • Firefox: 28+
  • Safari: 7+
  • Edge: 12+
  • Opera: 17+
  • Internet Explorer: 11 (with jQuery polyfills, but MutationObserver support is limited)

Note: IE10 and below are not fully supported due to missing ES5 features and MutationObserver.

🚀 Quick Start

Installation

npm install jalert

Basic Usage

<!-- Include jQuery first -->
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>

<!-- Include jAlert -->
<link rel="stylesheet" href="node_modules/jalert/dist/jAlert.min.css">
<script src="node_modules/jalert/dist/jAlert.min.js"></script>
// Simple alert
$.jAlert({
    title: 'Success!',
    content: 'Your action was completed successfully.',
    theme: 'green'
});

// Image lightbox
$.jAlert({
    image: 'path/to/image.jpg',
});

// Video lightbox
$.jAlert({
    video: 'https://embed.youtube.com/my-video',
});

// Slideshow gallery
$.jAlert({
    slideshow: ['image1.jpg', 'image2.jpg', 'image3.jpg'],
    slideshowOptions: {
        autoAdvance: true,
        showArrows: true,
        showCounter: 'dots'
    }
});

🎨 Key Features

📱 Responsive & Mobile-Friendly

  • Works perfectly on desktop, tablet, and mobile
  • Touch-friendly controls and gestures
  • Adaptive sizing for different screen sizes

🖼️ Rich Media Support

  • Images - Lightbox with zoom and navigation
  • Videos - YouTube, Vimeo, and direct video files
  • Slideshows - Multi-image galleries with controls
  • Iframes - Embed any web content
  • AJAX - Load dynamic content

🎭 Beautiful Themes

14 built-in themes: default, green, red, blue, yellow, orange, brown, gray, black, and dark variants (dark_green, dark_red, dark_blue, dark_gray, dark_orange).

⌨️ Keyboard & Accessibility

  • Full keyboard navigation (ESC, arrow keys)
  • Basic screen reader support with ARIA attributes
  • Focus management and semantic HTML
  • Touch-friendly controls with swipe gestures

⚙️ Flexible Configuration

  • Custom sizes and positioning
  • Animation controls
  • Auto-advance slideshows
  • Loop and navigation options

📖 Documentation & Examples

🎮 Live Demo: View Interactive Examples

📚 Full Documentation: Complete API Reference

🔄 Changelog: Version History

⬆️ Upgrade Guide: Migration Instructions

🔧 Requirements

  • jQuery 3.7.0+ (peer dependency)
  • Modern browsers (see browser compatibility below)

🛠️ Development

Setup

git clone https://github.com/HTMLGuyLLC/jAlert.git
cd jAlert
npm install

Build & Test

# Build commands
npm run build      # Production build (minified)
npm run dev        # Development build with watch mode

# Test commands
npm test           # Run unit tests only (fastest)
npm run test:unit  # Run unit tests only (alias)
npm run test:e2e   # Run end-to-end tests with Puppeteer
npm run test:all   # Run unit + e2e tests (full test suite)npm

📋 Test Coverage:

  • Unit Tests: Core functionality, slideshow features, and API methods
  • E2E Tests: Real browser testing with Puppeteer for user interactions
  • Visual Regression: Screenshot comparison testing for UI consistency

🧪 Test Requirements:

  • E2E tests require Chrome/Chromium browser
  • Visual tests may skip if browser dependencies are unavailable
  • All tests work in CI/CD environments with --no-sandbox flag

🤝 Contributing

We welcome contributions! See our Contributing Guide for details.

Quick Start:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

📄 License

MIT License - see LICENSE file for details.

🆘 Support

☕ Support the Project

If jAlert has been helpful to you, consider buying me a coffee! Your support helps maintain and improve this project.

☕ Buy me a coffee


Made with ❤️ by HTMLGuy, LLC