프로젝트
GitHub에서 보기
mafintosh/peerwiki
소개
BitTorrent를 통해 위키백과 전체를 제공합니다.
생산성 및 자동화측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalpeerwiki
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
관련 프로젝트 살펴보기
불러오는 중…