0.2.19 • Published 6 years ago

peerweb v0.2.19

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

PeerWeb.js

Code Climate Dependency Status devDependency Status Standard - JavaScript Style Guide npm npm

A package to download and render a decentralised webpage thanks to WebTorrent. It's in alpha so a lot of bugs are expected.

Install via npm

$ npm install --save peerweb

Usage

Build a simple static webpage and then create a torrent (instant.io for simplicity) with the whole folder like the following example

├── js
│   ├── main.js
│   └── other.js
├── imgs
│   ├── foo.png
│   └── bar.png
├── css
│   └── main.css
└── index.html

get the magnet link and then use it in a webpage like this

import PeerWeb  from 'peerweb'

const peerweb = new PeerWeb(true) // true for debug

peerweb.render(YOUR_MAGNET_LINK)

Contribute

Feel free to create pull request and issues with bugs or feature request. There are tons of features planned as render index faster, do not redownload files, get magnet link from files... etc.

0.2.19

6 years ago

0.2.18

6 years ago

0.2.17

6 years ago

0.2.16

6 years ago

0.2.15

6 years ago

0.2.14

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.0.1

6 years ago