Comment by adeptima

1 day ago

Same experience. Go is my default choice for backend too

It can easily be a full time job

You need to mirror all logic and encoding/decoding part

https://github.com/yjs/yjs/blob/main/src/utils/encoding.js

https://github.com/yjs/yjs/commits/main/src/utils/encoding.j...

I was thinking about spining off nodejs instance just for persistence and syncing with postgres

Author here — I think our own almost server is almost exactly what you’re looking for? Y-Sweet [1] is open source, written in Rust and persists documents to S3. We offer a hosted version if you want to quickly check it out, which you can use with your own S3 bucket if you want to self host eventually.

This is the first I’ve heard of Platejs, but we do have a tutorial on integrating a block editor using BlockNote [2]

[1] https://github.com/jamsocket/y-sweet

[2] https://docs.jamsocket.com/y-sweet/tutorials/blocknote