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

aura-toast

v1.4.0

Published

Premium React toast notifications with glassmorphism design. Lightweight, customizable, and enforces a single-toast constraint for clean UI.

Downloads

1,000

Readme

AuraToast: Premium React Toast & Notification Manager

AuraToast Preview

A high-performance npm package for React toast notifications with a stunning glassmorphism design and a strict "single-toast-at-a-time" constraint.

Live Demo & Playground

Features

  • Unique Aesthetic: Modern glassmorphism design with backdrop-filter, glowing borders, and sleek transitions.
  • 🚫 Anti-Clutter: Enforces a single toast policy. New toasts automatically replace the current one.
  • 🛠️ Framework Agnostic Core: Core logic is written in TypeScript and can be used with any framework.
  • ⚛️ React Ready: Comes with first-class React support (AuraProvider, useAuraToast).
  • 🎨 Highly Customizable: Uses CSS variables for easy theme adjustments.

Why AuraToast?

In a world of cluttered notification stacks, AuraToast takes a "less is more" approach. It's built for developers who want:

  • Focus: The single-toast constraint ensures users are never overwhelmed.
  • Aesthetics: Premium glassmorphism UI that fits modern, high-end applications.
  • Lightweight: Zero-dependency core with first-class React support.
  • Performance: Optimized for speed and smooth transitions.

Installation

# npm
npm install aura-toast

# yarn
yarn add aura-toast

# pnpm
pnpm add aura-toast

# bun
bun add aura-toast

Quick Start (React)

  1. Import the styles in your main entry file (e.g., main.tsx or App.tsx):
import 'aura-toast/dist/style.css';
  1. Wrap your application with AuraProvider:
import { AuraProvider } from 'aura-toast';

Live Demo

Check out the interactive showcase: [Live Demo Link (GitHub Pages/Vercel)]

[!TIP] Single Toast Policy: AuraToast is designed for focus. Each new toast replaces the previous one with a smooth transition, preventing UI clutter.

  1. Trigger toasts using the auraToast object:
import { auraToast } from 'aura-toast';

function MyComponent() {
  const handleClick = () => {
    auraToast.success('Changes saved successfully!', {
      action: {
        label: 'Undo',
        onClick: () => console.log('Undo clicked'),
      }
    });
  };

  return <button onClick={handleClick}>Save</button>;
}

Vanilla JS & Other Frameworks

AuraToast is built with a Framework-Agnostic Core. While we provide React components for convenience, you can easily use it with any framework (Vue, Svelte, Angular) or Vanilla JS by subscribing to the toastStore.

Usage in Vanilla JS

import { auraToast, toastStore } from 'aura-toast';
import 'aura-toast/dist/style.css';

// 1. Subscribe to the store to handle rendering
toastStore.subscribe((config) => {
  if (config) {
    // Render your own toast UI or use the provided CSS classes
    console.log('Show toast:', config.message);
  } else {
    // Hide toast
    console.log('Hide toast');
  }
});

// 2. Trigger toasts as usual
auraToast.success('Works in Vanilla JS too!');

API

auraToast.success(message, config?)

auraToast.error(message, config?)

auraToast.info(message, config?)

auraToast.warning(message, config?)

auraToast.dismiss()

Configuration Object

| Property | Type | Description | | --- | --- | --- | | duration | number | Time in ms before auto-dismiss (default: 4000). Set to 0 for sticky toasts (remains until replaced or manual dismiss). | | action | { label: string, onClick: () => void } | Optional action button. |

Customization

You can override the default styles by providing values for these CSS variables:

:root {
  --aura-bg: rgba(17, 25, 40, 0.75);
  --aura-success: #10b981;
  /* ... see aura-toast.css for more */
}

License

MIT