🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

automerge-monaco

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

automerge-monaco

collaborative monaco-editor powered by automerge

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

Automerge + Monaco

This plugin adds collaborative editing to monaco-editor using automerge.

[!note] this is alpha software

Example

import {Repo} from "@automerge/automerge-repo"
import automonaco from "automerge-monaco"

// set up a repo and create a doc handle.
// see https://automerge.org/docs/quickstart/
let repo = new Repo(..)
let doc = repo.create({code: ""})

// set up monaco
let monaco = await loader.init()
let container = document.getElementById("editor")!
// from "monaco-editor" or "@monaco-editor/loader" etc
let editor = monaco.editor.create(container, {
	value: handle.doc()?.code,
	language: "javascript",
	automaticLayout: true,
})

automonaco(editor, handle, ["code"])

Keywords

automerge

FAQs

Package last updated on 21 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts