hackclub / sprig

🍃 Learn to code by making games in a JavaScript web-based game editor.

Home Page:https://sprig.hackclub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move saving to the backend

Cosmin-Mare opened this issue · 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.