Skip to content
JS
Package

react-syntax-highlighter

syntax highlighting component for react with prismjs or highlightjs ast using inline styles

v16.1.1, 26 Feb 2026MITESM + CommonJSTypes: NoneReact
$ npm install react-syntax-highlighter

Key numbers

As of 25 Sept 2026
Weekly downloads
5.3m
+104% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
6
Direct, from package.json
Last release
6 months ago
v16.1.1
GitHub stars
4.7k
315 forks
Open issues / PRs
122 / 16
Contributors
-
Commits, last 52 weeks
15

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6m8mSept 2025Mar 2026Sept 2026High 7.8m (25 Aug 2026)Low 1.9m (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.

5,336,740 downloads last week, 27,199,214 in the last month. The 12-month change of +104% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
3128 in total
Latest version
16.1.1, 26 Feb 20266 months ago
First published
27 Jan 2016
Last push to GitHub
26 Feb 2026210 days before the snapshot
Repository archived
No
Open issues
122
Open pull requests
16
Commits, last 52 weeks
15
Dependents on npm
2,549

Major versions

  1. v16 first release 16.0.0, 22 Oct 2025
  2. v15 first release 15.0.0, 4 Oct 2020
  3. v14 first release 14.0.0, 2 Oct 2020
  4. v13 first release 13.0.0, 23 Jul 2020
  5. v12 first release 12.0.0, 17 Sept 2019
  6. v11 first release 11.0.0, 28 Jun 2019
  7. v10 first release 10.0.0, 31 Oct 2018
  8. v9 first release 9.0.0, 8 Oct 2018
  9. v8 first release 8.0.0, 4 Jul 2018
  10. v7 first release 7.0.0, 26 Jan 2018
  11. v6 first release 6.0.0, 16 Nov 2017
  12. v5 first release 5.0.0, 13 Feb 2017
  13. v4 first release 4.0.1, 10 Dec 2016
  14. v3 first release 3.0.0, 29 Oct 2016
  15. v2 first release 2.0.0, 10 Apr 2016
  16. v1 first release 1.0.0, 28 Jan 2016
  17. v0 first release 0.0.1, 27 Jan 2016

Recent releases

VersionPublished
16.1.126 Feb 2026
16.1.028 Oct 2025
16.0.022 Oct 2025
15.6.625 Aug 2025
15.6.525 Aug 2025
15.6.425 Aug 2025
15.6.321 Aug 2025
15.6.221 Aug 2025
15.6.116 Oct 2024
15.6.016 Oct 2024
15.5.014 Mar 2022
15.4.512 Nov 2021
15.4.423 Jul 2021
11.0.322 Jul 2021
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 16.20.2
Runtimes
-
Unpacked size (npm)
2.1 MB
Dependencies (6)
prismjslowlightrefractorhighlight.js@babel/runtimehighlightjs-vue
Peer dependencies (1)
react
npm install react-syntax-highlighter

CDN

jsDelivr: 282.7k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/react-syntax-highlighter@16.1.1/
  • unpkghttps://unpkg.com/react-syntax-highlighter@16.1.1/
  • esm.shhttps://esm.sh/react-syntax-highlighter@16.1.1
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.