# scniro/react-codemirror2

Codemirror integrated components for React

Repository: https://github.com/scniro/react-codemirror2
Canonical: https://ross.abutalabs.com/products/react-codemirror2
Language: TypeScript
License: MIT
License Family: permissive
Topics: codemirror, react, typescript
Last push: 2025-10-24T16:45:08+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 48, release rhythm 53, longevity 100
- inputs: {"age_days": 3380, "days_push": 313, "days_rel": 313, "gap_med": 1, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1701, forks 192 (observed 2026-08-28T04:05:24.272020+00:00)

## What it is
A React wrapper library around the CodeMirror code editor, providing both controlled and uncontrolled component variants. It lets React applications embed a syntax-highlighting code editor with configurable modes, themes, and event handlers.

## Use cases
- embed a code editor in a react app
- syntax highlighting editor component for react
- controlled codemirror component with redux state
- uncontrolled code editor wrapper for react
- edit code snippets in a web application
- integrate codemirror with react hooks

## When to choose
- you need CodeMirror 5 inside a React application
- you want both controlled and uncontrolled editor component options
- you need a lightweight, MIT-licensed editor wrapper with TypeScript support

## When to avoid
- you are starting a new project that should use CodeMirror 6
- you need a full IDE experience rather than an embeddable editor
- your stack is not React-based

## Facets
- artifact type: library
- maturity: stable
- function: editor, ui-components
- domain: frontend, web-development, text-editors, developer-tools
- platform: browser, cross-platform
- tags: react, codemirror, code-editor, syntax-highlighting, typescript, controlled-components, nodejs

## Member repositories
- scniro/react-codemirror2 (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:24.272020+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:37:44.044816+00:00, confidence not recorded.
  - readme: https://github.com/scniro/react-codemirror2 (fetched 2026-08-28T04:05:24.272020+00:00, sha 8307c1fea01f)
  - registry_npm: https://registry.npmjs.org/react-codemirror2 (fetched 2026-08-29T11:12:30.991300+00:00, sha adba2a73fb0d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
