Package
dompurify
DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It runs as JavaScript and works in all modern browsers, as well as in Node.js (via jsdom). DOMPurify is written by security people who have vast background in web a
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 45.3m
- +303% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 1 day ago
- v3.4.16
- GitHub stars
- 17.4k
- 860 forks
- Open issues / PRs
- 0 / 0
- Contributors
- 136
- Commits, last 52 weeks
- 333
Downloads
Last week 2026-09-15 to 2026-09-21
45,348,482 downloads last week, 219,873,401 in the last month. The 12-month change of +303% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 22153 in total
- Latest version
- 3.4.16, 23 Sept 20261 day ago
- First published
- 21 May 2014
- Last push to GitHub
- 23 Sept 20261 day before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 0
- Commits, last 52 weeks
- 333
- Dependents on npm
- 5,327
Major versions
- v3 first release 3.0.0, 13 Feb 2023
- v2 first release 2.0.0, 12 Sept 2019
- v1 first release 1.0.0, 15 Aug 2017
- v0 first release 0.4.0, 21 May 2014
Recent releases
| Version | Published |
|---|---|
| 3.4.16 | 23 Sept 2026 |
| 3.4.15 | 6 Sept 2026 |
| 3.4.14 | 19 Aug 2026 |
| 3.4.13 | 3 Aug 2026 |
| 3.4.12 | 11 Jul 2026 |
| 3.4.11 | 17 Jun 2026 |
| 3.4.10 | 12 Jun 2026 |
| 3.4.9 | 10 Jun 2026 |
| 3.4.8 | 3 Jun 2026 |
| 3.4.7 | 27 May 2026 |
| 3.4.6 | 26 May 2026 |
| 3.4.5 | 18 May 2026 |
| 3.4.4 | 17 May 2026 |
| 3.4.3 | 13 May 2026 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 1.5 MB
- Dependencies (0)
- None
npm install dompurifyCDN
jsDelivr: 519.3m requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/dompurify@3.4.16/ - unpkg
https://unpkg.com/dompurify@3.4.16/ - esm.sh
https://esm.sh/dompurify@3.4.16
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| hast-util-sanitize | 8.2m | - | 1 year ago | ESM only | - |
Indexability: Indexed.