# sepfy/libpeer

WebRTC Library for IoT/Embedded Device using C

Repository: https://github.com/sepfy/libpeer
Canonical: https://ross.abutalabs.com/products/libpeer
Language: C
License: MIT
License Family: permissive
Topics: webrtc, raspberry-pi, c, iot, linux, h264, esp32
Last push: 2026-08-23T14:56:24+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 1974, "days_push": 10, "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 1542, forks 293 (observed 2026-08-28T04:05:01.054027+00:00)

## What it is
libpeer is a portable WebRTC implementation written in C using BSD sockets, designed for IoT and embedded devices such as ESP32 and Raspberry Pi. It supports H264 and G.711/OPUS codecs, DataChannel, STUN/TURN, IPv4/IPv6, and WHIP or MQTT signaling.

## Use cases
- stream video from an ESP32 camera to a browser via WebRTC
- add two-way audio and video streaming to a Raspberry Pi project
- send MJPEG frames over a WebRTC datachannel from a microcontroller
- implement peer-to-peer media streaming on embedded Linux devices
- use WHIP signaling to publish media from an IoT device
- run WebRTC datachannel ping-pong on a Raspberry Pi Pico

## When to choose
- you need WebRTC on resource-constrained embedded hardware like ESP32
- you want a lightweight C library without a full browser stack
- you need H264 or G.711/OPUS streaming from IoT devices to browsers
- you prefer MQTT or WHIP signaling on embedded platforms

## When to avoid
- you need a full-featured WebRTC stack with broad codec and browser compatibility
- you are building a desktop or server application where libwebrtc or aiortc fits better
- you need extensive documentation and enterprise support
- your project requires JavaScript or Python rather than C integration

## Facets
- artifact type: library
- maturity: active
- function: websocket, http-client, networking, video-processing, audio-processing, security, sdk
- domain: iot, embedded-systems, web-development, networking, media, cross-platform
- platform: embedded, iot, c, cpp, cross-platform
- tags: webrtc, esp32, raspberry-pi, h264, opus, datachannel, stun, turn, whip, mqtt-signaling, bsd-sockets, embedded-streaming, video, audio, linux

## Member repositories
- sepfy/libpeer (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:01.054027+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-30T04:30:45.897591+00:00, confidence not recorded.
  - readme: https://github.com/sepfy/libpeer (fetched 2026-08-28T04:05:01.054027+00:00, sha f253ced876cb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
