{"id":13453548,"url":"https://github.com/mafintosh/peerwiki","last_synced_at":"2025-04-13T05:27:02.580Z","repository":{"id":20339820,"uuid":"23614403","full_name":"mafintosh/peerwiki","owner":"mafintosh","description":"all of wikipedia on bittorrent","archived":false,"fork":false,"pushed_at":"2018-02-09T21:48:23.000Z","size":2026,"stargazers_count":317,"open_issues_count":3,"forks_count":16,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-24T10:13:56.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mmtr/dotcss-2016-summary","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mafintosh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-03T09:29:49.000Z","updated_at":"2025-03-18T13:58:39.000Z","dependencies_parsed_at":"2022-07-10T09:01:57.367Z","dependency_job_id":null,"html_url":"https://github.com/mafintosh/peerwiki","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeerwiki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeerwiki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeerwiki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeerwiki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mafintosh","download_url":"https://codeload.github.com/mafintosh/peerwiki/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248667342,"owners_count":21142421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T08:00:42.879Z","updated_at":"2025-04-13T05:27:02.555Z","avatar_url":"https://github.com/mafintosh.png","language":"JavaScript","funding_links":[],"categories":["Packages","JavaScript","包","目录","Mad science","High level"],"sub_categories":["Mad science","黑科技","逼格项目","神奇的科学"],"readme":"# peerwiki\n\nBROWSE ALL OF WIKIPEDIA USING BITTORENT\n\n```\nnpm install -g peerwiki\n```\n\n## Usage\n\n```\npeerwiki 9090 # starts a peerwiki server on port 9090\n```\n\nTo get more debug output do\n\n```\nDEBUG=peerwiki peerwiki 9090\n```\n\nThis 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\n\nTo use a pregenerated index (will speed up page load) do\n\n```\npeerwiki 9090 --use-index\n```\n\nAnd open a browser on [http://localhost:9090/BitTorrent](http://localhost:9090/BitTorrent)\n\n## Cache\n\nWhen downloading articles they are cached on your local file system in `./peerwiki`.\n\n## Programmatic usage\n\n``` js\nvar peerwiki = require('peerwiki')\nvar wiki = peerwiki(function() {\n  // wiki is ready\n\n  // fetch the BitTorrent article metadata from other peers\n  wiki.findEntryByUrl('html/B/i/t/T/BitTorrent', function(err, result) {\n    console.log(result)\n  })\n\n  // fetch the actual article from other peers\n  wiki.findBlobByUrl('html/B/i/t/T/BitTorrent', function(err, buf) {\n    console.log(buf)\n  })\n\n  wiki.listen(9091) // listen for p2p connections on port 9091\n})\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Fpeerwiki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmafintosh%2Fpeerwiki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Fpeerwiki/lists"}