positive_intentions@lemmy.mlBannedBanned from community to Open Source@lemmy.mlEnglish · edit-22 years agoP2P Messaging and State Management: Todo List Demo.github.comexternal-linkmessage-square3linkfedilinkarrow-up122arrow-down10file-textcross-posted to: [email protected][email protected]
arrow-up122arrow-down1external-linkP2P Messaging and State Management: Todo List Demo.github.compositive_intentions@lemmy.mlBannedBanned from community to Open Source@lemmy.mlEnglish · edit-22 years agomessage-square3linkfedilinkfile-textcross-posted to: [email protected][email protected]
a decentralized P2P todo list app to to demo the P2P framework used in the chat app. https://github.com/positive-intentions/chat a wrapper around peerjs. peerjs is good, but it can become complicated to use on complicated projects. This implementation is an attempt to create something like a framework/guideline for decentralized messaging and state management. https://positive-intentions.github.io/p2p/?path=/story/demo-todo-list--basic how it works: crypto-random ids are generated and used to connect to peerjs-server (to broker a webrtc connection) peer1 shares this ID to another browser/tab/person (use the storybook props) peers are then automatically connected. add todo item edit todo item There are several things here to improve like: general cleanup throughout (its early stage for this project and missing all the nice things like good-code and unit-tests) adding extra encryption keys for messages comming in and going out (webrtc mandates encryption already) handling message callbacks key rotation
It looks really cool!