hackclub/sprig

Move saving to the backend

Cosmin-Mare opened this issue · 0 comments

Use yjs to make an API that saves the data to the db by listening to a yjs room that will be created when the user opens a new editor. Nothing would change for the user except that the load will be much smaller, as they would no longer need to send all the code an API that saves it to the DB, because with YJS only deltas are exchanged.