[]
        
(Showing Draft Content)

js-collaboration-ot

js-collaboration-ot is a collaboration library based on Operational Transformation (OT) technology, designed to enhance the real-time synchronization capabilities of js-collaboration. Through the OT technology, it enables multiple users to edit the same data simultaneously. It is divided into the client side (js-collaboration-ot-client) and the server side (js-collaboration-ot).

Applicable Scenarios

Suitable for applications requiring real-time collaborative editing, including:

  • ​​Collaborative spreadsheet editing

  • Rich text co-authoring

  • Interactive chart collaboration

Core Features

  • Custom OT Types: Supports developers in defining custom operation types to meet various business needs.

  • Data Persistence: Provides adapter interfaces for integration with database storage.

  • Fragment Mechanism (Fragments): Improves synchronization performance for large documents.

  • Conflict Resolution: Ensures data consistency through the OT algorithm.

  • Middleware and Hooks: Supports inserting validation, logging, and other logic into the collaboration process.

Design Advantages

  • Modularity: OT types, middleware, and adapters are independently designed, making customization and extension easy.

  • Efficiency: The Fragment mechanism reduces I/O overhead for large documents.

  • Flexibility: Supports asynchronous middleware and diverse databases, adapting to complex business scenarios.

Next Steps

Follow these step-by-step tutorials using js-collaboration and js-collaboration-ot to build a real-time collaborative text editor based on Operational Transformation (OT):

Master core concepts and APIs of js-collaboration-ot, covering:

Each module will demonstrate practical usage via code examples. It is recommended to gradually practice by following the tutorial path in the left-hand navigation bar.