23 releases (8 breaking)

0.8.2 Feb 5, 2025
0.7.1 Jan 15, 2025
0.7.0 Dec 18, 2024
0.6.2 Nov 25, 2024
0.0.12 Sep 9, 2023

#835 in Network programming

Download history 14/week @ 2024-11-09 3/week @ 2024-11-16 257/week @ 2024-11-23 189/week @ 2024-11-30 152/week @ 2024-12-07 128/week @ 2024-12-14 11/week @ 2024-12-21 2/week @ 2025-01-04 114/week @ 2025-01-11 203/week @ 2025-01-18 70/week @ 2025-01-25 141/week @ 2025-02-01 25/week @ 2025-02-08 3/week @ 2025-02-15

170 downloads per month

MIT license

135KB
3K SLoC

y-sweet: a Yjs server with persistence and auth

y-sweet is an open-source server for building realtime applications on top of the Yjs CRDT library.

Features

  • Persists document data to a network filesystem or S3-compatible storage, inspired by Figma’s infrastructure.
  • Scales horizontally with a session backend model.
  • Deploys as a native Linux process, or as a WebAssembly module on Cloudflare's edge.
  • Provides document-level access control via client tokens.
  • Written in Rust with a focus on stability and performance, building on the excellent y-crdt library.

y-sweet crate

The y-sweet crate is primarily intended to be used as a binary, but can also be used as a library. See main.rs for usage examples.

Dependencies

~20–33MB
~505K SLoC