14 releases (6 breaking)

0.6.0 Nov 5, 2024
0.4.0 Sep 30, 2024
0.2.1 Jul 31, 2024
0.1.1 Feb 15, 2024
0.0.12 Sep 9, 2023

#680 in Network programming

Download history 101/week @ 2024-07-26 16/week @ 2024-08-02 104/week @ 2024-09-06 50/week @ 2024-09-13 258/week @ 2024-09-20 288/week @ 2024-09-27 213/week @ 2024-10-04 134/week @ 2024-10-11 90/week @ 2024-10-18 2/week @ 2024-10-25 114/week @ 2024-11-01 15/week @ 2024-11-08

234 downloads per month

MIT license

130KB
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

~19–35MB
~495K SLoC