-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yjs Electric provider example #1508
base: main
Are you sure you want to change the base?
Conversation
bf6c572
to
64e62a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work!
551382b
to
af02df3
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
6164404
to
1faec98
Compare
Experimental compaction of YDoc This obviously isn't a complete implementation as the TRUNCATE also deletes all other Ydocs that we might be storing :D. The idea was to demonstrate the use of shape rotation to clear the log of operations. We should think if we want to expose the delete shape endpoint on the backend or not. The proxy could disallow any requests coming from the user. EDIT: reflecting a bit more, maybe the best is to leave this out because we'll be able to do compaction a lot better in the future. |
7f083e3
to
567c81d
Compare
e7110f7
to
92f1c33
Compare
More cleanup
use reducer on server to generate document state
71ff836
to
aa1c46b
Compare
This an example of a y-provider based on Electric.
The code is based on y-webscocket and the yjs-demos/codemirror.next