Skip to content
JS
Package

diff-dom

A diff for DOM elements, as client-side JavaScript code. Gets all modifications, insertions and removals between two DOM fragments.

v5.2.1, 4 Oct 2025LGPL-3.0ESM + CommonJSTypes: BundledDOM and browser utilities
$ npm install diff-dom

Key numbers

As of 25 Sept 2026
Weekly downloads
36.8k
-21% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
11 months ago
v5.2.1
GitHub stars
859
104 forks
Open issues / PRs
14 / 0
Contributors
-
Commits, last 52 weeks
4

Downloads

Last week 2026-09-15 to 2026-09-21
025k50k75k100kSept 2025Mar 2026Sept 2026High 85.5k (3 Mar 2026)Low 14.5k (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.

36,815 downloads last week, 165,378 in the last month. The 12-month change of -21% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
5.2.1, 4 Oct 202511 months ago
First published
-
Last push to GitHub
4 Oct 2025355 days before the snapshot
Repository archived
No
Open issues
14
Open pull requests
0
Commits, last 52 weeks
4
Dependents on npm
55

Major versions

-

Recent releases

-

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.1 MB
Dependencies (0)
None
npm install diff-dom

CDN

jsDelivr: 110k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/diff-dom@5.2.1/
  • unpkghttps://unpkg.com/diff-dom@5.2.1/
  • esm.shhttps://esm.sh/diff-dom@5.2.1
PackageWeekly downloadsGzipLast releaseModuleComparison
virtual-dom243.1k-11 years agoCommonJS-
morphdom737.1k-8 months agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.