├── .gitignore
├── .npmignore
├── .travis.yml
├── LICENSE
├── README.md
├── demo.gif
├── example
└── index.html
├── index.js
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | npm-debug.log
3 | example/p2p-graph.js
4 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | .travis.yml
2 | demo.gif
3 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - lts/*
4 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) Feross Aboukhadijeh
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # p2p-graph [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
2 |
3 | [travis-image]: https://img.shields.io/travis/feross/p2p-graph/master.svg
4 | [travis-url]: https://travis-ci.org/feross/p2p-graph
5 | [npm-image]: https://img.shields.io/npm/v/p2p-graph.svg
6 | [npm-url]: https://npmjs.org/package/p2p-graph
7 | [downloads-image]: https://img.shields.io/npm/dm/p2p-graph.svg
8 | [downloads-url]: https://npmjs.org/package/p2p-graph
9 | [standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
10 | [standard-url]: https://standardjs.com
11 |
12 | ### Real-time P2P network visualization with D3
13 |
14 | 
15 |
16 | This package is used by [WebTorrent](https://webtorrent.io). You can see this
17 | package in action on the [webtorrent.io](https://webtorrent.io) homepage or
18 | play with it on the
19 | [esnextb.in demo](https://esnextb.in/?gist=6d2ede2438db14c108d30343f352ad8c).
20 |
21 | ## Install
22 |
23 | ```
24 | npm install p2p-graph
25 | ```
26 |
27 | This package works in the browser with [browserify](https://browserify.org). If you do not use a bundler, you can use the [standalone script](https://bundle.run/p2p-graph) directly in a `
17 |
90 |