mrkeyoor.comAsk

microsoft/monaco-editortested 23 Nov 2026commit ba7a57d

monaco-editor review

Our source run installed in 24 seconds and passed its build and test steps, giving Monaco a successful contributor baseline at ba7a57d.

  • README install 9.7 s
  • README snippet failed
24 sto install
  • 106.9 MB on disk
  • 3 dependencies
Dev Toolsevaluationupdated 23 Nov 2026
+18stars / 7d

Monaco Editor is the code-editing component from VS Code, packaged for embedding in browser applications. It gives your app editable documents and language assistance such as completion and hover help; your app supplies saving, previews, and code execution.

Verdict

Our source run installed in 24 seconds and passed its build and test steps, giving Monaco a successful contributor baseline at ba7a57d. Use it if you're building a desktop browser editing product and can own worker loading and language integration. Skip it if mobile browser editing is mandatory: Microsoft explicitly excludes that platform. The separate quickstart stopped at a missing README snippet, so these checks aren't a completed browser integration.

monaco-editor infographic: code editing and language assistance in your browser app, plus our test result and who it suits
Tested 23 November 2026: the README snippet failed. Before that: source install 24 s, build 144 s; npm install took 9.7 s.

We ran it

Lab card: what happened when we ran monaco-editor
Lab card from our sandbox run
Screenshot of monaco-editor (microsoft.github.io/monaco-editor)
microsoft.github.io/monaco-editor
Install✓ · 24s698 packages · 518 MB
Build✓ · 144s
Tests✓ · 154sran, no count parsed
Known vulns00 critical · 0 high · 0 moderate · 0 low (npm audit)
Repo985 files~150,743 lines of source · 21.1 MB · 2 CI workflows · tests dir

Answers from our run

Does monaco-editor build from source?

Dependencies installed in 24 seconds (698 packages), and the build succeeded in 144 seconds. We cloned commit ba7a57d into a clean Debian container with 3 CPUs and no project-specific setup.

Do monaco-editor's tests pass?

Yes. The project's own test command exited successfully in 154 seconds, although its output did not expose an individual test count.

Does monaco-editor have known vulnerabilities in its dependencies?

npm audit found none in the dependency tree at the time of our run.

Who should not use monaco-editor?

Products that require phone or tablet browser editing: Microsoft explicitly excludes mobile browser support.

What are the alternatives to monaco-editor?

CodeMirror 6, Ace, Visual Studio Code. Our source run installed in 24 seconds and passed its build and test steps, giving Monaco a successful contributor baseline at ba7a57d.

Setup4/5In our 2026-11-23 run it installed as the README says in 9.7 s; the README gave no task we could run as written.Editor’s note: The source install, build, and tests passed; the consumer quickstart stopped before a browser editing task, so application setup effort is unassessed.
Docs3/5The README has an install section (“Installing”) and a usage section (“Try it out”), but the usage section is thin: no code and under 400 characters.Editor’s note: The README explains models, providers, and disposal and links ESM samples; the automated snippet recipe stopped without a runnable JavaScript/TypeScript example.
Community5/5Last push on 2026-11-21, 46,999 stars and maintainers answered or closed 8 of the 10 most-discussed issues we sampled.Editor’s note: Named adoption announcements and detailed issue exchanges support useful integration research; support response times and resolution rates are unassessed.
Maturity4/5Latest release v0.57.0 on 2026-09-24 (pre-1.0), repository created 2016-06-07 and its test suite passed in our sandbox.Editor’s note: The recorded source checks passed and historical issues document integration boundaries; production reliability and browser workload behavior are unassessed.

How we score

Discussed on

  1. hnThe Monaco Code Editor724 points
  2. hnMonaco Editor3 points

Who it’s for

Teams building desktop browser coding workspaces, configuration editors, or playgrounds.
React or Vue developers willing to choose an asset-loading route and configure workers.
Developers who want document models and language-provider APIs inside an application they control.

Who it’s NOT for

