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

toastix

v1.0.0

Published

A production-ready React toast component

Downloads

26

Readme

Toastix 🍞

A production-ready, zero-dependency (other than React) toast library that replicates the premium behavior and aesthetics of shadcn/ui Sonner.

Features

  • Zero-Config: No need to render a <Toaster /> component—it mounts itself automatically!
  • Stacked UI: Toasts stack elegantly with dynamic scaling and "expand on hover".
  • Rich UI Design: Support for bold titles, descriptive text, and type-specific circular icons.
  • Smart Borders: Four-sided borders that dynamically match the toast type (Success, Error, etc.).
  • Swipe to Dismiss: Intuitive mobile-friendly interaction.
  • Global API: Lightweight toast() function works anywhere in your application.
  • Extremely Tiny: ~5.3 KB bundle size.

Installation

npm install toastix

Tailwind CSS Requirement: Toastix uses Tailwind classes. Add the library to your tailwind.config.js content array:

module.exports = {
  content: [
    "./node_modules/toastix/dist/**/*.js"
  ],
}

Usage

Just import and call. No wrapper component required!

import { toast } from 'toastix';

function App() {
  const notify = () => toast.success("Success!!", {
    description: "Regularization request has been made for '01 Apr 2026'"
  });

  return (
    <button onClick={notify}>Show Toast</button>
  );
}

API

toast(title, options)

Basic methods:

  • toast.success(title, options)
  • toast.error(title, options)
  • toast.warning(title, options)
  • toast.info(title, options)
  • toast.loading(title, options)
  • toast.dismiss(id)

Options

| Property | Type | Description | | -------- | ---- | ----------- | | description | string \| ReactNode | Secondary descriptive text | | duration | number | Time in ms before auto-dismiss (default: 4000) | | position | 'top-left' \| 'top-right' \| 'bottom-left' \| 'bottom-right' | Placement of the toast container | | richColors | boolean | Use vibrant background colors instead of borders |

toast.promise(promise, messages, options)

toast.promise(saveData(), {
  loading: 'Saving...',
  success: (data) => `Saved ${data.name}!`,
  error: 'Could not save',
}, { position: 'top-right' });

Advanced Manual Control

If you want to pre-configure defaults, you can still render the <Toaster /> component:

import { Toaster } from 'toastix';

<Toaster position="top-center" richColors />

License

MIT