# FormidableLabs/prism-react-renderer

🖌️ Renders highlighted Prism output to React (+ theming & vendored Prism)

Repository: https://github.com/FormidableLabs/prism-react-renderer
Canonical: https://ross.abutalabs.com/products/prism-react-renderer
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, reactjs, prismjs, highlight
Last push: 2025-01-02T18:23:10+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2938, "days_push": 608, "days_rel": 630, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1992, forks 148 (observed 2026-08-28T04:06:03.164840+00:00)

## What it is
A lean React component library that tokenizes code with a vendored Prism and renders syntax-highlighted output via render props, with built-in theming support. It works in React and React Native and powers syntax highlighting in Docusaurus.

## Use cases
- render syntax-highlighted code blocks in React
- highlight code in a React Native app
- add custom themes to code blocks
- highlight code without polluting the global namespace
- use Prism highlighting in Docusaurus-style docs sites
- tokenize code and render tokens with custom markup

## When to choose
- you need syntax highlighting in React or React Native with full control over rendered markup
- you want bundled themes and a vendored Prism without global side effects
- you're building documentation or blog sites with code blocks

## When to avoid
- you need server-side highlighting without React
- you want highlighting for many obscure languages out of the box
- your project doesn't use React

## Facets
- artifact type: library
- maturity: active
- function: ui-components, frontend-framework
- domain: web-development, frontend, developer-tools, documentation
- platform: cross-platform
- tags: syntax-highlighting, prismjs, code-blocks, render-props, theming, react-native, react, nodejs, web-server

## Member repositories
- FormidableLabs/prism-react-renderer (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:03.164840+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:02:37.330400+00:00, confidence not recorded.
  - readme: https://github.com/FormidableLabs/prism-react-renderer (fetched 2026-08-28T04:06:03.164840+00:00, sha c3d20361aab8)
  - registry_npm: https://registry.npmjs.org/prism-react-renderer (fetched 2026-08-29T10:42:41.702322+00:00, sha 3f1e241e5f9b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