Products that require phone or tablet browser editing: Microsoft explicitly excludes mobile browser support.
Teams expecting ordinary VS Code extensions to run unchanged in their embedded editor: the README says they do not.
Teaching products relying on a documented core API for protected lines: issue #953 remains an open request.
Multi-editor pages that require independently colored themes: the maintainer explains the shared-color limitation in #338.

Setup reality

Our November 23, 2026 source run at ba7a57d installed successfully in 24 seconds, recorded 698 dependencies and 518 MB on disk, built in 144 seconds, and passed its test step in 154 seconds. npm audit reported 0 known vulnerabilities across all severity levels.

Embedding requires a served web application, Monaco assets, and working language-service workers. React's @monaco-editor/react wrapper defaults to CDN loading; bundling npm sources takes a separate configuration. Previews, code execution, and external language servers add their own integrations. A separate quickstart recipe stopped because the README had no runnable JavaScript/TypeScript code block.

The source sandbox was configured with 3 CPUs, 8 GB RAM, and image label lab-node:22; actual runtime and OS versions require raw toolchain logs. Serve over HTTP or HTTPS because file:// blocks worker creation. Microsoft deprecates AMD and excludes mobile browsers from support.

Choose Monaco for desktop browser editing

Monaco suits a desktop browser product whose users need code completion, hover help, and editable documents with their own history. Use it if you can own the application around that editor. Skip it if phone editing is a requirement: Microsoft explicitly excludes mobile browsers and mobile web frameworks. Our source checks passed, but the separate quickstart automation stopped before a browser task.

The useful distinction starts with a file. Monaco calls the object holding its text, language, and edit history a model. The editor is the visible view of that model. A model's URI, its document address, helps TypeScript resolve imports and JSON choose a schema. The README explains these responsibilities separately. If you're building a tabbed configuration workspace, document identity belongs in the design before you wire up suggestions.

Monaco supplies the editing surface. Running code or rendering its result takes another component: the React execution tutorial uses Piston, while the image-playground tutorial connects Monaco to React Live. That is the central adoption decision. You get substantial editing machinery, and you still own what happens when a user presses Run, saves a file, or opens another tab. The Piston demonstration shows execution and returned output, and the preview demonstration shows the React Live connection.

What people use monaco-editor for

Vue's SFC Playground and Athas provide named examples of Monaco adoption, while the tutorial videos show the surrounding code an integration needs. These are different kinds of evidence: a product announcement tells you a team selected Monaco; a walkthrough lets you see which parts the creator assembled.

Who used it What they did and reported
Vue's vuejs account Announced that the Vue SFC Playground runs Monaco Editor and Volar fully in the browser. Vue described the combined integration.
Athas developer athasdev Made Monaco the default engine and kept the Athas engine selectable behind a feature flag while it improves. The developer explained the switch.
v0 Announced its switch to Monaco and reported better highlighting, autocompletion, and performance. Those improvements are the team's claims, without a numerical comparison in the announcement. v0 named its reasons.
The React execution tutorial's creator Built language selection, JavaScript IntelliSense, and an output panel that receives results and errors from Piston. The walkthrough separates editing from execution.
The Next.js image-playground tutorial's creator Connected Monaco edits to React Live, then changed an image source, removed its background, and added a background layer. The video shows the image changing.

The image walkthrough is particularly useful if you want a live preview. The creator first renders an editor beside an image, but changing the text doesn't change the image. React Live supplies the preview, a scope makes the custom image component available, and shared React state connects the two. The creator also hits a client-component error before marking the component correctly. You can see the integration taking shape rather than mistaking the finished playground for a Monaco feature.

What happened when we ran it

Our source checkout installed in 24 seconds, built in 144 seconds, and passed its test step in 154 seconds. These are the November 23, 2026 results for commit ba7a57d on a sandbox configured with 3 CPUs, 8 GB RAM, and image label lab-node:22.

