←back to thread

Learn Yjs Interactively

(learn.yjs.dev)
296 points paulgb | 4 comments | | HN request time: 1.067s | source
1. sergiotapia ◴[] No.42732623[source]
is Yjs a platform like Convex? are they competing? would love a comparison page potentially! :pray:
replies(1): >>42732713 #
2. paulgb ◴[] No.42732713[source]
You can think of Yjs as a protocol for data synchronization. It gives you a way to describe a JSON-like data structure (i.e. nested lists and maps), and keep them in sync across multiple devices.

Yjs itself doesn't provide a platform, but it's an open protocol so there there are service providers (like ourselves[1]) that offer Yjs backends as a service (other notable providers are TipTap/Hocusocus and Liveblocks).

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

replies(1): >>42734441 #
3. showdown ◴[] No.42734441[source]
what's the main differences in your opinion between y-sweet and Hocuspocus?
replies(1): >>42734612 #
4. paulgb ◴[] No.42734612{3}[source]
The biggest difference is that Y-Sweet is built around object storage (i.e. S3 and friends) rather than a database.

This allows writes to scale horizontally without a central database being the bottleneck. It’s also a much cheaper way to store lots of documents accumulating over time on S3 than in a database. This is because compute scales with how much data you actually access, not how much data you store.

I wrote about why object storage is a good fit for this here: https://digest.browsertech.com/archive/browsertech-digest-fi....