npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@node-projects/monaco-editor-esm

v0.55.1

Published

A real ESM (EcmaScript Module) build of the Monaco Editor, suitable for modern build tools and direct browser usage. This package provides the Monaco Editor as native JavaScript modules in the /esm directory, and all required CSS in /min. Note: Due to cu

Readme

@node-projects/monaco-editor-esm

Real ESM version of Monaco Editor

This package provides a true ESM (EcmaScript Module) build of the Monaco Editor, suitable for modern build tools and direct browser usage. All JavaScript modules are available in the /esm directory, and all required CSS files are in /min.

Why ESM?

  • Native ESM modules allow for better tree-shaking, direct browser imports, and compatibility with modern bundlers (Webpack, Rollup, Vite, etc.).
  • The official Monaco Editor package is not fully ESM and includes AMD/CommonJS code and non-standard CSS imports.

Usage

  1. Install the package:
    npm install @node-projects/monaco-editor-esm
  2. Import the editor in your code:
    import * as monaco from '@node-projects/monaco-editor-esm/esm/vs/editor/editor.main.js';
  3. Make sure to load the required CSS from /min:
    import editorStyle from '@node-projects/monaco-editor-esm/min/vs/editor/editor.main.css' with { type : 'css' };
    shadowRoot.adoptedStyleSheets.push(editorStyle);
    // or
    document.adoptedStyleSheets.push(editorStyle);
    Or include it in your HTML:
    <link rel="stylesheet" href="node_modules/@node-projects/monaco-editor-esm/min/vs/editor/editor.main.css">

CSS Import Caveats

  • The ESM modules may contain import './file.css' statements, which are not yet supported natively in browsers or Node.js. Most bundlers can handle these imports with the appropriate loader/plugin.
  • If you use the modules directly in the browser, you must include the CSS manually as shown above.
  • For more background, see the discussion on ESM and CSS loading.

Limitations

  • Some features may require additional configuration for web workers. See Monaco Editor documentation for details.
  • The ESM build is not guaranteed to be 100% compatible with all Monaco Editor plugins or extensions.

Updating to a New Monaco Editor Release

When a new version of Monaco Editor is released, update this package by running the update-monaco GitHub Actions workflow:

  1. Go to the Actions tab in your GitHub repository.
  2. Select the Update Monaco Editor workflow.
  3. Click Run workflow to trigger the update process.

This workflow will:

  • Install the latest Monaco Editor version
  • Update the package version
  • Rebuild the ESM and CSS outputs
  • Commit, tag, and (if configured) create a GitHub release for the new version

After the workflow completes, verify the changes and publish the package if needed.

License

MIT