Skip to content
JS
Package

react-diff-viewer

A simple and beautiful text diff viewer component made with diff and React

v3.1.1, 22 May 2020MITCommonJSTypes: BundledReact
$ npm install react-diff-viewer

Key numbers

As of 25 Sept 2026
Weekly downloads
195.8k
+15% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
6
Direct, from package.json
Last release
6 years ago
v3.1.1
GitHub stars
1.7k
315 forks
Open issues / PRs
60 / 22
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300k400kSept 2025Mar 2026Sept 2026High 307.8k (12 May 2026)Low 98.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.

195,795 downloads last week, 847,745 in the last month. The 12-month change of +15% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
3.1.1, 22 May 20206 years ago
First published
-
Last push to GitHub
28 Mar 2024910 days before the snapshot
Repository archived
No
Open issues
60
Open pull requests
22
Commits, last 52 weeks
0
Dependents on npm
51

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 8
Runtimes
-
Unpacked size (npm)
82 kB
Dependencies (6)
diffemotionclassnamesprop-typesmemoize-onecreate-emotion
Peer dependencies (2)
reactreact-dom
npm install react-diff-viewer
  • jsDelivrhttps://cdn.jsdelivr.net/npm/react-diff-viewer@3.1.1/
  • unpkghttps://unpkg.com/react-diff-viewer@3.1.1/
  • esm.shhttps://esm.sh/react-diff-viewer@3.1.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.