Skip to content

Instantly share code, notes, and snippets.

@nicopace
Last active March 16, 2020 13:45
Show Gist options
  • Save nicopace/21e33fb89f217023f827b1ebd25b122e to your computer and use it in GitHub Desktop.
Save nicopace/21e33fb89f217023f827b1ebd25b122e to your computer and use it in GitHub Desktop.
WebRTC P2P apps without centralized servers
1. Use local app server and mdns/bonjour/zeroconf to announce it for signalling
2. use webrtc for p2p udp communications
https://github.com/bykof/cordova-plugin-webserver
https://github.com/floatinghotpot/cordova-httpd
https://github.com/becvert/cordova-plugin-zeroconf
https://github.com/cjb/serverless-webrtc
Uses:
* use pouchdb to sync dbs p2p for coordination
* voice/video calls
Example:
* https://github.com/neighbourhoodie/svelte-pouchdb-couchdb and https://neighbourhood.ie/blog/2019/05/10/an-offline-first-todo-list-with-svelte-pouchdb-and-couchdb/
* https://github.com/natevw/PeerPouch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment