A package to download and render a decentralised webpage thanks to WebTorrent. It's in alpha so a lot of bugs are expected.
$ npm install --save peerweb
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
const peerweb = true // true for debugpeerweb
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.