@collaborne/remirror-extension-yjs
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

@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()),
});

Dependents (0)

Package Sidebar

Install

npm i @collaborne/remirror-extension-yjs

Weekly Downloads

8

Version

1.2.1

License

MIT

Unpacked Size

163 kB

Total Files

17

Last publish

Collaborators

  • eacet
  • idrissmahjoubi
  • sudhons
  • ronnyroeller
  • collaborne-team