Tiger πŸ…
Tiger πŸ…β€’3mo ago

tiger9644's Thread

is it ok to build real time collaborative stuff with convex? e.g. cursor moving around as you move the mouse around?
17 Replies
convex-threads
convex-threadsβ€’3mo ago
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. If this is a support question related question please create a post in #support-community. If not, carry on! Thanks
Tiger πŸ…
Tiger πŸ…OPβ€’3mo ago
i typically use liveblocks for this but im wondering if convex is ok
Kevin07
Kevin07β€’3mo ago
My assumption is that it wouldn't be the best, as there would be a huge excess of mutations / users subscribed to the associated queries
Tiger πŸ…
Tiger πŸ…OPβ€’3mo ago
Exactly πŸ’― Was thinking the same
Indy
Indyβ€’3mo ago
I think you can make this work. @sujayakar had a great internal demo that batched and replayed. If everyone is watching the same quiet then it will be cached too. Not sure how baked the demo was @sujayakar
allen
allenβ€’3mo ago
Implementing Presence with Convex
Some patterns for incorporating presence into a web app leveraging Convex, and sharing some tips & utilities I built along the way.
allen
allenβ€’3mo ago
An older post, but perhaps still relevant.
allen
allenβ€’3mo ago
Add a collaborative document editor to your app
Or how I learned to love Tiptap and ProseMirror OT sync.
sujayakar
sujayakarβ€’3mo ago
@Tiger πŸ… we have to polish it a bit, but here’s the demo indy’s talking about: https://github.com/get-convex/multiplayer-cursors
GitHub
GitHub - get-convex/multiplayer-cursors
Contribute to get-convex/multiplayer-cursors development by creating an account on GitHub.
ian
ianβ€’3mo ago
yeah hoping to make a presence component in the new year, as well as add some presence to another collaborative document editor component
Tiger πŸ…
Tiger πŸ…OPβ€’3mo ago
interesting gonna check it out
Tiger πŸ…
Tiger πŸ…OPβ€’3mo ago
what i do here is update presence with liveblocks on pointer move https://github.com/tigerabrodi/gojo/blob/main/app/routes/boards_.%24id/route.tsx#L243 their collaborative servers sit on the edge, so its pretty fast
GitHub
gojo/app/routes/boards_.$id/route.tsx at main Β· tigerabrodi/gojo
A real-time multiplayer brainstorming web app built with Remix and Liveblocks. - tigerabrodi/gojo
Tiger πŸ…
Tiger πŸ…OPβ€’3mo ago
oh yeah im definitly going with liveblocks thats way too complex i wouldve just updated with a mutation not sure if that's too much strain on the server
sujayakar
sujayakarβ€’3mo ago
yeah, makes sense. still very early on our side πŸ™‚
Tiger πŸ…
Tiger πŸ…OPβ€’3mo ago
totally understandable ❀️ ty for all the work! might be something i pick up myself its a very interesting problem to make "good" or better said make it feel good but no promises lol i got 3 weeks off gonna grind on variouis projects and learnings
ampp
amppβ€’3mo ago
multiplayer-cursors.. another app i missed.. I spent quite a bit of time with presence, the cursor tracking part is definitely a bit more advanced then everything else. Id say the only thing harder than that is creating a compelling app that uses cursors. πŸ™ƒ

Did you find this page helpful?