encryptic-team / encryptic

An encryption-focused open source note taking application
Mozilla Public License 2.0
347 stars 40 forks source link

Use p2p connections to synchronize between browsers #128

Open martin-v opened 3 years ago

martin-v commented 3 years ago

Examples implementing something like that:

https://github.com/earthstar-project/earthstar https://github.com/orbitdb/example-orbitdb-todomvc https://github.com/arj03/ssb-browser-demo

daed commented 3 years ago

That's a feature I've wanted to add for a while now, but it's not on the roadmap yet. The codebase for this project is horribly antiquated and I've been working on a more modern rewrite.

Synchronization is a feature we've heavily discussed in the past, and there have been many methods that have been requested to be implemented. I'm not sure it'll be realistic to accommodate all of them, but there will definitely be a p2p implementation of some sort!

farooqkz commented 2 years ago

You could use DataChannel of WebRTC to sync between two devices(or more if you sync them in pair) but there are many things in WebRTC which are not P2P:

EDIT: Without a TURN server, two devices might not be able to sync if they're on different networks.