# cdnbye/hlsjs-p2p-engine

Let your viewers become your unlimitedly scalable CDN.

Repository: https://github.com/cdnbye/hlsjs-p2p-engine
Canonical: https://ross.abutalabs.com/products/hlsjs-p2p-engine
Homepage: https://swarmcloud.net
License Family: other
Topics: html5, webrtc, video, mse, player, p2p, hls, live, vod, cdnbye, cdn, peer, p2p-video-streaming, p2p-cdn, pcdn
Last push: 2026-01-19T11:38:07+00:00

## Health v2 (maintenance only)
Score: 51/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 63, release rhythm 8, longevity 100
- inputs: {"age_days": 3041, "days_push": 226, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1073, forks 175 (observed 2026-08-28T04:03:28.922499+00:00)

## What it is
A JavaScript library that layers a WebRTC datachannel-based peer-to-peer network on top of hls.js, letting viewers share HLS video segments with each other for live and VOD streams. It acts as a P2P overlay CDN that reduces bandwidth costs and falls back seamlessly to normal server delivery when WebRTC is unavailable.

## Use cases
- reduce video streaming CDN bandwidth costs with p2p
- scale live streaming to large audiences without a bigger CDN
- add peer-to-peer HLS streaming to an hls.js player
- integrate p2p video delivery with video.js or JWPlayer
- offload video traffic from origin server during viewership spikes
- deliver VOD streams via webrtc data channels

## When to choose
- You already use hls.js or a popular HTML5 player and want P2P offload with minimal code changes
- You have audiences large enough that many peers are online simultaneously
- You want a hybrid setup that keeps your existing CDN, DRM, and encoding pipeline intact

## When to avoid
- You need iOS Safari support in this engine (MediaSource unsupported there; use the ServiceWorker variant instead)
- You need fully self-hosted delivery - the tracker/signaling and dashboard are a paid hosted service
- Your audience is small or geographically sparse, so few peers can connect
- You require a permissive license - the repo has no license file

## Facets
- artifact type: library
- maturity: active
- function: p2p, streaming, webhook, sdk
- domain: media, web-development, networking, frontend
- platform: browser, cross-platform
- tags: webrtc, hls, p2p-cdn, video-streaming, hlsjs, live-streaming, vod, mse, cdn-offload, video, nodejs

## Member repositories
- cdnbye/hlsjs-p2p-engine (main) score 51

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:28.922499+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:36.157704+00:00, confidence not recorded.
  - readme: https://github.com/cdnbye/hlsjs-p2p-engine (fetched 2026-08-28T04:03:28.922499+00:00, sha 5db6572826c2)
  - homepage: https://swarmcloud.net (fetched 2026-08-29T12:55:44.074861+00:00, sha c14dbfea50ac)
  - site_page: https://swarmcloud.net/guides/getting-started (fetched 2026-08-29T12:55:44.084021+00:00, sha e3eafb2644d8)
  - site_page: https://swarmcloud.net/faq (fetched 2026-08-29T12:55:44.085942+00:00, sha 2d220a0014fd)
  - site_page: https://swarmcloud.net/pricing (fetched 2026-08-29T12:55:44.088134+00:00, sha 55abac9ff0d0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
