# CodeMirror: 8.4 out of 10

A strong pick. 2nd of 8 in [Code editors and highlighters](https://elestia.ai/opensource/code-editors/index.md).

CodeMirror 6 is a modular, MIT-licensed code editor for the browser. It is light, works on touch screens and handles accessibility well, and Replit and Sourcegraph run it in production. It is one of the two best editor choices today, and it beats Monaco unless you need a full VS Code-style IDE. It takes more setup work, and one person leads it.

**Best for:** Teams that want to embed a light, customizable code editor in a web app, including on mobile, rather than ship a full IDE.

## Scores

- **Overall: 8.4** (likely 7.3 to 8.9)
  - Claude Opus 5.5 (8.0): For most new projects that need an editable code field in the browser, CodeMirror 6 is the strongest pick. It is lighter and more flexible than Monaco, and better on mobile. It is maintained more actively than Ace, and its use is growing faster than either. Monaco is still better when you want a full VS Code experience. One-person maintenance and the steep learning curve keep it below 9.
  - GPT-6.2 Sol (8.7): CodeMirror is a first choice for a new browser editor that needs mobile support, custom behavior, or a small starting bundle. Monaco is a stronger fit for a desktop-first editing experience with built-in language services, and Shiki is simpler for static highlighting. Established downstream use and frequent releases support the recommendation, while maintenance concentration and uncertainty about release safeguards keep the range open.
- **Needed by many: 4.5** (likely 3.4 to 5.5)
  - Claude Opus 5.5 (4.5): Few web apps need a code editor in the browser: playgrounds, IDEs, admin panels for SQL, JSON or YAML, notebooks and note apps. Many more projects only need read-only highlighting, and Shiki, Prism or highlight.js cover that better. CodeMirror works with any framework and any bundler, so its use is not limited further than its category.
  - GPT-6.2 Sol (4.4): Browser-based code editing is a distinct need in playgrounds, notebooks, developer tools, and configuration screens. CodeMirror works across frontend frameworks and covers anything from a query field to a full editor. Static code samples have simpler options such as Shiki, and general developer surveys give little indication of how many teams embed an editor.
- **Helps a lot: 8.7** (likely 7.6 to 9.3)
  - Claude Opus 5.5 (8.5): CodeMirror 6 is a careful, well-typed rewrite with a strong state and transaction model. It handles touch, accessibility, collaboration and huge documents well. Its extension set is rich: Lezer parsers, LSP client, merge view and linting. Sourcegraph replaced about 90% of its Monaco features in two days and shipped far less JavaScript. Two things hold the score back: it gives less than Monaco by default, and users report a steep learning curve with too few tutorials.
  - GPT-6.2 Sol (8.8): Version 6.43.15 combines viewport rendering, incremental syntax parsing, typed extensions, and substantial mobile support. Sourcegraph measured a 43% reduction in JavaScript downloaded on its search page after switching from Monaco, a result specific to that integration. Users report a learning curve for transactions, Monaco supplies more language intelligence out of the box, and JupyterLab measured slower cursor movement in a case with hundreds of folded ranges. The guides and types give coding agents concrete examples to follow, but agent accuracy was untested.
- **Holds up over time: 7.6** (likely 6.4 to 8.6)
  - Claude Opus 5.5 (7.5): Work is active. @codemirror/view had 39 releases in the past year, and other packages were released as late as November 2026. GitHub shows 4 commits and an archived repository only because development moved to the maintainer's own Forgejo server in April 2026. Since 2018 the 6.x line has stayed stable and kept breaking changes rare. The main risk is that one maintainer does most of the work, though sponsors and long use by companies lower it.
  - GPT-6.2 Sol (7.7): Development moved to Forgejo in April 2026, and the view package shipped 39 npm releases in the past year. A user who reported a Firefox selection bug in October got a patch the next day, and the 6.x upgrade reviewed by JupyterLab consisted mostly of additions and fixes. Sponsors help fund maintenance, but the project remains a single-maintainer effort and the evidence covers only a sample of issue response times.
- **Used widely: 6.5** (likely 5.3 to 7.6)
  - Claude Opus 5.5 (7.0): Downloads grew 7.1 times in a year, well above the median of 4.1, and faster than Monaco's 5.2 times and Ace's 2.0 times. Part of the 95M monthly downloads comes from tools that install it as a dependency, such as notebooks, devtools and AI app builders. About 9,800 dependent repositories puts it near Ace and below Monaco, so direct choices are probably in the hundreds of thousands.
  - GPT-6.2 Sol (5.9): The view package rose from 13.5 million to 95.5 million four-week downloads, about 7.1× year over year against the catalog median of 4.1× and Monaco's 5.2×. This is a strong relative install trend, with an uncertain link to new choices because wrappers and automated builds install the view package. The partial index found 9,817 dependent repositories and 523 npm packages, close to Ace and about half Monaco's repository count. Stars and link activity for the old GitHub hub provide limited evidence after the move.
- **Vouched for: 8.4** (likely 7.4 to 9.2)
  - Claude Opus 5.5 (8.0): Several well-known products run it in production and have written about why. Replit and Sourcegraph published write-ups, and Chrome DevTools, Obsidian and JupyterLab also run it. Third-party projects keep building on it, as recent Hacker News stories show. Current survey data is thin, which keeps the score from going higher.
  - GPT-6.2 Sol (8.8): Chrome DevTools uses CodeMirror 6 in its editor, JupyterLab recently tested and merged an upgrade to 6.43.15, and Obsidian documents it as the basis for editor extensions. Sourcegraph's migration gives a measured example of lower page weight and easier customization. The evidence is strongest for embedded editing, with less coverage of developer satisfaction across integrations.
- **Safe: 8.1** (likely 6.9 to 9.1)
  - Claude Opus 5.5 (8.0): It has no advisories and only 4 small dependencies, all from the same maintainer. The licence is MIT. There is no Scorecard, and probably only one person publishes to npm, so supply-chain checks are hard to verify. The move off GitHub also puts the source on a server run by one person.
  - GPT-6.2 Sol (8.1): The view package has a permissive MIT license, four direct dependencies, and zero recorded OSV advisories. Additional language packages and extensions add their own dependencies. The project has one maintainer, and the lack of a Scorecard result and verified release provenance limits confidence in its publishing safeguards.

## Good

- The design is modular, so a basic editor ships in a small fraction of Monaco's size. Sourcegraph cut 43% of its JavaScript by switching.
- It was built for touch screens, accessibility, many editor instances on one page, and theming through CSS.
- The extension system is strong, with packages for collaboration, merge views, LSP clients, linting and autocompletion.
- Releases come often and stay compatible within 6.x. The packages have built-in TypeScript types, few dependencies and no advisories.

## Bad

- The learning curve is steep, and there are few step-by-step tutorials. You assemble the features yourself.
- Out of the box it gives less than Monaco, which comes with VS Code-level IntelliSense.
- Marijn Haverbeke leads and releases almost all of the work alone.
- Issues and patches moved to a self-hosted Forgejo server in 2026. GitHub-based tooling and contributors lose their usual entry point.

## The numbers

- Downloads, 4 weeks: 95M
- In a year: ×7.1
- GitHub stars: 7.8k
- Commits, 12 months: 4
- Last npm release: Oct 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/codemirror/dev
- npm: https://www.npmjs.com/package/@codemirror/view

Development moved from GitHub to code.haverbeke.berlin in 2026, so the GitHub numbers stop at the move.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
