# react-hot-toast: 6.7 out of 10

Reasonable, with limits. 3rd of 8 in [Toasts and alerts](https://elestia.ai/opensource/toasts/index.md).

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

- **Overall: 6.7** (likely 5.7 to 7.7)
  - Claude Opus 5.5 (6.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): 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 many: 5.2** (likely 4.2 to 6.3)
  - Claude Opus 5.5 (5.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): 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 lot: 7.1** (likely 6.1 to 8.1)
  - Claude Opus 5.5 (7.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): 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 time: 5.1** (likely 4.0 to 6.4)
  - Claude Opus 5.5 (5.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): 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.
- **Used widely: 6.4** (likely 5.4 to 7.5)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (5.8): 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.
- **Vouched for: 6.3** (likely 4.7 to 7.4)
  - Claude Opus 5.5 (6.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): 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.
- **Safe: 6.7** (likely 5.6 to 7.9)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (6.4): 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

- Downloads, 4 weeks: 20M
- In a year: ×2.7
- GitHub stars: 11k
- Commits, 12 months: 5
- Last npm release: Sept 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/timolins/react-hot-toast
- npm: https://www.npmjs.com/package/react-hot-toast

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.