The separate quickstart run reached a different boundary. Its recipe installed the published npm library, then looked for a runnable JavaScript or TypeScript example in the README. That is an automation recipe stopping, not a browser editor throwing an exception. Microsoft directs integrators to its samples and playground instead.

Source-check step Our result What it means for you
npm install Succeeded in 24 seconds The repository dependency setup completed in this sandbox.
Dependency environment 698 dependencies recorded, 518 MB on disk This is a source-development footprint, not a browser download size.
Build Succeeded in 144 seconds The checked-out source completed its build step.
Tests Succeeded in 154 seconds The test command passed; the summary gives no test count.
npm audit 0 known vulnerabilities: 0 critical, high, moderate, or low The dependency audit reported no known findings in this run.
Repository scan 985 files, about 150,743 source lines, 21.1 MB checked out The checkout is separate from the installed environment.
Automation signals 2 CI workflow files, a tests directory, no Dockerfile These are detected files, not independent CI execution results.

The contributor path therefore has a successful baseline, while the quickest consumer recipe needs a better starting example than an automatic README snippet search. The two runs answer different questions. The source checkout includes development tooling; embedding the distributed package is another task. Keep the 518 MB figure attached to the source environment when budgeting your work, rather than treating it as the payload every visitor downloads.

Where people get stuck: workers, CSS, and document names

A visible editor can coexist with broken language services: in issue #759, meyer reported failed worker loading followed by TypeError: self.require is not a function. Workers are browser background threads that keep language processing away from the interface. In that historical thread, meyer traced the loading failure to paths on another origin, and confirmed timkendrick's webpack-context workaround worked. Alexdima still warned that running the heavy work on the UI thread could cause freezes.

That distinction changes troubleshooting. Fixing an exception in a fallback path and successfully starting the worker are separate outcomes. Begin with the served worker URL and the integration instructions for your bundler. The README gives an especially direct rule: a page loaded through file:// cannot create the required web workers. Use an HTTP or HTTPS server.

Symptom What the named report or documentation says Action supported by that account
Missing highlighting, suggestions, or validation in react-monaco-editor The wrapper documentation points to its webpack plugin and ESM instructions. Follow the wrapper's integration path, including its Monaco assets. Wrapper instructions.
Monaco styles conflict with CSS Modules The same wrapper README describes separating application and Monaco css-loader rules. Keep Monaco's styles out of the application's CSS Modules rule. The documented CSS separation.
Direct browser ESM loading fails on CSS imports Issue #886 discusses CSS processing and local transformations into JavaScript that inserts styles. Use a pipeline that handles the CSS imports; the open discussion records workarounds. Issue #886.
JSX or TSX is parsed as ordinary JavaScript In #264, joewood reports success with a .tsx model URI and React JSX compiler options; dandingol03 reports success with a .jsx filename. Give the model a matching filename and configure the language service. Issue #264.

The filename problem is easy to underestimate. A syntax selector in your toolbar tells the user which language they chose, but the model URI also feeds the language tooling. A lesson editor that presents a React example under an anonymous document name can need more than a language label. The TypeScript and JSON examples in the README make document addresses part of functionality, not merely a way to label tabs.

React, Vue, and Angular take different integration paths

@monaco-editor/react downloads Monaco files from a CDN by default; bundling the npm sources is a separate documented configuration. Its loader instructions make that distinction explicit. A CDN is an external asset host. Choosing it changes where the editor files come from, so choose the loading route before deciding how much bundler work the wrapper saves.

Integration Documented route Decision to make
Core monaco-editor npm package ESM distribution and the public declarations in monaco.d.ts Own the editor lifecycle and worker integration. Official README.
monaco-editor/react searches The package is named @monaco-editor/react; its loader defaults to CDN files Choose default hosted assets or bundled npm sources. Wrapper loader documentation.
react-monaco-editor Documents monaco-editor-webpack-plugin and separate CSS handling Use its webpack or ESM instructions for your build. Wrapper README.
monaco-editor vue integrations Talljack's monaco-editor-component documents Vue 3+ components and Vite getWorker setup Treat the component and worker setup as parts of the same integration. Vue and worker examples.
monaco-editor angular integrations Matthias247 describes Angular 2 integration using CopyWebpackPlugin and an AMD loader in #18 Read this as historical guidance, then start with the current ESM samples. The Angular account.

