SDKs

JavaScript SDKs

Choose between the JavaScript Player SDK (drop-in UI) and the JavaScript Headless SDK (bring your own player and chat UI).

HotMic provides two JavaScript SDKs. Pick the one that matches how much UI you want from HotMic — both share the same authentication and stream model.

JavaScript Player SDK

The drop-in web integration. Lists streams, joins a stream using your user's JWT, and hands the user off to a HotMic-hosted player URL — no HLS plumbing required. Use this if you want the fastest path to live streams on the web.

Open the Player SDK →

JavaScript Headless SDK

@hotmic/sdk — pure TypeScript API client with no UI. Runs in Node 18+, modern browsers, and React Native. Gives you HotMicClient, a StreamSession that handles auth, the 3-second delta-poll loop, presence, chat, reactions, polls, and battle questions. You provide the player (<video> + hls.js or native HLS) and the chat UI.

Open the Headless SDK →

Which should I pick?

Player SDKHeadless SDK
Ships a playerYes (HotMic-hosted)No — you bring <video> + hls.js
Ships UIYes (chat, polls, tipping)No — pure API
Customizable lookLimited (themes only)Full control
Anonymous viewersSupportedSupported (default)
Best forQuick web integration, embedded sitesCustom apps, React Native, server-side, white-label