Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 3.39 KB

README.md

File metadata and controls

63 lines (47 loc) · 3.39 KB

peer-cdn

Build Status codecov npm version license Beerpay Beerpay

Lightweight library providing peer to peer CDN functionality

Bundle size

┌────────────────────────────────────────────────────┐
│                                                    │
│   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   │
│                                                    │
└────────────────────────────────────────────────────┘

This is work in progress!

You can speed up the process of development. Check help wanted issues and contribute

Things to consider:

  • 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:

Next steps:

  • add more tests
  • resolve browser support
  • create web pack plugin
  • improve signalling server

Contribution

Is peer-cdn library missing something ?

No problem! Simply fork this repository and create pull request.

Instaliation

npm install --save peer-cdn

License

The code is available under the MIT license.