peerwiki

all of wikipedia on bittorrent

  • 所有者: mafintosh/peerwiki
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

peerwiki

BROWSE ALL OF WIKIPEDIA USING BITTORENT

npm install -g peerwiki

Usage

peerwiki 9090 # starts a peerwiki server on port 9090

To get more debug output do

DEBUG=peerwiki peerwiki 9090

This can useful the first time you start browsing since it needs to some download some shared static assets which can result in a added latency

To use a pregenerated index (will speed up page load) do

peerwiki 9090 --use-index

And open a browser on http://localhost:9090/BitTorrent

Cache

When downloading articles they are cached on your local file system in ./peerwiki.

Programmatic usage

var peerwiki = require('peerwiki')
var wiki = peerwiki(function() {
  // wiki is ready

  // fetch the BitTorrent article metadata from other peers
  wiki.findEntryByUrl('html/B/i/t/T/BitTorrent', function(err, result) {
    console.log(result)
  })

  // fetch the actual article from other peers
  wiki.findBlobByUrl('html/B/i/t/T/BitTorrent', function(err, buf) {
    console.log(buf)
  })

  wiki.listen(9091) // listen for p2p connections on port 9091
})

License

MIT

主要指标

概览
名称与所有者mafintosh/peerwiki
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2014-09-03 09:29:49
推送于2018-02-09 21:48:23
最后一次提交2018-02-09 22:44:30
发布数8
最新版本名称v0.0.8 (发布于 2014-11-29 00:01:55)
第一版名称v0.0.1 (发布于 2014-09-04 13:01:59)
用户参与
星数318
关注者数10
派生数16
提交数36
已启用问题?
问题数7
打开的问题数3
拉请求数1
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?