# SweetAlert2 — card for AI agents

Beautiful, accessible, customizable popup dialogs replacing default JavaScript alerts.

Category: UI components and icons · npm package `sweetalert2` · latest version 11.26.25 (checked 2026-11-01)
Install: `npm install sweetalert2`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 57.0 (#1258 of all tools, 79 of 230 in its category)
- Used in 12 public projects set up for AI coding agents (0.2%)
- Downloads last week: 1,218,607 (as of 2026-11-24), +30.8% over 4 weeks
- GitHub stars: 18,102 (as of 2026-11-24)
- Last push: 2026-11-16

## Often used with
Axios 57.9%, ESLint 76.3%, Tailwind CSS 71.1%, Vite 52.6%, React 65.8%, React Icons 31.6%

## Checked alternatives (same job)
- Sonner: https://agentgid.com/tools/sonner/agent.md
- React Hot Toast: https://agentgid.com/tools/react-hot-toast/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/sweetalert2/
- Homepage: https://sweetalert2.github.io/
- Repository: https://github.com/sweetalert2/sweetalert2

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
