New:Socket for Asana Is Now Available.Learn more
Get Started

@jsonjoy.com/collaborative-monaco

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsonjoy.com/collaborative-monaco

Binding for collaborative editing support in Monaco Editor. Connects JSON CRDT str node to Monaco Editor.

latest
Source
npmnpm
Version
18.30.0
Version published
Maintainers
2
Created
Source

Collaborative editing for Monaco editor

Makes a plain Monaco editor instance collaborative by binding it to a JSON CRDT document str node. This allows multiple users to edit the same document json-joy JSON CRDT document concurrently through the Monaco editor.

collab-monaco-demo

Usage

Installation:

npm install json-joy @jsonjoy.com/collaborative-monaco monaco-editor

Usage:

import {bind} from '@jsonjoy.com/collaborative-monaco';
import * as monaco from 'monaco-editor';
import {Model, s} from 'json-joy/lib/json-crdt';

const model = Model.create(s.str('hello'));

const editor = monaco.editor.create(div, {
  value: 'hello world',
});

const unbind = bind(() => model.s.toApi(), editor);

// When done, unbind the binding.
unbind();

React Usage

For React integration, use the @jsonjoy.com/collaborative-monaco-react package.

Keywords

monaco

FAQs

Package last updated on 08 Sep 2026

Related posts