Skip to content

About

Peerix is a compact JavaScript/TypeScript library that removes the friction from building WebRTC peer-to-peer applications. It abstracts signaling, connection lifecycle, and media/data multiplexing so developers can focus on features instead of plumbing.

Core idea

Provide a simple yet powerful abstraction of WebRTC and extend its capabilities with add-ons, all while keeping the API minimal and transport-agnostic.

What it solves

  • Signaling boilerplate: pluggable drivers (BroadcastChannel, NATS, WebSockets, or your own) make discovery and messaging straightforward.
  • Serverless architecture: no server-side code required, NATS can be used for signaling directly in the browser.
  • Room and state management: built-in support for rooms, peer metadata, and labeling of streams and channels.
  • Connection complexity: automatic lifecycle and negotiation handling for updating streams and channels.
  • Multi-track & data multiplexing: publish multiple streams and open many data channels over the same connection.
  • Developer experience: built with TypeScript for better DX and type safety, with zero dependencies to minimize security risks and simplify deployment.

Key features

  • Easy-to-use API for peer connections, media streams, and data channels
  • Transport-agnostic design that allows you to choose the best signaling method, including custom implementations
  • Supports serverless architecture (no server-side code required)
  • Room and state management features to simplify building complex applications
  • Multiplexing multiple media streams and data channels over a single connection per peer
  • Extensible architecture that allows you to build custom features and integrations
  • Cross-browser compatibility with support for all modern browsers
  • TypeScript support for a better developer experience and type safety
  • Well-documented codebase with comprehensive examples and the API reference
  • Automatically tested and optimized for performance and reliability
  • Zero dependencies to reduce security risks
  • Open-source, actively maintained project

Who it’s for

Developers building real-time apps such as chat, conferencing, file sharing and collaborative tools, as well as gaming apps, who want to avoid reimplementing signalling and connection plumbing, and who need a flexible, extensible foundation for peer-to-peer communication in the browser.

When not to use it

If you need server-side media processing or routing. Peerix is not an SFU or MCU .

License

Peerix is dual-licensed under an open-source license and a commercial license.

Next

See the documentation for full guides, signaling details, and add-ons: