Skip to content

Real-time Shared Editing using Yjs: New Frontend Design #1573

Closed

Description

@Xiao-zhen-Liu

We're migrating to using a new CRDT-based library for shared editing, yjs.

Under the hood it requires us to change our frontend architecture and design patterns.

Before our frontend architecture heavily relies on WorkflowActionService and the command pattern, but was not considering conflict resolution so a lock had to be used:
Texera Frontend-Before
Also this design essentially treats the data and view as equally important.

The new design looks like this:

Texera Frontend-New

This design lets data be the single source of control.

The dev is still ongoing. See TODOs which can be found in related project.

Activity

  1. self-assigned this
    on Jul 6, 2022
  2. changed the title [-]Real-time Shared Editing using Yjs: New frontend design[/-] [+]Real-time Shared Editing using Yjs: New Frontend Design[/+] on Jul 6, 2022
  3. linked a pull request that will close this issueIntegrate Shared Editing based on Yjs #1660on Sep 20, 2022
  4. added
    frontend
    and removed on Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

frontendrefactor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions