Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

SweetAlert2

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

UI components and iconsNPM

GitHubWebsite

1. License

License from npm.

github.com/sweetalert2/sweetalert2

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What SweetAlert2 does

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

SweetAlert2 popularity

57 / 100
Gid Score, #1258 overall
1.2M
downloads a week, npm
18.1K
GitHub stars
12
agent projects use it
SweetAlert2: downloads per weeknpm, sweetalert2 1,218,607
SweetAlert2: GitHub starssweetalert2/sweetalert2 18,102

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How SweetAlert2 is used

  • SweetAlert2 is a dependency in 12 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 38 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is Sonner (584 projects).
  • Projects that use it most often also use Axios (57.9%), ESLint (76.3%), Tailwind CSS (71.1%).

By coding agent

9 projects, 0.4%
7 projects, 0.2%
6 projects, 0.2%

Often used with

In 57.9% of its projects
In 76.3% of its projects
In 71.1% of its projects
In 52.6% of its projects
In 65.8% of its projects
In 31.6% of its projects
In 28.9% of its projects
In 26.3% of its projects

More about SweetAlert2

Funding
  • GitHub Sponsors: https://github.com/limonte
  • 6 GitHub sponsors

See all

More in UI components and icons

Alternatives

SweetAlert2 This page

MITGid 571.2M/wk

Sonner

Opinionated toast notification component for React applications.

MITGid 8261.9M/wk

React Hot Toast

Lightweight, customizable toast notification component library for React.

MITGid 705.4M/wk

Compare SweetAlert2 with another tool

Get started

Install it.

npm install sweetalert2

No step-by-step start for SweetAlert2 yet: we have not written its hand-checked card.