Browser-based Open Publishing (BOPlish) is an infrastructure-independent content sharing facility using WebRTC DataChannels. This repository holds the core library for establishing a Browser-based Peer-to-Peer Network. It handles connection maintenance and routing.
For some demo applications using BOPlish refer to https://github.com/boplish/demos/.
The main component consists of a JavaScript library. To build a minimal JavaScript file run
$ sudo npm install -g grunt-cli
$ npm install
$ grunt dist
The library then resides in dist/boplish.min.js
and can be included in your
HTML page.
In bootstrap-server you will find two sample implementations of the bootstrap signaling protocol that BOPlish mandates. This is
- a Flask application using Python
- a Node.js application using Javascript
The bootstrap server holds WebSocket connections to existing peers in the boplish network in order to help joining peers find initial neighbours.
Visit http://chris.ac:5000 using a supported browser for a demo.