Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/okdistribute/hyperdrive-ui
- Owner: okdistribute
- Created: 2016-01-05T04:35:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T15:24:01.000Z (about 8 years ago)
- Last Synced: 2024-10-24T07:39:54.834Z (16 days ago)
- Language: JavaScript
- Homepage: http://karissa.github.io/hyperdrive-ui/
- Size: 759 KB
- Stars: 40
- Watchers: 10
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-starred - okdistribute/hyperdrive-ui - Render a hyperdrive in the browser. (others)
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
```