For monaco-editor-webpack-plugin, the official documentation describes selecting languages and editor features, plus a publicPath setting for worker scripts. The plugin is a webpack integration aid, not something every React application must use. The @monaco-editor/react README warns that its bundled npm route may require extra webpack plugins or CRA ejection. Its simpler default path doesn't promise an identical setup for every loading strategy.

monaco-editor-core is a building block for specialized integrations; its own README recommends monaco-editor for ordinary use because that package adds language support. The core package explains that boundary. Start with the full package unless you have a specific reason to assemble around the core.

Language providers help you edit; LSP needs another integration

Monaco's provider APIs deliver features such as completion and hover information, while an external Language Server Protocol connection needs additional integration. LSP is the protocol editors and language servers use to exchange those requests. The Monaco README distinguishes providers from LSP features, and CodinGame's guide explicitly says LSP support isn't native.

That guide builds toward an LSP-capable editor using monaco-vscode-api and replacement API packages. It also describes bundler nuances. For your decision, the important cost is architectural: a requirement for an external language server changes the integration you are choosing. A demonstration of JavaScript suggestions in a Monaco editor doesn't prove that connecting a Python server is equally simple. Decide which language assistance your users need before selecting a wrapper solely on how short its first example looks.

Protected ranges and themes cause pain in teaching tools

Issue #953 asks for read-only lines inside otherwise editable code, and #338 reports shared theme behavior between editors. Sinaa's protected-range request remains open in the tracker account. It describes students editing inside a function while the surrounding template stays locked. A reply says the requested core behavior is unavailable; subsequent comments keep asking for it.

For an education product, this is a design requirement to settle early. Whole-document read-only behavior doesn't answer the request to protect a function signature while allowing its body to change. If the exercise depends on preserving surrounding text, budget a separate solution or choose another editing design rather than assuming a visual decoration enforces the restriction.

In #338, alexdima explains that tokens store resolved colors in the text buffer, which can be shown by different editor views. He says there are no plans to support independent themes in that discussion. Tevfik6 says this sends them back toward Ace, while cancerberoSgx reports reusing the other theme's colors. Side-by-side exercises with separate visual identities deserve an early prototype using the actual themes, not just two empty editor boxes.

Security work belongs around execution and asset loading

Our npm audit reported 0 known vulnerabilities in the source run, while the execution tutorial sends the editor's contents to Piston. The tutorial demonstrates that external execution request. These observations concern different boundaries: the audit covers known dependency advisories, and your execution design determines where user code goes.

Treat adding a Run button as a separate product decision. Decide which code may leave the browser and which service is allowed to execute it. Likewise, the React wrapper's default CDN loading means editor assets come from another host unless you configure a different route. A bundled or self-hosted route gives your team responsibility for those files and their worker paths. The review's clean audit result isn't a reason to skip those application decisions.

Monaco Editor vs CodeMirror, Ace, and VS Code

CodeMirror is worth trying first for a product centered on mobile editing; that recommendation follows Microsoft's mobile exclusion and the preferences reported in #246. Barneycarroll and fabiospampinato favor CodeMirror's mobile behavior in that thread. Their accounts are opinions from integrations, rather than a controlled comparison of editor speed.

Choice Why you would pick it Evidence behind that choice
Monaco Your desktop browser product needs the editing and language assistance demonstrated in the walkthroughs The image-playground creator chose Monaco after finding CodeMirror effective for simpler uses. The creator's comparison.
CodeMirror 6 Mobile editing is central enough to choose a component around it Participants in #246 prefer its touch editing over Monaco. Mobile discussion.
Ace Independently styled editor instances are a requirement worth evaluating alternatives for Tevfik6 says Monaco's theme limitation makes them return to Ace. This is their selection rationale. Theme discussion.
VS Code You want a ready-made development application and an extension workflow Monaco's README says ordinary VS Code extensions won't run in the embedded editor. The extension boundary.

