Skip to content
JS
Package

sweetalert

A beautiful replacement for JavaScript's "alert"

v2.1.2MITCommonJSTypes: BundledUI component libraries
$ npm install sweetalert

Key numbers

As of 25 Sept 2026
Weekly downloads
94.7k
-3% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
-
v2.1.2
GitHub stars
22.3k
2.7k forks
Open issues / PRs
167 / 33
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
050k100k150kSept 2025Mar 2026Sept 2026High 129.9k (24 Mar 2026)Low 48.8k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

94,699 downloads last week, 423,518 in the last month. The 12-month change of -3% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.1.2
First published
-
Last push to GitHub
15 Apr 20231,258 days before the snapshot
Repository archived
No
Open issues
167
Open pull requests
33
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
57 kB
Dependencies (2)
promise-polyfilles6-object-assign
npm install sweetalert

CDN

jsDelivr: 20.9m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/sweetalert@2.1.2/
  • unpkghttps://unpkg.com/sweetalert@2.1.2/
  • esm.shhttps://esm.sh/sweetalert@2.1.2
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.