What the SDK is for
@sippet-ai/sdk-js is the frontend layer for building realtime Sippet-powered
browser experiences.
Use it when your app needs to:
- connect a browser to Sippet’s realtime socket
- react to live call events in your UI
- power browser-based voice or operator workflows
- handle frontend call state without building the socket and SIP glue yourself
Why it exists
The backend RPC API and the frontend SDK solve different problems.- The
Backend RPC APIis for your server to read or write Sippet data over HTTP. - The
Frontend SDKis for your browser app to handle live sockets, realtime events, and voice session behavior.
- your backend talks to Sippet securely with a secret key
- your backend mints a short-lived realtime session token
- your browser uses the SDK to connect to Sippet and react to live events
When to use it
Use the SDK if you are building:- an operator dashboard that reacts to incoming calls in real time
- a browser app that needs live call updates or transcripts
- a custom frontend for voice calling, queue activity, or socket events
What it gives you
- Browser realtime subscriptions over
/socket - Voice calling helpers for SIP/WebRTC flows
- Realtime event handling for live call state in your UI
- A cleaner frontend integration path than building directly against low-level socket and call primitives
Install
Typical frontend flow
- Your backend mints a short-lived session token with
POST /api/realtime/session - Your browser initializes the socket with
session_token - Your UI subscribes to events like
incoming_callandcall_transcript_delta
Backend token minting
Use your secret key from your backend only.Browser socket setup
incoming_callcall_answeredcall_endedoperator_status_changecall_queue_entry_updatedcall_queue_entry_deletedcall_participant_joinedcall_participant_leftcall_transcript_deltacall_transcript_completedcall_ai_audit_eventcall_ai_usage

