Skip to content
P

Peerjs

Simple peer-to-peer with WebRTC

by peersFree

Domain Rating by Ahrefs69

#323in Utilities
0In stores

Description

PeerJS is an MIT-licensed JavaScript library that makes WebRTC peer-to-peer connections simpler to build. It wraps the browser's WebRTC impl…

Highlights

  • Browser-to-browser data, audio and video
  • Sends strings, JSON, ArrayBuffers and Blobs
  • DTLS encryption for WebRTC connections
  • Works in major browsers, beta for Node, Bun and Deno
  • Free cloud server or your own PeerServer
  • MIT licensed

Ratings & Reviews

No ratings yet

Be the first to rate Peerjs.

People also visit

C

CheezyPizza

WebRTC based p2p file transfers in your browser

Utilities
Launch
P

PAIRLANE

P2P file sharing in the browser over WebRTC, with optional E2E encryption

Utilities
Launch
N

Netflux

JavaScript client and server side transport API based on WebRTC & WebSocket

Developer Tools
Launch
T

Trystero

Build instant multiplayer webapps, no server required

Social
Launch
P

P2pt

Use free public WebTorrent trackers as signalling servers for WebRTC apps

Utilities
Launch
W

Webrtc Video Conference Simple Peer

A simple video conferencing example using simple-peer

Photo & Video
Launch

Peerjs FAQ

What is PeerJS?

A JavaScript library that simplifies WebRTC, so browsers can connect directly to each other to exchange data, video and audio.

Is it free?

Yes. It is MIT licensed, and the project is run as a nonprofit supported by sponsors and the community.

What can I send?

Strings, JSON, ArrayBuffers and Blobs, including files, game state and other serialisable data.

Is the connection secure?

The site says all WebRTC connections are encrypted with DTLS, and data does not pass through a central server.

Do I need my own server?

No. The site says you can use the free cloud server, or host your own PeerServer if you prefer.

Which environments does it support?

Major browsers, with beta support for Node.js, Bun and Deno.

What are the best Peerjs alternatives?

Popular alternatives to Peerjs include CheezyPizza, PAIRLANE and P2pt. See all Peerjs alternatives

Developer Stuff

Badges