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-next-toast

v3.0.1

Published

A premium, modern toast notification system for React applications

Readme

react-next-toast v3.0 🍞

A premium, modern notification system for React applications. Inspired by the refined design language of Linear, Vercel, and Raycast.

npm version license

✨ Features

  • Premium Aesthetics: Glassmorphism surfaces with subtle blur, translucent borders, and refined animations.
  • Intelligent Stacking: Notifications stack elegantly with customizable gaps and responsive positioning.
  • Semantic Variants: Beautifully crafted Success, Error, Warning, Info, and Loading states with matching icons.
  • Imperative & Declarative: Use the standalone toast API or the useToast hook.
  • Promise Support: Handle async states with ease using toast.promise.
  • Lightweight & Fully Typed: Zero external styling dependencies, built with TypeScript.

🚀 Getting Started

Installation

npm install react-next-toast

Setup

Add the ToastProvider to your app root to enable context-based features and global configuration react requires...

import { ToastProvider } from 'react-next-toast';

function App() {
  return (
    <ToastProvider position="bottom-right" theme="dark">
      <Component {...pageProps} />
    </ToastProvider>
  );
}

📖 Usage

Simple Usage

import { toast } from 'react-next-toast';

// Simple toast
toast("Hello world!");

// Variant toasts
toast.success("Yo! Saved successfully");
toast.error("Something went wrong");
toast.warning("Check your settings...");
toast.info("New update just dropped!!");
toast.loading("Loading..."); [NEW]

Advanced Usage

toast.success("Saved successfully", {
  description: "Your changes have been applied to all workspaces.",
  duration: 4000,
  action: {
    label: "Undo",
    onClick: () => console.log("Undo clicked"),
  },
});

Async Promises

const myPromise = fetchData();

toast.promise(myPromise, {
  loading: 'Fetching data...',
  success: (data) => `Loaded ${data.name}!`,
  error: 'Could not fetch data.',
});

Standalone API

No context? No problem. The toast API works anywhere in your application, even outside of React components.

import { toast } from 'react-next-toast';

// this automatically injects a container if not found
toast.success("Build complete!");

🎨 Global Configuration

Configure the default behavior via the ToastProvider or toast.configure.

| Prop | Type | Default | Description | |------|------|---------|-------------| | position | ToastPosition | bottom-right | Position on desktop. Mobile defaults to top-center. | | theme | 'light' \| 'dark' | dark | Visual theme of the toasts. | | maxVisible | number | 5 | Maximum number of toasts visible at once. | | gap | number | 12 | Spacing between stacked toasts in pixels. |

🛠 Backwards Compatibility:

v3.0 preserves the legacy showToast API for a zero-effort upgrade path. Existing calls will automatically use the new premium design.

import { showToast } from 'react-next-toast';

showToast.success('Log in successful');

Contribution

Project is Open-Sourced! Wanna contribute? Feel free to fork the repo and send a PR. I will be sure to merge if its a good piece. Thank you!

Thank you for using react-next-toast! 🙏❤️ If you experience any issue, have any questions or sugestions for improvement, feel free to raise an issue here on GitHub or reach out to me. Your feedback is very vital! ☺:)

Cheers to toasting to simpler and delightful notes! 🥂

📄 License

MIT © Imam Dahir Dan-Azumi