# codemirror/codemirror5

In-browser code editor (version 5, legacy)

Repository: https://github.com/codemirror/codemirror5
Canonical: https://ross.abutalabs.com/products/codemirror5
Homepage: http://codemirror.net/5/
Language: JavaScript
License: MIT
License Family: permissive
Archived: true
Last push: 2026-04-16T15:39:18+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 77, release rhythm 8, longevity 100
- inputs: {"age_days": 5710, "days_push": 139, "days_rel": 712, "gap_med": null, "n_releases_24m": 1}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 27233, forks 4932 (observed 2026-08-28T04:11:47.576154+00:00)

## What it is
CodeMirror 5 is a versatile in-browser code editor library written in JavaScript, featuring over 100 language modes, syntax highlighting, autocompletion, code folding, and configurable keybindings. This is the legacy version 5 line; CodeMirror 6 is the actively developed successor.

## Use cases
- embed a code editor in a web page
- syntax highlighting for a custom language in the browser
- add vim or emacs keybindings to a web-based editor
- build an online code playground
- show editable code snippets in a web app
- implement a diff/merge view in the browser

## When to choose
- you must maintain an existing CodeMirror 5 integration
- you need broad browser support including older environments
- you rely on CodeMirror 5 addons or community plugins not ported to v6

## When to avoid
- starting a new project - use CodeMirror 6 instead
- you need strong mobile or accessibility support
- you want a library under active development

## Facets
- artifact type: library
- maturity: maintenance
- function: editor, ui-components, frontend-framework
- domain: text-editors, web-development, frontend, developer-tools
- platform: browser
- tags: code-editor, syntax-highlighting, legacy, in-browser-editor, vim-bindings, code-folding, javascript, nodejs

## Member repositories
- codemirror/codemirror5 (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:47.576154+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-29T16:54:34.206762+00:00, confidence not recorded.
  - readme: https://github.com/codemirror/codemirror5 (fetched 2026-08-28T04:11:47.576154+00:00, sha 01253b9ef008)
  - homepage: http://codemirror.net/5/ (fetched 2026-08-29T07:52:05.457651+00:00, sha a5b70ee51a1b)
  - site_page: https://codemirror.net/5/doc/releases.html (fetched 2026-08-29T07:52:05.467486+00:00, sha c7a9e9e82871)
- Data as of 2026-08-30T08:39:29.467469+00:00.