React wrapper choice is another comparison within Monaco. react-monaco-editor documents webpack-plugin setup, while @monaco-editor/react starts with CDN loading and offers a separate bundled path. Neither wrapper removes Microsoft's mobile-support boundary. Choose an editor against the interaction your user needs, then choose the wrapper against the way your application ships assets.

What the other reviews get wrong

iTechGuides describes native LSP support, but CodinGame's integration guide explicitly says that support isn't built into Monaco. The iTechGuides review makes the native-support claim, while the guide introduces the additional API layer. Completion providers and an attached external language server shouldn't be presented as the same capability.

The iTechGuides product fact sheet also labels Monaco a desktop editor with cloud deployment. Those labels appear in its fact sheet. Microsoft's README describes a browser library. That difference matters if you expect an application you can launch after installing a global npm package: Wildermuth Salome's Microsoft Q&A question reports command not found. npm distributes the library; the README points you to integration samples.

FixDevs claims that a plain @monaco-editor/react import necessarily pulls roughly 5 MB of language services into the initial bundle. That claim appears in its troubleshooting article, but the wrapper documents CDN loading as its default. A universal initial-bundle estimate ignores that route. The same documentation qualifies bundled npm use with possible extra webpack configuration. Read the default-loader promise together with that qualification.

Questions people ask

Monaco Editor is the browser-embeddable editing component generated from VS Code's sources, with services adapted for use outside the VS Code application. Microsoft explains that relationship in its FAQ.

What is Monaco Editor, and how does it relate to VS Code?

The editor comes from VS Code's source, but the ordinary VS Code extension environment doesn't accompany it. Microsoft answers no to running an existing VS Code extension in browser Monaco, with a qualification for a fully LSP-based extension whose server is JavaScript. The official relationship and extension answers state the boundary.

How do I integrate Monaco Editor with Angular?

Matthias247 reports an Angular 2 integration in #18 using CopyWebpackPlugin and an AMD loader. That is historical guidance. The report describes its Angular component, while today's README deprecates AMD and points to ESM samples. Use those current samples as your starting point rather than treating the old component as a current Angular recipe.

When do I need monaco-editor-webpack-plugin?

The plugin simplifies Monaco loading with webpack and offers worker-path, language, and feature configuration. react-monaco-editor includes it in its instructions. The wrapper shows that setup. @monaco-editor/react's default CDN path is different, and its npm-bundled path can require additional configuration. Its loader documentation describes both.

Why are syntax highlighting, autocomplete, or validation missing?

react-monaco-editor points users missing these features to the webpack plugin or ESM integration instructions. Its troubleshooting answer names that remedy. An editor mounting successfully is only one part of setup. Match the asset and worker configuration to the integration you actually chose, rather than changing language settings at random.

Does Monaco support JSX and TSX, and how should I configure them?

Joewood reports getting TSX working with a .tsx model URI and React JSX compiler settings in #264. Dandingol03 also reports success after using a .jsx filename. Their replies identify the configuration. The account supports those reported workarounds, not a promise that every React project will resolve its dependencies without adding suitable declarations.

Can I make specific lines or character ranges read-only?

Issue #953 asks for precisely this behavior, and rcjsuen replies that it isn't possible as requested. The discussion remains an open request. If your exercise needs locked scaffolding around editable code, treat that as a separate requirement rather than equating it with making the entire document read-only.

Can multiple Monaco editors on the same page use different themes?

Alexdima says they cannot have independent themes in #338 and explains the resolved-color text-buffer design. His reply also says there are no plans to support it. The thread includes a shared-colors workaround, so a multi-editor design should settle its color requirements before relying on per-editor theme switching.

