#826·reactpy

Use YJS for sending diffs (JsonPatch replacement)

Author: rmorsheaCreated Oct 20, 2022Updated Dec 11, 2025
Labelspriority-3-lowtype-revisionrelease-patch

Current Situation

Currently, we've turned off diffing with JsonPatch due to bugs in the Python implementation.

Proposed Actions

While what we're doing now seems to work fine. We could replace JsonPatch with YJS since the YJS protocol has a Python implementation and an ASGI compliant websocket connector. Since the Python implementation ultimately wraps a Rust binary, this would likely be many times faster than JsonPatch, being implemented in pure Python, ever could have been.