hypercore-stats-ui
HTML based stats ui for hypercore/hyperdrive
npm install hypercore-stats-ui
Usage
var http = require('http')
var stats = require('hypercore-stats-ui')
var hypercore = require('hypercore')
var level = require('level')
var core = hypercore(level('database'))
var feed = core.createFeed('4e397d94d0f5df0e2268b2b7b23948b6dddfca66f91c2d452f404202e6d0f626')
http.createServer(stats(feed)).listen(1000)
And visit http://localhost:10000 in the browser.
API
var onrequest = stats(feed or archive)
Create a new stats interface for a hypercore feed or hyperdrive archive.
License
MIT