The short answer
A web app can run without its own application server when data is short-lived and belongs to one session – a meeting room, a game, a shared board for the length of a workshop. Browsers then connect directly over WebRTC, and one of them (for example the host's) acts as the server. All that's needed to set up the connection is a signalling mechanism, which can use public relays. You only host static files.
If data has to be stored, reported on or protected with permissions, a server is needed.
How WebRTC works, briefly
WebRTC is a standard built into browsers that lets you send data, audio and video directly between users. For two browsers to connect, they first exchange "offers" with network information – this is called signalling. Once the connection is set up, data flows straight from one browser to the other, encrypted.
Signalling is usually the smallest part of the system, but someone has to provide it: your own WebSocket server, a cloud service or – as in our case – public relay networks.
An example: Planning Poker
Planning Poker is our free estimation tool for agile teams. The first version had a Node.js backend: the server kept room state and relayed votes. It worked, but a server costs money every month and needs monitoring and updates – and the tool is free.
We rebuilt it like this:
- The host's browser is the server. It keeps the room state – players, votes, whether the cards are revealed – and sends participants a snapshot of the room after every change.
- Guests only send requests. "Vote", "new round", "leave" – and the host decides what happens. No conflicts, no diverging states.
- Signalling through public networks. The Trystero library exchanges WebRTC offers through Nostr and MQTT networks. No game data passes through the relays – only the information needed to connect.
- Two networks at once. Every browser joins through both simultaneously, so an outage of one network or of individual relays doesn't interrupt the meeting.
- Survives a reload. The room state is saved in the host's browser storage. After a tab reload the room comes back and guests reconnect automatically.
The result: a team starts online planning poker with one link and no accounts, and we only host static HTML.
Advantages of a peer-to-peer architecture
- Near-zero infrastructure cost – no application server and no database.
- Privacy – data never reaches a server and disappears when the session ends.
- Less to maintain – no server to update, scale and monitor.
- Low latency – data flows directly between participants.
Limits you need to know about
| Limit | What to do about it |
|---|---|
| Strict corporate networks block direct connections | a TURN server that relays traffic when a direct connection fails |
| State lives only with the host | when the host closes the tab for good, the session ends – this must be communicated clearly |
| No history or reports | if they're needed, the data has to reach a server anyway |
| Large groups | in a "host sends to everyone" model the number of connections grows with the number of people; for hundreds of participants a server is better |
| Trusting the client | the logic runs in the host's browser, so it doesn't suit anything someone would have an interest in cheating |
When to choose P2P and when a classic backend
P2P makes sense for meeting-length tools (estimation, voting, quizzes, retrospectives), simple multiplayer games, video calls in small groups and sending files between devices.
A backend is needed when the app has accounts and permissions, stores history, generates reports, takes payments or processes data whose integrity matters. We build such web applications in Node.js and NestJS – often with real-time parts over WebSockets.
The best solutions are often hybrid: a server for accounts and data, and WebRTC for what happens live.
Related services: web apps, custom software.