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

honey-toast

v1.0.4

Published

A framework agnostic simple yet powerful Toast Alert or Notification Library

Downloads

46

Readme

Honey-Toast

A framework agnostic simple yet powerful Toast Alert or Notification library that offers tons of customization, designs and animations.

Demo and Playground:

View Demos and Play with different animations and designs. You can just copy the generated code and start using in your project.

Documentation

Complete list of APIs only available in the Documentation..

Honey Toast

Main Features:

  • Easier installation and integrations
  • Use with any Javascript framework as it has zero dependencies.
  • Huge collections of beautiful designs and categories
  • Lot of built in animations to create interactive toast alert
  • Control over the states of notifications
  • Light, Dark and Sytem Default themes are supported
  • Creating custom designs is way easier
  • Playground to create Notifications and copy the generated code.

Installation:

Install via npm:

npm i honey-toast --save

Install via yarn:

yarn add honey-toast

Install via pnpm:

pnpm add honey-toast

Install via CDN

<link href="https://cdn.jsdelivr.net/npm/honey-toast@latest/dist/style.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/honey-toast@latest/dist/toast.umd.min.js"></script>
<script>
    toast.notify("Hi There!")
</script>

Usage Example:

Create notification with default configurations.

import toast from 'honey-toast';
import 'honey-toast/dist/style.css';

toast.notify("Hi There!")

Create different type of notifications using simpler api:

toast.success("Your information have been udpated!")
toast.info("Email has been delivered!")
toast.warn("Stock is limited")
toast.error("Ooops, something went wrong")

Create more advanced toast notification with tons of options. Please have a look into our the API Documentation to find the complete list of options.

const notification = toast.notify(
  {
    title: "Hi, there!",
    message: "Thank you for subscribing our service.",
    buttons: [
      {
        iconUrl: "YOUR_ICON_DIR/close.svg",
        label: "Cancel",
        classes: [],
        onClick: () => {
          console.log("Canceling...");
        },
      },
      {
        iconUrl: "YOUR_ICON_DIR/tick.svg",
        classes: [],
        label: "Confirm",
        onClick: () => {
          console.log("Confirming...");
        },
      },
    ],
  },
  {
    duration: 3000,
    position: "top-right",
    type: "success",
    animation: "slide",
    hasProgressBar: false,
    offset: { x: 30, y: 30 },
    classNames: [],
  }
);

Closing notifications:

const notification = toast.notify("Hi There!");
// close once you need
notification.close();

// to close all notifications:
notification.closeAll();

Updating existing notification in different circumstances:

const notification = toast.notify("Your requst is being processed", {hasProgressBar: true});
// once you need to update the status
notification.update("Request has been processed", {type: "success"})

// you may want to show error message if request was not handled correctly
notification.update("Ooops! Something went wrong", {type: "error"});

Change Log:

  • V1.0.0: Initial version released on 16-02-2025
  • V1.0.2: Released on 17-02-2025
    • Fixed CSS.px firefox browser support issue

Contributors:

Rahul Baruri

License

Distributed under the MIT License.