🚨 Shai-Hulud Strikes Again:More than 500 packages and 700+ versions compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@collaborne/remirror-extension-yjs

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@collaborne/remirror-extension-yjs

Realtime collaboration with yjs (Collaborne fork)

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
6
Created
Source

@collaborne/remirror-extension-yjs

Realtime collaboration with yjs

Note: This is a fork for the original @remirror/extension-yjs, with some adjustments for Collaborne. Likely you want the original extension!

Installation

# npm
npm install yjs @collaborne/remirror-extension-yjs

You will also need to install your preferred YjsRealtimeProvider.

Due to the required peer dependencies this package is not included by default when installing remirror.

You will also need to install your preferred yjs protocol

# npm
npm install y-webrtc

Usage

The following code creates an instance of this extension.

import { WebrtcProvider } from 'y-webrtc';
import { Doc } from 'yjs';
import { YjsExtension } from '@collaborne/remirror-extension-yjs';

const extension = new YjsExtension({
  getProvider: () => new WebrtcProvider('global', new Doc()),
});

Keywords

remirror

FAQs

Package last updated on 01 Mar 2022

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