Skip to content
PluginStats

vite-plugin-monaco-editor weekly downloads statistics

By vdesjs · npm · Vite plugins

A vite plugin for the Monaco Editor

View on npm Fresh · Oct 18, 2026

vite-plugin-monaco-editor has 173,487 recorded weekly downloads on npm, a decrease of 21.7% over the past 30 days, ranking #408 of 2,322 tracked listings.

Weekly downloads
173,487
Official API · Oct 18, 2026
7-day growth
-35.9%
-97.2K weekly downloads
30-day growth
-21.7%
-48.1K weekly downloads
90-day growth
-37.7%
-104.8K weekly downloads
Rank
#408
Among tracked npm listings

About vite-plugin-monaco-editor

Vite Plugin Monaco Editor

A plugin to simplify loading the Monaco Editor with vite.

  • It uses Vite specific plugin hooks: configResolved, configureServer, transformIndexHtml.
  • It uses esbuild to bundle worker in the node_modules/.monaco directory, via the server.middlewares proxy http server for the bundle worker.

Installing

// make sure you have it installed monaco-editor.

yarn add vite-plugin-monaco-editor -D

// or
npm install --save-dev vite-plugin-monaco-editor

Using

  • vite.config.ts:
import { defineConfig } from 'vite';
import monacoEditorPlugin from 'vite-plugin-monaco-editor';

export default defineConfig({
  plugins: [monacoEditorPlugin()],
});
Import all monaco functions
  • index.ts:
import * as monaco from 'monaco-editor';

monaco.editor.create(document.getElementById('container'), {
  value: 'console.log("Hello, world")',
  language: 'javascript',
});
Import part of monaco functions

The import * as monaco from 'monaco-editor' is import all features and languages of the Monaco Editor. Assume you only need part of the features and languages:

  • customMonaco.ts
import 'monaco-editor/esm/vs/editor/editor.all.js';
import 'monaco-editor/esm/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp.js';

import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';

export { monaco };

The Complete list of imports: customMonaco.ts

  • index.ts
import { monaco } from './customMonaco.ts';
monaco.editor.create(document.getElementById('container'), {
  value: 'console.log("Hello, world")',
  language: 'javascript',
});

Options

  • languageWorkers (string[]) - include only a subset of the languageWorkers supported.

    • default value: ['editorWorkerService', 'css', 'html', 'json', 'typescript'].
    • Assuming only use css worker(editorWorkerService is must include base worker), you can set ['editorWorkerService', 'css']
  • customWorkers (IWorkerDefinition[]) - include your custom worker.

    • default value: []
    • example value: [{label: "graphql", entry: "monaco-graphql/esm/graphql.worker"}], The entry is relative path in the node_modules Or you can set absolute path.
  • publicPath (string) - custom public path for worker scripts, overrides the public path from which files generated by this plugin will be served. Or you can set CDN e.g https://unpkg.com/vite-plugin-monaco-editor@1.0.5/cdn

    • default value: monacoeditorwork
  • globalAPI (boolean) - specifies whether the editor API should be exposed through a global monaco object or not. This option is applicable to 0.22.0 and newer version of monaco-editor. Since 0.22.0, the ESM version of the monaco editor does no longer define a global monaco object unless global.MonacoEnvironment = { globalAPI: true } is set (change log).

    • default value: false.
  • customDistPath ((root: string, buildOutDir: string, base: string) => string) - Custom callback returns the worker path

  • forceBuildCDN (boolean) - If you use CDN, the build is skipped by default. Set to true if you want to generate woker

    • default value: false

Some languages share the same web worker. If one of the following languages is included, you must also include the language responsible for instantiating their shared worker:

LanguageInstantiator
javascripttypescript
handlebarshtml
scss, lesscss

Description from the npm listing.

  • vite-plugin
  • monaco
  • editor

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-monaco-editor weekly downloads on npm, last 90 days: 173,487 weekly downloads as of Oct 18, 2026, -37.7% over 90 days.vite-plugin-monaco-editorWeekly downloads on npm · Last 90 days173,487downloads / week-37.7% over 90 days100K150K200K250K300K350KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-monaco-editor weekly downloads on npm, last 90 days: 173,487 weekly downloads as of Oct 18, 2026, -37.7% over 90 days.

7/30/90-day growth

vite-plugin-monaco-editor weekly downloads growth on npm: -35.9% over 7 days, -21.7% over 30 days, -37.7% over 90 days.vite-plugin-monaco-editorWeekly downloads growth on npm173,487downloads / week now7-day growth-97,192 weekly downloads-35.9%30-day growth-48,118 weekly downloads-21.7%90-day growth-104,787 weekly downloads-37.7%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-monaco-editor weekly downloads growth on npm: -35.9% over 7 days, -21.7% over 30 days, -37.7% over 90 days.

Ranking history

vite-plugin-monaco-editor npm ranking history: currently #408 (by weekly downloads).vite-plugin-monaco-editornpm ranking · by weekly downloads · Last 90 days#408current rank#405#406#407#408#409#410Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-monaco-editor npm ranking history: currently #408 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 21, #8 (overall #408)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins253 listings · 13 pages · page 3, #11 (overall #51)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for vite-plugin-monaco-editor
Date (UTC)Weekly downloadsChange vs. previous
173,487+21.1K
152,366-21.8K
174,141+4.4K
169,737-66.6K
236,367-50.8K
287,2080
287,208+16.5K
270,679+6.8K
263,897+822
263,075+5.9K
257,217+16.7K
240,508-12.6K
253,073-60.9K
313,957—

Similar npm Vite plugins plugins

All 20 vite-plugin-monaco-editor alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-monaco-editor. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.