# socketio/socket.io-p2p

Repository: https://github.com/socketio/socket.io-p2p
Canonical: https://ross.abutalabs.com/products/socketio-p2p
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2020-10-03T17:20:07+00:00

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

## Adoption (not part of the score)
Stars 1037, forks 179 (observed 2026-08-28T04:03:19.537186+00:00)

## What it is
A JavaScript library that sets up WebRTC peer-to-peer connections between browsers using the Socket.IO event protocol, with Socket.IO handling signaling and fallback transport. It lets clients emit and receive events directly over peer connections once upgraded from the initial Socket.IO channel.

## Use cases
- build a peer-to-peer chat app in the browser
- exchange data directly between clients without a server relay
- add WebRTC data channels to an existing Socket.IO app
- send events between peers with fallback for unsupported browsers
- set up signaling for WebRTC peer connections via Socket.IO rooms

## When to choose
- you already use Socket.IO and want to offload traffic to direct peer connections
- you need event-based messaging over WebRTC data channels with minimal setup
- you want automatic fallback to server transport when WebRTC is unavailable

## When to avoid
- you need media streaming (audio/video) rather than data channels
- you want a modern, actively maintained P2P library - this project has seen little activity since 2020
- your app requires large-scale mesh networking beyond a handful of peers per client

## Facets
- artifact type: library
- maturity: maintenance
- function: websocket, p2p, networking, rpc
- domain: web-development, networking, microservices
- platform: browser
- tags: webrtc, socketio, peer-to-peer, signaling, event-based-communication, real-time, nodejs, javascript

## Member repositories
- socketio/socket.io-p2p (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:19.537186+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-30T07:04:24.583193+00:00, confidence not recorded.
  - readme: https://github.com/socketio/socket.io-p2p (fetched 2026-08-28T04:03:19.537186+00:00, sha 32cf387450ad)
- Data as of 2026-08-30T08:39:29.467469+00:00.
