Elestia Open Source Ratings
6.7

react-hot-toast

Reasonable, with limits. 3rd of 8 toasts and alerts.

react-hot-toast is a small (about 5 kB), simple React toast library with a promise API and a headless hook. It still works well and is widely used. For most new projects Sonner is now the more common and more actively developed pick, but react-hot-toast remains a sound choice when bundle size or fully custom markup matters most.

Best for: React teams that want the smallest toast library, or a headless hook to render toasts in their own design system.

WebsiteGitHubnpm

Scores

Overall6.7

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

It is a good, tiny and stable toast library that still works on current React. Sonner now does the same job with better polish, keyboard access and momentum for most new projects, and react-hot-toast's slow maintenance and below-median growth hold it back. It stays a solid pick when bundle size or headless rendering matters most.

GPT-6.2 Sol: 6.9, likely 5.8 to 7.9

For simple React status messages, the small bundle and straightforward promise API make react-hot-toast a good choice. Sonner is the better general-purpose pick for new React projects that need actions and keyboard access, and SweetAlert2 covers alert dialogs. The slow release pace, reported headless packaging issue, and below-baseline download growth reduce confidence in making it the default.

Needed by many5.2

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Most web apps need toasts, but this library only serves React. It covers toasts only, not alert dialogs, so it fills part of the category's job for a large but framework-bound group.

GPT-6.2 Sol: 5.4, likely 4.3 to 6.5

Short status messages are common in interactive web apps, and React gives this library a large audience. Its rendering targets React web apps, and teams that need alert dialogs or work outside React need another tool. The framework survey measures React use but leaves the share of projects that need a dedicated toast library uncertain.

Helps a lot7.1

How well does it do the job for those who need it?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It is light, fast and simple, with a good promise API, a headless hook, multiple toasters since v2.6 and TypeScript types. Keyboard access is weak, theming is CSS-only and it has fewer built-ins than its peers, so it does not lead on features. The API is small and well known, so AI agents write correct code for it easily.

GPT-6.2 Sol: 7.1, likely 6.1 to 8.1

Version 2.6.1 pairs a small bundle with a clear typed API for promises, custom content, and multiple toasters. The short setup and explicit examples give coding agents a clear pattern for routine use. Independent testing found no built-in keyboard route to the default toast, and a user reports that a shared-toaster regression survived in the published headless build. The package files were unavailable for direct comparison, which leaves uncertainty about the scope of the regression.

Holds up over time5.1

Will it still be a good choice in two years?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

One main maintainer releases about once a year, and a 2026 comparison called the project quiet for roughly a year before the v2.6.1 release. The API is stable and breaking changes are rare, which lowers the risk. Still, the backlog of issues and PRs is growing, and the ecosystem is moving towards Sonner.

GPT-6.2 Sol: 5.2, likely 3.9 to 6.7

Five commits and one release in the last year show a slower maintenance pace than React-Toastify. The September patch included source fixes for pnpm types and a user-reported regression, but a follow-up report says the headless fix had yet to ship in the built package. The release history shows the same publisher for recent versions, and the available evidence leaves release backup and funding unclear.

  • github commitsLastYear, releasesLastYear, openIssues, openPullRequests: Five commits, one release, 110 open issues, and 31 open pull requests.
  • peers React-Toastify commitsLastYear: React-Toastify recorded 27 commits.
  • github.com/timolins/react-hot-toast/releases: Recent releases share a publisher, and 2.6.1 lists targeted fixes.
  • github.com/timolins/react-hot-toast/issues/409: The headless regression was reported in September 2025 and revisited in October 2026.
Used widely6.4

How many use it, and is that growing?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It has about 20M downloads per 4 weeks, level with React-Toastify, and about 42k dependent repos, so it is very widely used. Its yearly ratio of 2.7 is below the 4.1 median, so it is losing share, while Sonner grew about 9.5 times.

  • npm downloadsLast4Weeks: 20.4M now vs 7.6M a year ago, a ratio of 2.7 against a 4.1 median.
  • dependents repos: 41,688 repos and 674 packages depend on it.
  • peers Sonner downloads: Sonner has 230M downloads and is growing much faster.
  • github stars: About 11k stars.

