Build Status codecov npm version license Beerpay Beerpay
Lightweight library providing peer to peer CDN functionality
┌────────────────────────────────────────────────────┐ │ │ │ Destination: lib/index.js │ │ Bundle size: 247.07 KB, Gzipped size: 72.45 KB │ │ │ └────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────┐ │ │ │ Destination: es/index.js │ │ Bundle size: 256.63 KB, Gzipped size: 73.71 KB │ │ │ └────────────────────────────────────────────────────┘
You can speed up the process of development. Check help wanted issues and contribute
- peer matching algorithms (ways of improving - pick best direction to go from here, beta version keeps it simple - pick first)
- browser support WebRTC
- browser support
client.postMessage() - media supported (there might be issues with range request)
For now I know there might be some issues with:
client.postMessage()problems on Google Chrome Version 64.0.3282.167 (Official Build) (64-bit) however works on Mozilla Firefox Quantum 58.0.2 (64-bit)- range requests
- add more tests
- resolve browser support
- create web pack plugin
- improve signalling server
Is peer-cdn library missing something ?
No problem! Simply fork this repository and create pull request.
npm install --save peer-cdn
The code is available under the MIT license.