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

uivibe-pro-toaster

v1.0.1

Published

Premium, universal, zero-dependency toast notifications under 5 kB. Works with Vanilla JS, React, Vue, Next.js and any other framework via ESM, CJS, or CDN.

Downloads

147

Readme

uivibe-pro-toaster

Lightweight toast notification library for React, Next.js, Vue, and Vanilla JavaScript.

npm version npm downloads license live demo

Premium, universal, zero-dependency toast notifications under 5 kB gzipped. Works in Vanilla JS, React, Vue, Next.js, Svelte, Solid, PHP/Laravel, Python/Django — anywhere you can run a script tag or import a module.

Links

  • Live demo: https://uivibe-pro-toaster-landing.vercel.app/

  • npm package: https://www.npmjs.com/package/uivibe-pro-toaster

  • GitHub repository: https://github.com/rashaduldev/uivibe-pro-toaster

  • Issues: https://github.com/rashaduldev/uivibe-pro-toaster/issues

  • Latest version: 1.0.0

  • License: MIT

  • Install command: npm install uivibe-pro-toaster

  • < 5 kB gzipped — ESM / CJS / Browser-global (UMD-style IIFE)

  • 🧊 Glassmorphism with backdrop-filter, beautiful built-in SVG icons

  • Promise-based API for async loading → success / error transitions

  • 🧱 Smart stacking with per-position queue and max-visible cap

  • 🤙 Swipe / drag to dismiss (mouse + touch via Pointer Events)

  • 🖱️ Pause on hover & focus with accurate remaining-time tracking

  • 🎨 9 positions, dark / light / auto theme, full CSS variables

  • Full ARIA (role="status" / role="alert", aria-live, focusable close)

  • 🧩 Zero dependencies, TypeScript-first, framework-agnostic

Install

npm install uivibe-pro-toaster
# or
pnpm add uivibe-pro-toaster
yarn add uivibe-pro-toaster
bun add uivibe-pro-toaster

CDN (browser global Toast):

<script src="https://unpkg.com/uivibe-pro-toaster/dist/index.global.js"></script>
<script>Toast.success("Hello!");</script>

Usage guide

Choose the import style that matches your app:

import { toast } from "uivibe-pro-toaster";
const { toast } = require("uivibe-pro-toaster");
<script src="https://unpkg.com/uivibe-pro-toaster/dist/index.global.js"></script>
<script>
  Toast.success("Saved!");
</script>

Quick start

import { toast } from "uivibe-pro-toaster";

toast.success("Listing saved!");
toast.error("Something broke", { duration: 6000 });

toast.promise(api.save(form), {
  loading: "Saving…",
  success: "Saved!",
  error: "Failed",
});

API

| Method | Signature | Notes | | --- | --- | --- | | toast(msg, opts?) | (string, ToastOptions?) => id | Default type | | toast.success(msg, opts?) | same | Green success icon | | toast.error(msg, opts?) | same | role="alert", aria-live="assertive" | | toast.info(msg, opts?) | same | | | toast.warning(msg, opts?) | same | | | toast.loading(msg, opts?) | same | Infinite duration + spinner | | toast.promise(p, msgs, opts?) | (Promise, {loading, success, error}) => Promise | Async pipeline | | toast.update(id, partial) | | Change type / message / duration in place | | toast.dismiss(id?) | | One or all | | toast.configure(globalConfig) | | Defaults for every subsequent toast |

Options

| Key | Type | Default | | --- | --- | --- | | duration | number \| Infinity | 4000 | | position | one of 9 positions | top-right | | icon | string \| false | auto by type | | dismissible | boolean | true | | pauseOnHover | boolean | true | | swipeToDismiss | boolean | true | | progress | boolean | true | | theme | 'light' \| 'dark' \| 'auto' | auto | | description | string | — | | action | { label, onClick } | — | | html | string (custom markup) | — | | className, style | DOM passthrough | — | | onShow, onDismiss, onClick | callbacks | — |

Configuration (defaults)

toast.configure({
  position: "bottom-right",
  duration: 5000,
  maxVisible: 4,
  theme: "auto",   // 'light' | 'dark' | 'auto'
  gap: 12,
  zIndex: 9999,
});

Theming

Every visual is controlled by CSS variables. Override them anywhere in your app:

:root {
  --uvt-bg: rgba(255, 255, 255, 0.85);
  --uvt-text: #0f172a;
  --uvt-radius: 16px;
  --uvt-success: #16a34a;
  --uvt-error: #dc2626;
  --uvt-font: "Inter", system-ui, sans-serif;
}

React / Next.js

"use client";
import { useEffect } from "react";
import { toast } from "uivibe-pro-toaster";

export default function Demo() {
  useEffect(() => toast.configure({ position: "bottom-right" }), []);
  return <button onClick={() => toast.success("Saved!")}>Save</button>;
}

Browser support

Modern evergreen browsers (Chrome, Edge, Firefox, Safari). backdrop-filter degrades gracefully to a solid background.

License

MIT