Elestia Open Source Ratings
8.4

CodeMirror

A strong pick. 2nd of 8 code editors and highlighters.

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.

WebsiteGitHubnpm

Scores

Overall8.4

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 8.0, likely 7.0 to 8.5

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, likely 7.6 to 9.3

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 many4.5

How many developers need a tool for this job?

Claude Opus 5.5: 4.5, likely 3.5 to 5.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, likely 3.3 to 5.5

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 lot8.7

How well does it do the job for those who need it?

Claude Opus 5.5: 8.5, likely 7.5 to 9.0

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, likely 7.6 to 9.5

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 time7.6

Will it still be a good choice in two years?

Claude Opus 5.5: 7.5, likely 6.5 to 8.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.

  • npm versionsLast4Weeks / versionsLastYear: 39 versions of @codemirror/view in the last year. Latest published 2026-10-19.
  • codemirror.net/docs/changelog: Releases of lsp-client, lint, autocomplete and other packages in October and November 2026.
  • discuss.codemirror.net/t/codemirrors-migration-to-forgejo/9706: The move to Forgejo in April 2026 explains why the GitHub repository is archived.
  • github contributors: Only 22 contributors, most of the work by one maintainer.

GPT-6.2 Sol: 7.7, likely 6.3 to 8.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 widely6.5

How many use it, and is that growing?

Claude Opus 5.5: 7.0, likely 6.0 to 8.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.

  • npm downloadsLast4Weeks: 95.5M now against 13.5M a year before, 7.1 times.
  • dependents: 9,817 repositories and 523 packages. Monaco has 19,164 and Ace 10,534.
  • github stars: 7.8k stars, frozen at the move. Monaco has 47k.

GPT-6.2 Sol: 5.9, likely 4.6 to 7.1

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.

  • npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo: 95.5 million versus 13.5 million, up 7.1×.
  • medianDownloadsRatio: Catalog-wide install growth benchmark of 4.1×.
  • dependents and peers: 9,817 indexed repositories versus 10,534 for Ace and 19,164 for Monaco.
  • github stars and bluesky posts: 7,803 stars and zero tracked Bluesky links for the archived GitHub hub.
  • github.com/uiwjs/react-codemirror/blob/master/extensions/basic-setup/package.json: A React integration installs the view package through its setup bundle.
  • github.com/codemirror/dev: Archived development hub forwards readers to Forgejo.
Vouched for8.4

Who stands behind it being good?

Claude Opus 5.5: 8.0, likely 7.0 to 9.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, likely 7.7 to 9.4

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.

Safe8.1

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.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.

  • advisories total: Zero advisories.
  • npm dependencies: Only 4 dependencies.
  • scorecard: No Scorecard data.
  • npm license: MIT.

GPT-6.2 Sol: 8.1, likely 6.8 to 9.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

npm downloads, 4 weeks
95M ×7.1 in a year
GitHub stars
7.8k
Commits, 12 months
4
npm version
6.43.15 Oct 2026
Versions, 12 months
39
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

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

Read on 21 November 2026 from GitHub (codemirror/dev), npm (@codemirror/view), OSV and the OpenSSF Scorecard.

Code editors and highlighters

  1. 8.5Shiki
  2. 8.4CodeMirror
  3. 7.5Monaco Editor
  4. 6.9highlight.js
  5. 6.5Sugar High
  6. 6.1starry-night
  7. 5.8Ace
  8. 5.8Prism
Compare all 8 on six scores