GPT-6.2 Sol: 5.8, likely 4.7 to 7.0

Ecosyste.ms found about 41,700 dependent repositories and 674 dependent packages, with fewer tracked repositories than React-Toastify. Four-week installs rose from 7.6 million to 20.4 million, but the 2.7× rise trails the catalog median of 4.1× and Sonner's 9.5×. That points to falling relative momentum despite a substantial installed base. Incomplete repository coverage, automated installs, and installs through other packages leave direct adoption uncertain.

  • dependents repos, packages: 41,688 tracked repositories and 674 tracked packages.
  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads grew 2.7× against a 4.1× catalog baseline.
  • peers React-Toastify dependentRepos, Sonner downloadsLast4Weeks and downloadsSame4WeeksYearAgo: React-Toastify has 97,433 tracked repositories, and Sonner downloads grew 9.5×.
  • ui.shadcn.com/docs/components/radix/sonner: shadcn/ui offers an installation path that can drive Sonner installs.
Vouched for6.3

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 4.0 to 7.0

Independent 2026 comparisons test it and rate it well for size and simplicity, and one author still uses it in most projects. There are no notable framework adoptions or survey signals, and Hacker News and Bluesky attention in the window is nil.

GPT-6.2 Sol: 6.5, likely 5.3 to 7.7

OpenHands and ToolJet list react-hot-toast in their frontend dependencies. An independent React 19 comparison recommends it for simple toasts and measured the smallest bundle among five libraries. These sources support its fit for that job, with limited evidence on developer retention and production outcomes.

Safe6.7

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It has no advisories ever, only two small dependencies and an MIT licence. The OpenSSF Scorecard is low at 3.3, with no branch protection, code review, security policy or pinned dependencies. Releases depend mostly on one maintainer.

  • advisories total: No known advisories.
  • npm dependencies: Two dependencies.
  • scorecard score: Scored 3.3, with weak Code-Review, Branch-Protection and Token-Permissions.
  • github license: MIT.

GPT-6.2 Sol: 6.4, likely 5.1 to 7.7

The permissive MIT licence, two direct dependencies, and zero recorded OSV advisories keep the known risk modest. OpenSSF scored it 3.3 out of 10, with weak code review and zero scores for branch protection, workflow token permissions, and dependency pinning. The repository has no published security policy, and the available evidence leaves npm publish access and release signing unverified.

Good

  • Very small bundle, about 4.7 kB gzipped with styles, the lightest of the main React toast libraries.
  • toast.promise() handles loading, success and error states with very little code.
  • The headless useToaster hook lets you render fully custom toast markup.
  • Only two dependencies (goober and csstype), MIT licence, no known advisories.

Bad

  • Development is slow: 5 commits and one release in the last year, with about 110 open issues and 31 open PRs.
  • Keyboard access is weak: in one independent test, Tab never reached a toast and there is no shortcut to jump to one.
  • It has fewer built-in features than React-Toastify and less polished default styling than Sonner.
  • Downloads grow more slowly than the median package, while Sonner pulls ahead fast.

The numbers

npm downloads, 4 weeks
20M ×2.7 in a year
GitHub stars
11k
Commits, 12 months
5
npm version
2.6.1 Sept 2026
Versions, 12 months
1
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
3.3 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (timolins/react-hot-toast), npm (react-hot-toast), OSV and the OpenSSF Scorecard.

Toasts and alerts

  1. 7.7Sonner
  2. 7.2React-Toastify
  3. 6.7react-hot-toast
  4. 6.6SweetAlert2
  5. 6.2Vue Sonner
  6. 4.6notistack
  7. 4.5Toastify JS
  8. 4.0Notyf
Compare all 8 on six scores