# emilkowalski/sonner

An opinionated toast component for React.

Repository: https://github.com/emilkowalski/sonner
Canonical: https://ross.abutalabs.com/products/sonner
Homepage: https://sonner.emilkowal.ski
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, toast, notifications
Last push: 2026-08-10T11:13:03+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 96, longevity 91
- inputs: {"age_days": 1287, "days_push": 23, "days_rel": 24, "gap_med": 29, "n_releases_24m": 14}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12900, forks 459 (observed 2026-08-28T04:11:00.061781+00:00)

## What it is
Sonner is an opinionated toast notification component library for React. It provides a single Toaster component and a toast() API for rendering success, error, warning, promise, and custom notifications with sensible defaults.

## Use cases
- show toast notifications in a react app
- display success and error messages after actions
- notify users of async promise results
- add a snackbar component to next.js
- customize toast position and styling
- render stacked notifications with swipe gestures

## When to choose
- you want a polished, batteries-included toast solution with minimal setup
- you use React or Next.js and prefer opinionated defaults over configuration
- you need promise-based toasts, rich colors, and swipe-to-dismiss out of the box

## When to avoid
- you need fully headless, unstyled toast primitives to style from scratch
- your project is not React-based
- you need notifications outside the browser, such as native mobile or desktop system toasts

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, animation, frontend-framework
- domain: frontend, web-development, developer-tools
- platform: cross-platform
- tags: toast, notifications, react, snackbar, typescript, web-server, nodejs

## Member repositories
- emilkowalski/sonner (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:00.061781+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:42.068055+00:00, confidence not recorded.
  - readme: https://github.com/emilkowalski/sonner (fetched 2026-08-28T04:11:00.061781+00:00, sha e86f0b464655)
  - homepage: https://sonner.emilkowal.ski (fetched 2026-08-29T08:09:54.150096+00:00, sha 7186c4e2969e)
  - site_page: https://sonner.emilkowal.ski/getting-started (fetched 2026-08-29T08:09:54.159229+00:00, sha ca7cfe0fc01f)
  - registry_npm: https://registry.npmjs.org/sonner (fetched 2026-08-29T08:09:54.161338+00:00, sha 777372c3d049)
- Data as of 2026-08-30T08:39:29.467469+00:00.
