webpbx
by @imkylejk
A tiny, slightly ridiculous office phone system in your browser. Get an extension, call people, put them on hold with live-composed lounge music, leave voicemail and page the whole building.
webpbx.noconfig.online
README.md
# ☎️ WebPBX
A tiny, slightly ridiculous office phone system that runs in your browser. Zero dependencies.
- **Extensions**: pick a name, a PIN and a desk ornament, and you get a three-digit number (100–499).
- **Calls** between extensions, straight browser to browser over WebRTC. The server only rings phones and passes messages.
- **Hold**: puts the other person on hold with lounge music composed live by a very small robot (no two holds sound the same).
- **📯 Fanfare** for when the occasion demands it. **Mute** and **Do Not Disturb** too.
- **Voicemail**: if nobody picks up, leave a message (up to 60 seconds). It shows up in their inbox.
- **Ring everyone**: dial **600** and every free phone rings. First to answer wins.
- **Announcement lines**: type a message and get a 7xx number. Anyone who dials it hears it read aloud.
- **Paging**: send an announcement call to every phone that's online (now or on a timer) in one of four voices. Needs the admin key.
## Special numbers
| Dial | What happens |
| --- | --- |
| 0 | The Operator: a menu that is mostly helpful |
| 123 | Speaking clock ("at the third stroke…") |
| 411 | Hold Music Hotline: you're on hold, on purpose |
| 500 | Echo test: hear yourself, slightly late |
| 600 | Ring everyone |
| 777 | Joke line |
| 7xx | Announcement lines |
## How it works
- `server.js` is the switchboard: the directory, ringing, call state, WebRTC signalling over Server-Sent Events, voicemail storage and paging. Data lives in `.data/` (private: not shown in the editor or copied into remixes). PINs are hashed.
- `public/app.js` is the phone: the keypad, the WebRTC calls, and a little synthesiser that makes every tone (DTMF, ringing, the hold band). Speech uses your browser's built-in text-to-speech.
- **Admin key**: printed in the console the first time the server starts. Set `ADMIN_KEY` in `.env` to choose your own. It unlocks paging and `DELETE /api/extensions?ext=123` (send it as `x-admin-key`).
## Small print
Calls connect directly between browsers using public STUN servers. Some strict corporate or mobile networks block that; a TURN server would fix it. WebPBX is a toy: it can't call real phone numbers, including emergency numbers.
Comments 0
- No comments yet. Say something nice.
Sign in or create an account to comment and react.