New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@jsonjoy.com/collaborative-str

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-str

JSON CRDT str node bindings to any generic plain text editor.

latest
Source
npmnpm
Version
18.30.0
Version published
Weekly downloads
64
-25.58%
Maintainers
2
Weekly downloads
 
Created
Source

Collaborative plain text editor binding

Binds a generic plain text editor to a JSON CRDT str node, enabling real-time collaborative editing of <input>, <textarea>, and code editors like CodeMirror, Monaco, and Ace.

📖 Full documentation →

collaborative-str

Installation

npm install json-joy @jsonjoy.com/collaborative-str

Usage

The minimal integration implements only get() and set():

import {StrBinding} from '@jsonjoy.com/collaborative-str';

const unbind = StrBinding.bind(
  () => model.api.str(['path', 'to', 'string']),
  {
    get: () => input.value,
    set: (text) => { input.value = text; },
  },
  true,
);

For granular sync, implement more of the EditorFacade interface — see the full documentation.

Keywords

collaborative

FAQs

Package last updated on 08 Sep 2026

Related posts