Peer-* collaboration network visualization.
const PeerStar = require('peer-star-app')
const NetworkVis = require('peer-star-network-vis')
dApp = PeerStar('my app')
await dApp.start()
collaboration = await dApp.collaborate('collaboration name', ...)
// inside my render function
const svg = document.getElementById('my-svg')
const vis = NetworkVis(collaboration, svg)
// later...
vis.stop()
A NetworkVis instance emits the following events:
When a peer is selected by the user.
When the stats for a given peer is updated.
The stats
object schema is defined in peer-star-app
.
MIT