t4t5/sweetalert
A beautiful replacement for JavaScript's "alert" observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4355
- days_rel: n/a
- days_push: 1236
- n_releases_24m: 0
Adoption not part of the score
22259 stars · 2746 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
SweetAlert is a JavaScript library that replaces the native browser alert() with beautiful, customizable modal dialogs. It supports icons, confirm/cancel buttons, and promise-based or async/await interaction flows.
Use cases
- show pretty confirmation dialogs instead of native alert
- display success, error, warning, and info popups
- ask users to confirm destructive actions with a promise-based modal
- customize modal text, icons, buttons, and theming
- use await to get user confirmation in async code
When to choose
- you want an attractive drop-in replacement for JavaScript's alert()
- you need simple, promise-based confirm dialogs with minimal setup
- you want a lightweight, dependency-free modal library
When to avoid
- you need complex multi-step forms or advanced modals (consider SweetAlert2 or a full modal framework)
- you need a library under active development with frequent updates
- you require accessibility features beyond basic dialogs
Facets
library · maturity maintenance
ui-components frontend-framework web-development frontend browser alert-dialogs modals popups javascript typescript promise-based nodejs
4 sources
- readme: https://github.com/t4t5/sweetalert · fetched 2026-08-28 · c870df9ac19b
- homepage: https://sweetalert.js.org · fetched 2026-08-29 · 55a72c09c82b
- site_page: https://sweetalert.js.org/docs · fetched 2026-08-29 · c9320f2e00f8
- registry_npm: https://registry.npmjs.org/sweetalert · fetched 2026-08-29 · 17469fe80b8d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| t4t5/sweetalert | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem