DEV Community

Aditya Sorathiya
Aditya Sorathiya

Posted on

A Big Day Building Real-Time Collaboration for PasteDB šŸš€

Today I made a lot of progress on PasteDB's real-time collaboration system.
PasteDB can now:
⚔ Sync edits between collaborators in real time
šŸ‘„ Show who is currently in the workspace
šŸ” Handle join requests
āœ… Let the host approve or reject users
šŸ§‘ā€šŸ’» Support editor and viewer roles
šŸ”„ Synchronize the current document when someone joins
šŸ’¾ Save the collaborative document back to PasteDB
I'm now working on live cursors, so collaborators can see exactly where other people are editing.
This is currently the hardest part. I'm using Yjs relative positions to keep cursor locations tied to the collaborative document, but synchronization timing can sometimes cause a remote cursor position to fail to resolve or become inaccurate.
Still debugging it, but the collaboration system is starting to feel like a real collaborative editor rather than just a normal paste editor.
A lot accomplished today. More to come šŸš€

Top comments (0)