# Toasts and alerts

Show short messages that come and go, such as “Saved”, and alert dialogs. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [Sonner](https://elestia.ai/opensource/toasts/sonner/index.md) | 7.7 | 5.6 | 8.1 | 5.6 | 7.5 | 7.6 | 8.0 | React and Next.js teams that want polished toasts from one toast() call, with little setup. |
| 2 | [React-Toastify](https://elestia.ai/opensource/toasts/react-toastify/index.md) | 7.2 | 5.9 | 7.7 | 6.5 | 6.8 | 6.2 | 6.8 | React teams that want a toast library with many built-in options (RTL, swipe, transitions, update/promise toasts, limits) and a long, stable track record. |
| 3 | [react-hot-toast](https://elestia.ai/opensource/toasts/react-hot-toast/index.md) | 6.7 | 5.2 | 7.1 | 5.1 | 6.4 | 6.3 | 6.7 | React teams that want the smallest toast library, or a headless hook to render toasts in their own design system. |
| 4 | [SweetAlert2](https://elestia.ai/opensource/toasts/sweetalert2/index.md) | 6.6 | 6.5 | 7.3 | 6.9 | 6.0 | 5.2 | 5.4 | Projects on any stack, including plain JS, jQuery, Laravel and Vue, that need ready-made, accessible confirm and prompt dialogs with a promise-based result. |
| 5 | [Vue Sonner](https://elestia.ai/opensource/toasts/vue-sonner/index.md) | 6.2 | 4.0 | 6.7 | 4.1 | 5.6 | 5.8 | 7.2 | Vue 3 and Nuxt teams, especially shadcn-vue users, who want good-looking stacked toasts with almost no setup. |
| 6 | [notistack](https://elestia.ai/opensource/toasts/notistack/index.md) | 4.6 | 4.8 | 5.6 | 3.1 | 5.3 | 5.3 | 5.9 | Existing React and Material UI apps that already use it and need a queue of stacked snackbars. |
| 7 | [Toastify JS](https://elestia.ai/opensource/toasts/toastify-js/index.md) | 4.5 | 6.0 | 5.2 | 2.6 | 3.4 | 4.1 | 6.3 | Plain HTML or server-rendered pages that need a drop-in toast script with no build step and no dependencies. |
| 8 | [Notyf](https://elestia.ai/opensource/toasts/notyf/index.md) | 4.0 | 5.9 | 5.5 | 2.2 | 3.5 | 3.2 | 6.2 | Existing vanilla JavaScript or server-rendered sites that already use it and only need simple success and error toasts. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| Sonner | 230M | ×9.5 | 13k | 5 | Aug 2026 | 0 |
| React-Toastify | 21M | +83% | 13k | 27 | Oct 2026 | 0 |
| react-hot-toast | 20M | ×2.7 | 11k | 5 | Sept 2026 | 0 |
| SweetAlert2 | 4.8M | +60% | 18k | 110 | May 2026 | 0 |
| Vue Sonner | 13M | ×17 | 1.5k | 2 | Oct 2025 | 0 |
| notistack | 11M | ×2.4 | 4.1k | 1 | Jan 2025 | 0 |
| Toastify JS | 644k | +79% | 2.5k | 0 | Jul 2022 | 0 |
| Notyf | 263k | +96% | 2.9k | 0 | Jun 2021 | 0 |

All categories: https://elestia.ai/opensource/index.md
