A real place
to start building.

A source client, a local simulator, and the protocol behind them. Build your first outbound call flow before you connect your voice application.

Small enough to understand.
Ready to run locally.

call-control.mjs
Authenticated control socket, call actions, and binary audio connections.
mock-server.mjs
Loopback WebSocket service for testing the protocol without PSTN traffic.
demo.mjs
A complete simulated outbound call, including a binary audio round trip.
test/
Protocol, inbound, media, and idempotency checks against the simulator.
README.md + .env.example
Local setup, live connection requirements, and explicit limits.

Try the conversation
between the sockets.

Edit a call command and preview its event sequence. This local simulation does not open a network connection, play audio, or place a call.

Local event previewSIMULATION

Run a command to see the call lifecycle.

Then connect your application.

Read the real command and media formats. Keep API keys on your server, and configure your endpoint and routes before making live calls.

bash
npm install
npm run demo
npm test