qmetrics.net

WebRTC

Pure Go WebRTC stack for real-time media

WebRTC screenshot

Pion WebRTC implements the WebRTC API in Go without cgo, enabling peer connections, media, data channels, and ICE across servers, desktops, mobile, and WebAssembly targets.

Overview

Pion WebRTC is a Go implementation of the WebRTC API aimed at real-time audio, video, and data communication. It is positioned as part of the broader Pion stack for cross-platform media and data planes, with emphasis on portability and builds that avoid cgo.

Developers get a PeerConnection API with send and receive paths for audio and video, renegotiation, Plan-B and Unified Plan modes, data channels with ordered or unordered delivery, and direct RTP and RTCP access. Connectivity features include a full ICE agent, trickle ICE, ICE restart, STUN, TURN over UDP TCP DTLS and TLS, and mDNS candidates.

Media helpers cover Opus, PCM, H264, VP8, and VP9 packetizers, container utilities such as IVF, Ogg, H264, and Matroska for capture and replay, simulcast, and bandwidth estimation. Security pieces list DTLS 1.2 cipher suites and SRTP AEAD options, with hardware acceleration noted for some GCM suites.

The library targets Windows, macOS, Linux, FreeBSD, iOS, Android, and WebAssembly examples, with published sample apps for disk playback, embedded webcam streaming, server-to-server data channels, conferencing, and robotics-style remote video. Documentation references example repositories, an awesome list of adopters, GoDoc APIs, and a vendor-neutral WebRTC explainer book.

Key features

  • PeerConnection API in pure Go
  • Audio video and DataChannel support
  • ICE STUN TURN and trickle ICE
  • RTP RTCP media packetizers
  • Simulcast and bandwidth estimation
  • DTLS and SRTP security suites
  • No cgo wide CPU architectures
  • WebAssembly example targets

Use cases

  • Embedding WebRTC in Go services
  • Server-to-server secure data channels
  • Embedded webcam streaming
  • Conferencing with processed media
  • WASM browser-side experiments

Tags

Similar software

Netty

Event-driven Java framework for protocol servers and clients

Netty is an asynchronous, event-driven network stack for building maintainable high-performance protocol servers and clients in Java.

★ 35.1k⟳ todayApache-2.0

Tokio

Rust runtime for reliable asynchronous network applications

Tokio is an event-driven, non-blocking I/O platform for asynchronous Rust programs. It supplies scheduling, timers, async TCP and UDP, and building blocks for network services.

★ 33.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

libuv

Cross-platform asynchronous I/O support library

libuv is a multi-platform library centered on non-blocking I/O. Node.js and several other runtimes embed it for networking and event handling.

★ 27.4k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Ws

Node.js WebSocket client and server library

The ws package implements WebSocket client and server roles for Node.js. It is not for browser runtimes; front ends should use the native WebSocket API or an isomorphic wrapper.

★ 22.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

Workflow

C++ async networking and parallel workflow engine

Sogou C++ Workflow is an enterprise-style C++ engine for HTTP servers, async clients, DAG workflows, and parallel compute used in Sogou’s online backends.

★ 14.4k⟳ 2 days agoApache-2.0

PeerJS

Browser WebRTC library for peer data and media connections

PeerJS wraps WebRTC with a simple JavaScript API for encrypted peer-to-peer data channels and video or audio calls between browsers.

★ 13.5k⟳ 1 year agoMIT
Frameworks & PlatformsDesktop/CLI app