Skip to content
JS
Package

react-refractor

Super-thin React wrapper for refractor (Syntax highlighting using VDOM)

v4.0.0, 23 Jul 2025MITESM onlyTypes: BundledReact
$ npm install react-refractor

Key numbers

As of 25 Sept 2026
Weekly downloads
776k
+187% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
1 year ago
v4.0.0
GitHub stars
76
6 forks
Open issues / PRs
2 / 4
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.1m (25 Aug 2026)Low 170.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.

775,992 downloads last week, 3,763,316 in the last month. The 12-month change of +187% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
016 in total
Latest version
4.0.0, 23 Jul 20251 year ago
First published
29 Apr 2018
Last push to GitHub
21 Jan 2026246 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
4
Commits, last 52 weeks
0
Dependents on npm
17

Major versions

  1. v4 first release 4.0.0, 23 Jul 2025
  2. v3 first release 3.0.0, 8 Apr 2024
  3. v2 first release 2.0.0, 29 Apr 2020
  4. v1 first release 1.0.0, 29 Apr 2018

Recent releases

VersionPublished
4.0.023 Jul 2025
2.2.023 May 2024
3.1.19 Apr 2024
3.1.08 Apr 2024
3.0.08 Apr 2024
2.1.79 Apr 2022
2.1.61 Mar 2022
2.1.521 Sept 2021
2.1.422 Jan 2021
2.1.23 Sept 2020
2.1.03 May 2020
2.0.23 May 2020
2.0.13 May 2020
2.0.029 Apr 2020
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=20.0.0
Runtimes
-
Unpacked size (npm)
49 kB
Dependencies (3)
refractorunist-util-filterunist-util-visit-parents
Peer dependencies (1)
react
npm install react-refractor
  • jsDelivrhttps://cdn.jsdelivr.net/npm/react-refractor@4.0.0/
  • unpkghttps://unpkg.com/react-refractor@4.0.0/
  • esm.shhttps://esm.sh/react-refractor@4.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.