←back to thread

Learn Yjs Interactively

(learn.yjs.dev)
296 points paulgb | 2 comments | | HN request time: 0.586s | source
Show context
oefrha ◴[] No.42732890[source]
I used Yjs in a small side project a while ago. The client side was fairly easy to learn and use. On the server side though, I wanted to deploy a single binary, but examples in languages other than Node (e.g. for the Rust port Yrs) seemed close to nonexistent, so I ended up slightly adapting https://github.com/yjs/y-websocket (Node) with persistence based on LevelDB. That's suboptimal for me. I wonder if there are good resources for implementing the server-side with persistence in, say, Rust.

Btw, IIRC existing resources for the client side are heavily focused on text editor integrations, so this is really helpful. I had to fumble a bit myself because I wasn't using a text editor integration.

replies(1): >>42732983 #
1. paulgb ◴[] No.42732983[source]
You might like Y-Sweet[1], an open-source Rust server that powers the banner on Learn Yjs. It uses S3 or the local filesystem for storage, and it compiles down to a musl-linked binary that weighs a few megabytes.

https://github.com/jamsocket/y-sweet

replies(1): >>42733044 #
2. oefrha ◴[] No.42733044[source]
Thanks, I'll look into it. It's pretty low on the list of search results for Yjs server, I somehow missed it the last time.