Are y-leveldb and y-indexeddb interoperable?

@dmonad Kevin Jahns
Thu, 18 Sep 2025 15:26:42 +0000

They are completely interoperable. The issue is probably that there is existing content, and the sync isn’t working correctly. The error message suggests that the message got corrupted (or is only sent partially). I would check the following things:

do the messages get corrupted when sending? You could check the hash of the massages, or simply compare the lengths of the messages. This is the most likely case.

are you using the same Yjs release on backend and client (unlikely, but there might be incompatibilities - especially between Y-CRDT and Yjs).

Do the messages get corrupted in the database? Again, it would make sense to compare the hashes of the encoded documents after they are synced.