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.
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.
- blog.logrocket.com/react-toast-libraries-compared-2026: Best for minimal bundle. Sonner or Toastify are better for accessibility and features.
- pistack.xyz/posts/2026-08-22-react-toast-libraries-sonner-react-hot-toast-react-toastify-comparison: Sonner is recommended for most new projects.
- npm downloads ratio: 2.7 vs the 4.1 median.
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.
- blog.logrocket.com/react-toast-libraries-compared-2026: React Hot Toast led on bundle size, and Sonner offered actions and a keyboard shortcut.
- sweetalert2.github.io: SweetAlert2 provides modal alerts as well as toasts.
- github.com/timolins/react-hot-toast/issues/409: A user reports a difference between the source fix and the npm build.
- github releasesLastYear, npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo, medianDownloadsRatio: One release in a year and download growth below the catalog baseline.
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.
- React-only API: Only works with React.
- blog.logrocket.com/react-toast-libraries-compared-2026: Positioned for simple, minimal notifications.
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.
- 2025.stateofjs.com/en-US/libraries/front-end-frameworks: React has broad use among surveyed developers.
- react-hot-toast.com/docs/toast: The documented API covers transient notifications.
- sweetalert2.github.io: SweetAlert2 covers both modal alerts and toasts.
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.
- blog.logrocket.com/react-toast-libraries-compared-2026: 4.7 kB, fast in stress test, weak keyboard access.
- pistack.xyz/posts/2026-08-22-react-toast-libraries-sonner-react-hot-toast-react-toastify-comparison: Headless hook is a strength. No keyboard shortcuts and CSS-only theming.
- github.com/timolins/react-hot-toast/releases: v2.6 added multiple toasters. v2.6.1 fixed Tailwind specificity and types.
- npm hasTypes: Ships its own types.
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.
- blog.logrocket.com/react-toast-libraries-compared-2026: React 19 tests measured a 4.7 kB gzip increase and found no built-in keyboard route.
- react-hot-toast.com/docs/toast: Examples cover promises, custom content, and toast IDs.
- github.com/timolins/react-hot-toast/issues/409#issuecomment-: An October 2026 comment reports that the published headless bundle still has 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.
- github commitsLastYear: 5 commits, 1 release in the last year.
- github openIssues/openPullRequests: 110 open issues, 31 open PRs.
- scorecard Maintained: Maintained check scores 4.
- pistack.xyz/posts/2026-08-22-react-toast-libraries-sonner-react-hot-toast-react-toastify-comparison: Flags maintenance silence as the main concern.
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.
- blog.logrocket.com/react-toast-libraries-compared-2026: Independent test, and the author still uses it in most projects.
- pistack.xyz/posts/2026-08-22-react-toast-libraries-sonner-react-hot-toast-react-toastify-comparison: Recommends Sonner for most new projects.
- hackerNews/bluesky: No recent stories or posts.
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.
- github.com/OpenHands/OpenHands/blob/main/package.json: OpenHands pins react-hot-toast 2.6.1.
- github.com/ToolJet/ToolJet/blob/main/frontend/package.json: ToolJet lists react-hot-toast as a frontend dependency.
- blog.logrocket.com/react-toast-libraries-compared-2026: An independent comparison tested bundle size, accessibility, and runtime behavior.
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.
- advisories total, last24Months: No OSV advisories were recorded.
- scorecard score, checks: Code Review scored 1, branch protection and token permissions scored 0, and signing was unscored.
- github.com/timolins/react-hot-toast/blob/v2.6.1/package.json: The tagged manifest lists MIT, csstype, and goober.
- github.com/timolins/react-hot-toast/security: GitHub shows no published security policy or advisories.
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
- 7.7Sonner
- 7.2React-Toastify
- 6.7react-hot-toast
- 6.6SweetAlert2
- 6.2Vue Sonner
- 4.6notistack
- 4.5Toastify JS
- 4.0Notyf