YJ

Yjs

@lexical/yjs

The library provides Yjs editor bindings for Lexical.

Rich Text
react
lexical
editor
rich-text
colllaboration
yjs
crdt
@lexical/yjs
Rich Text
javascript
Stars
24k
Weekly
3.2M
Open issues
371
Bundle
~25 kB

Installation

npm install @lexical/yjs

Code example

import { Yjs } from "@lexical/yjs";

export function Example() {
  return (
    <div>
      <h2>Yjs</h2>
      <Yjs />
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by fantactuka
  • 3.2M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 371 open issues on GitHub

FAQs

Alternatives & similar libraries