multiplayer-notepad

Started by viviridian, Mar 17, 2025, 09:31 AM

Previous topic - Next topic

viviridian

about a year ago I had the thought: "can i cobble together a peer-to-peer hedgedoc with off-the-shelf npm packages?"

and the answer is yep (source)

image.png

unfortunately one of the things that is useful about hedgedoc is that when you put stuff in a document and come back to it later, you aren't depending on there being another device online that has a copy of the document. still, i think it is kinda interesting to play with. also i really wanted to have vim emulation with `jk` bound to `<esc>` because that's what my hands like.

apparently it is also end-to-end encrypted (using y-webrtc) but I haven't done anything to actually verify that so, you might wanna keep that in mind if you're thinking about using it

viviridian

i had the idea to glue the yjs backend of this to:
  • react-yjs, an adapter between y.js and react ... reactivity
  • react-three-fiber, a wrapper for THREE.js that lets you manipulate 3d scene objects in a react structure
i don't have anything to show for that yet but it seems like i could do some interesting stuff with those

lifning

interacting with the operators of other internet-connected computers in a 3D environment in real-time... technology has come so far

interested in what you put together with this!
You cannot view this attachment.
Please consider the environment before printing this post.