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

react-notifire

v1.0.1

Published

A powerful, feature-rich notification library for React applications

Readme

React-Notifire, a powerful notification library for React applications

A powerful, feature-rich notification system for React applications with advanced customization and interaction capabilities.

Features

  • 🎨 Multiple notification types (SUCCESS, ERROR, WARNING, INFO)
  • ⚡ Priority levels (URGENT, HIGH, NORMAL, LOW)
  • 🎭 Animation presets (fade, slide, bounce, shake, flash)
  • 📝 Markdown support
  • 🖼️ Image support
  • ↩️ Undo dismiss functionality
  • 🎯 Click-to-copy functionality
  • 📱 Swipe-to-dismiss support
  • ⏸️ Pause on hover
  • 🎨 Highly customizable styles
  • 🔄 Queue system for smooth notification handling

Installation

npm install react-notifire
# or
yarn add react-notifire

Quick Start

import { NotificationProvider, useNotification } from 'react-notifire';
import 'react-notifire/dist/index.css';

// Wrap your app with NotificationProvider
function App() {
  return (
    <NotificationProvider>
      <YourComponent />
    </NotificationProvider>
  );
}

// Use notifications in any component
function YourComponent() {
  const { addNotification } = useNotification();

  const showNotification = () => {
    addNotification(
      'Operation successful!',
      'SUCCESS',
      {
        title: 'Success',
        description: 'Your action has been completed'
      }
    );
  };

  return <button onClick={showNotification}>Show Notification</button>;
}

API Reference

NotificationProvider Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | position | string | 'top-right' | Notification position ('top-right', 'top-left', 'bottom-right', 'bottom-left', 'top-center', 'bottom-center') | | maxNotifications | number | 5 | Maximum number of notifications shown at once | | defaultDuration | number | 5000 | Default duration in milliseconds | | pauseOnHover | boolean | true | Pause notification timer on hover | | enableUndo | boolean | true | Enable undo dismiss functionality | | allowMarkdown | boolean | true | Enable markdown support |

useNotification Hook

const { addNotification, removeNotification, undoLastDismissal } = useNotification();

addNotification Parameters

addNotification(
  message: string,
  type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO',
  customStyle?: {
    title?: string,
    description?: string,
    actions?: Array<{
      label: string,
      onClick: () => void,
      className?: string
    }>
  },
  duration?: number,
  priority?: 'URGENT' | 'HIGH' | 'NORMAL' | 'LOW'
);

Notification Types

  • SUCCESS: Green theme, CheckCircle icon
  • ERROR: Red theme, XCircle icon
  • WARNING: Yellow theme, AlertTriangle icon
  • INFO: Blue theme, Info icon

Priority Levels

  • URGENT: Infinite duration, requires manual dismissal
  • HIGH: 8000ms duration
  • NORMAL: 5000ms duration
  • LOW: 3000ms duration

Animation Presets

  • fade
  • slide
  • bounce
  • shake
  • flash

Advanced Usage

Custom Styling

addNotification(
  'Custom styled notification',
  'INFO',
  {
    title: 'Custom Style',
    description: 'This notification has custom styling',
    background: 'bg-purple-100',
    text: 'text-purple-800',
    border: 'border-purple-200'
  }
);

With Markdown

addNotification(
  '**Bold text** and *italic text*\n- List item 1\n- List item 2',
  'INFO',
  {
    title: 'Markdown Support',
    description: 'This notification uses markdown'
  }
);

With Image

addNotification(
  'Check out this image!',
  'INFO',
  {
    title: 'Image Example',
    description: 'This notification includes an image'
  },
  5000,
  'NORMAL',
  null,
  null,
  'general',
  'slide',
  'https://example.com/image.jpg'
);

Contributing

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

License

MIT