Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/okdistribute/hyperdrive-ui

Render a hyperdrive in the browser.
https://github.com/okdistribute/hyperdrive-ui

Last synced: 12 days ago
JSON representation

Render a hyperdrive in the browser.

Awesome Lists containing this project

README

        

# hyperdrive-ui

Explore the contents of a [hyperdrive](http://github.com/mafintosh/hyperdrive) in the browser.

## Example

Live demo: [http://dat.land/](http://dat.land/)

## usage

```npm install hyperdrive-ui```

## `hyperdriveUI(archive, opts, onclick)`

Renders the explorer.

```js
var explorer = require('hyperdrive-ui')
function onclick (ev, entry) {
console.log('clicked', entry.name, entry.type)
}
var tree = explorer(archive, onclick)
document.querySelector('#hyperdrive').appendChild(tree)

```

## get started

```
npm install
npm start
```