# hypercore-stats-ui

> HTML based stats ui for hypercore/hyperdrive

Latest version **1.1.0** (published 2016-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install hypercore-stats-ui
pnpm add hypercore-stats-ui
yarn add hypercore-stats-ui
bun add hypercore-stats-ui
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2016-06-30 |
| First published | 2016-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 36 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/hypercore-stats-ui
- Repository: https://github.com/mafintosh/hypercore-stats-ui
- Issues: https://github.com/mafintosh/hypercore-stats-ui/issues
- npm.io page: https://npm.io/package/hypercore-stats-ui

## Dependencies (5)

- [corsify](https://npm.io/package/corsify.md) ^2.1.0
- [browserify](https://npm.io/package/browserify.md) ^13.0.1
- [speedometer](https://npm.io/package/speedometer.md) ^1.0.0
- [pretty-bytes](https://npm.io/package/pretty-bytes.md) ^3.0.1
- [event-source-stream](https://npm.io/package/event-source-stream.md) ^1.5.0

## Recent versions

- 1.1.0 (latest) — 2016-06-30
- 1.0.1 — 2016-06-29
- 1.0.0 — 2016-06-29

## README

# hypercore-stats-ui

HTML based stats ui for [hypercore](https://github.com/mafintosh/hypercore)/[hyperdrive](https://github.com/mafintosh/hyperdrive)

```
npm install hypercore-stats-ui
```

## Usage

``` js
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.

<img src="https://mafintosh.github.io/assets/hypercore-stats.gif" width="600">
<img src="https://mafintosh.github.io/assets/hypercore-stats-uploader.gif" width="600">

## API

#### `var onrequest = stats(feed or archive)`

Create a new stats interface for a hypercore feed or hyperdrive archive.

## License

MIT

---
_Source: https://npm.io/package/hypercore-stats-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
