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

ping-toast

v1.0.5

Published

Ultra-lightweight, zero-dependency toast notification system with animated icons, action buttons, and confirm/alert dialogs. ~5kb gzipped.

Readme

PingToast

Ultra-lightweight toast notifications for React & vanilla JS.

Zero deps · ~6kb gzipped · Animated · Fully typed

npm size downloads license

Docs · Playground · Changelog


Install

npm install ping-toast

Quick Start — React

import { PingToaster, toast } from 'ping-toast/react'

export default function App() {
  return (
    <>
      <PingToaster position="top-right" theme="auto" />
      <YourApp />
    </>
  )
}

// then anywhere
toast.success('Saved!')

Quick Start — Vanilla / Vue / Svelte / Angular

import { toast, configure } from 'ping-toast'

configure({ position: 'top-right', theme: 'auto' })

toast.success('Works everywhere!')

Core API

toast('Hello')
toast.success('Saved!')
toast.error('Failed')
toast.warning('Careful')
toast.info('Update available')
toast.loading('Processing...')

toast.promise(fetchData(), {
  loading: 'Loading...',
  success: (d) => `Got ${d.count} items`,
  error:   (e) => e.message,
})

await toast.confirm('Delete?', { confirm: 'Delete', cancel: 'Keep' })
await toast.alert('Session expired')

toast.update(id, { type: 'success', message: 'Done' })
toast.dismiss(id)
toast.dismissAll()

Features

  • 6 toast types — default, success, error, warning, info, loading
  • 5 animations — slide, fade, scale, bounce, flip
  • Promise API — auto loading → success/error
  • Action buttons — undo, retry, anything
  • Confirm / Alert dialogs — drop-in replacements for window.confirm / window.alert
  • Full theming — flat props, works in light & dark
  • Accessible — ARIA live regions, prefers-reduced-motion support
  • Zero deps, ~6kb gzipped, fully typed

Full documentation

Everything — every prop, every option, every pattern — is at pingtoast.1619.in.

| Section | What it covers | |---------|----------------| | Quick Start | Two-step setup for React and vanilla | | Usage Patterns | Declarative vs imperative vs zero-config + debug checklist | | Live Demo | Click every toast type, see the snippet | | Positions | All 6 positions with live preview | | Promise API | Loading → success/error in one call | | Action Buttons | Undo, retry, any inline action | | Theming | Light, dark, auto, custom colors | | API Reference | Every method, prop, and option | | Playground | Try every config live | | Changelog | All releases, dated and categorized | | AI Agent Skill | Ready-to-paste context for Claude / Cursor / Copilot |

Links

License

MIT © Deepak Kumar