Browser Agent SDK is live: four packages, one install #1612
naomi-deepgram
announced in
News + Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We just shipped the Browser Agent SDK on npm:
@deepgram/agents-widget: drop-in widget, six layouts, no framework required@deepgram/ui: pre-built React components, CSS-variable themed@deepgram/react: provider + hooks for state, audio, and function calling@deepgram/agents: framework-agnostic core. WebSocket client, microphone capture, playerEach layer builds on the one below it. Install the highest layer you need and everything beneath comes with it. All layers share reconnection (exponential backoff + jitter), playback-aware mode tracking, audio buffering, optional Silero VAD, KeepAlive pings, and a typed event emitter for server messages.
Auth uses a
tokenFactorypattern: your server mints short-lived tokens via the Deepgram auth grant endpoint, the SDK calls it on every connect and reconnect, and your API key never touches the browser. The token ridesSec-WebSocket-Protocolbecause that is the only custom header browsers permit on WebSocket handshakes.Quickstart
Feedback and questions welcome.
Beta Was this translation helpful? Give feedback.
All reactions