Skip to content

Instantly share code, notes, and snippets.

@nicopace
Last active March 16, 2020 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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