Does Monaco support mobile browsers and touch editing?

No: Microsoft's site explicitly says mobile browsers and mobile web frameworks are unsupported. The platform statement is direct. In #246, participants describe typing, touch-selection, and keyboard difficulties. Those reports explain why getting an editor to appear on a phone is a different result from delivering a usable phone editing experience.

How should I choose between Monaco and a mobile-compatible editor on touch-screen devices?

Trusktr proposes using another editor on mobile and retaining Monaco on desktop; n8sabes asks how to handle touch-screen laptops. Their exchange discusses a user-selectable fallback. It offers design options rather than a universal device-detection rule. For a mixed-input product, a switch lets users choose the editing surface that works with their keyboard or touch input.

Why does Monaco's hover provider fail inside a Web Component's ShadowRoot?

Issue #3409 describes mouse-event behavior that hides the hover widget inside Shadow DOM, the browser's component-isolation boundary. Romainr reports using the thread's patch successfully. The open discussion records that local workaround. A successful patch in one integration and a released upstream fix are different outcomes.

Why do mouse clicks place the caret incorrectly inside Shadow DOM?

Janarvaez reports incorrect caret positions and selection in #3217, then describes using a slotted container outside the shadow root or an iframe. LucasMarioza reports removing an inherited font style. Those replies document different local remedies. The issue is closed in the tracker account, but the discussion contains continued reproduction reports rather than proof of one universal fix.

Is there a ready event that guarantees language providers are initialized before formatting?

Issue #115 records an immediate formatting action doing nothing after editor creation. The questioner initially uses a scroll event as a workaround, but tsy77 later says that event can fire before providers attach. The discussion distinguishes editor creation from provider readiness. Don't turn a wrapper's mount event into a guarantee that every language action is available.

What we have not tested yet

Our checks cover a source checkout and a quickstart recipe, not a deployed browser application. We have not tested editor responsiveness, bundle transfer size, memory during editing, or a controlled comparison with CodeMirror or Ace. The quickstart has no completed editing task or screenshots, and no known-answer question set. The README-snippet failure explains where that recipe stopped; it says nothing about the quality of a manually assembled integration.

The image label lab-node:22 records sandbox configuration, not the actual Node or operating-system version. Establishing those requires the raw toolchain logs. The passing test step has no accompanying test count here. Its scope should remain a command result, and the clean npm audit should remain a known-vulnerability scan, not a security certification.

Browser acceptance still needs the specific product: worker loading behind your asset host and content policy, keyboard and screen-reader behavior, model disposal across repeated tab changes, protected-range enforcement, theme combinations, Shadow DOM hover and selection, and any external language-server connection. The X announcements are named adoption reports rather than independently measured customer outcomes. The videos show their authors' demonstrations, not production reliability under your workload.

For a first evaluation, use Microsoft's ESM sample with one representative document and your intended worker hosting. Exercise the exact completion, formatting, and preview or execution path your user needs. A working editor plus a working product action is the result to record next.

Alternatives

ProjectWhat it isPick it when
CodeMirror 6An editor alternative favored for mobile editing by participants in Monaco issue #246.Try it first when touch editing is a core requirement; those preferences are user reports, not our comparative benchmark.
AceA browser editor that a participant in the theme discussion chose to return to.Evaluate it when independent editor themes decide the design; the thread records the reason for switching, not a feature test by us.
Visual Studio Code gh↗The development application whose sources generate the Monaco editing component.Choose the application when you want its existing extension workflow instead of building an embedded editing product.

Sources

  1. GitHub - microsoft/monaco-editor: A browser based code editor
  2. GitHub - suren-atoyan/monaco-react: Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins
  3. GitHub - Talljack/monaco-editor-component: Monaco Editor and DiffEditor, support Vue and React
  4. Getting started guide
  5. X search
  6. Build a Browser Code Editor in React (Monaco React Editor)
  7. Build a Code Editor in React
  8. Any Plan for Mobile

More dev tools reviews