# sweetalert2/sweetalert2

✨ A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies. 🇺🇦🇪🇺

Repository: https://github.com/sweetalert2/sweetalert2
Canonical: https://ross.abutalabs.com/products/sweetalert2
Homepage: https://sweetalert2.github.io
Language: JavaScript
License: MIT
License Family: permissive
Topics: sweetalert, alert, popup, prompt, dialog, toast, notifications, wai-aria, accessible, confirm, confirmation-dialog, sweetalert2, react, angular, vue, modal
Last push: 2026-07-20T07:16:29+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 93, release rhythm 73, longevity 100
- inputs: {"age_days": 4260, "days_push": 44, "days_rel": 102, "gap_med": 2.5, "n_releases_24m": 65}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 18103, forks 1626 (observed 2026-08-28T04:11:26.323914+00:00)

## What it is
SweetAlert2 is a zero-dependency JavaScript library that provides beautiful, responsive, and customizable replacement popup boxes for alerts, confirms, prompts, and toasts. It is WAI-ARIA accessible and integrates with frameworks like React, Angular, and Vue via companion packages.

## Use cases
- show styled alert dialogs instead of native window.alert
- build accessible confirmation modals for destructive actions
- display toast notifications in a web app
- create prompt dialogs with form inputs
- add loading/progress modals to a frontend
- replace browser confirm() with a customizable dialog

## When to choose
- you need polished, accessible popups with zero dependencies
- you want framework integrations for React, Angular, or Vue
- you need highly themable modals, toasts, and prompts in vanilla JS

## When to avoid
- you need a full-featured modal manager with complex nested dialogs and focus trapping
- your project already standardizes on a component library with its own dialog system
- you need server-side or non-browser dialog rendering

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, animation, accessibility
- domain: web-development, frontend
- platform: browser, cross-platform
- tags: modal, dialog, toast, alert, popup, confirm-dialog, zero-dependencies, wai-aria, react, angular, vue, nodejs

## Member repositories
- sweetalert2/sweetalert2 (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:26.323914+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:02:09.647054+00:00, confidence not recorded.
  - readme: https://github.com/sweetalert2/sweetalert2 (fetched 2026-08-28T04:11:26.323914+00:00, sha 4bf73cf21b35)
  - homepage: https://sweetalert2.github.io (fetched 2026-08-29T08:00:31.440076+00:00, sha 45acbded29dd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
