PeerJS
WebRTC data-channel wrapper that connects browsers directly through a PeerJS cloud or self-hosted signaling server, with peer-to-peer data connections, binary and JSON messages, media streams, room-style peer groups, connection metadata and a simple API for direct browser-to-browser chat, file transfer and collaborative sessions without a media relay in the data path.
PeerJS at peerjs.com is a free MIT WebRTC data-channel wrapper, npm peerjs 1.5.5 Node engines at least 14, connects browsers directly through a PeerJS cloud or self-hosted signaling server with peer-to-peer data connections binary and JSON messages media streams room-style peer groups and connection metadata, deps @msgpack/msgpack eventemitter3 peerjs-js-binarypack webrtc-adapter, zero peer, no sold commercial tier (data as of Nov 23, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is PeerJS free?
PeerJS: PeerJS is free open-source software released under the MIT license; the peerjs package latest 1.5.5 on npm has Node engines at least 14, published Jun 07, 2025. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is PeerJS free?
The code is free to self-host, but a hosted plan from the vendor may not be. PeerJS publishes its source, so cost depends on where you run it.
How much does PeerJS cost?
PeerJS is free open-source software released under the MIT license; the peerjs package latest 1.5.5 on npm has Node engines at least 14, published Jun 07, 2025. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check PeerJS's current pricing?
On PeerJS's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is PeerJS?
A Peer instance registers an ID on the signaling server, and another peer dials that ID to exchange WebRTC offers and answers; once the data channel opens, messages flow browser-to-browser without relaying through a media server. Connections carry JSON or binary payloads, media streams can attach for audio or video, and rooms group multiple peers under one key. The signaling step uses the cloud by default but can point to a self-hosted PeerServer, while the actual data rides the browser WebRTC stack.
How does pricing work?
The package installs free under its MIT license with no seat license; it bundles into the frontend app or runs in-process, and any commercial support or managed service would be outside the open-source project.
How does PeerJS compare with other tools in Dev Workflow & Productivity?
PeerJS is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| PeerJS | Open source | PeerJS is free open-source software released under the MIT license; the peerjs package latest 1.5.5 on npm has Node engines at least 14, published Jun 07, 2025. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). | Nov 23, 2026 |
| ws | Open source | ws is free open-source software released under the MIT license; the ws package latest 8.23.0 on npm has Node engines at least 10.0.0, published Nov 12, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). | Nov 23, 2026 |
| LiveKit Client | Open source | LiveKit Client is free open-source software released under the Apache 2.0 license; the livekit-client package latest 2.25.0 on npm has no declared Node engines, published Nov 20, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). | Nov 23, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
PeerJS's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: PeerJS is free open-source software released under the MIT license; the peerjs package latest 1.5.5 on npm has Node engines at least 14, published Jun 07, 2025. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
ws
Fast, thoroughly tested WebSocket client and server implementation for Node.js, with event-based message and connection handling, permessage-deflate compression, heartbeat and ping-pong keepalive, binary and text frames, optional native buffer acceleration and a broad test suite for realtime Node services and browser-wrapped connections.
LiveKit Client
JavaScript and TypeScript client SDK for LiveKit realtime audio, video and data rooms, with room and participant management, track publication and subscription, microphone and camera capture, screen share, data messages, simulcast and adaptive bitrate, connection quality and reconnection handling for browser-based calls and interactive live experiences.
Tool Information
- Official Websitepeerjs.com
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 23, 2026
