Description
obs-websocket-js is a JavaScript client library for obs-websocket, the plugin that exposes OBS Studio (Open Broadcaster Software) over a WebSocket connection. It lets Node.js programs and web apps connect to OBS to send requests and receive events, for example to build stream controls or automation. The current documentation covers version 5, with v4 docs kept separately. You can install it from npm or yarn, which is recommended for bundled web apps, Node.js and TypeScript type definitions, or load a standalone build from the jsDelivr or unpkg CDNs. Two builds are included: JSON encoding, easier to debug and smaller, used by default in web bundles; and MessagePack encoding, which uses less bandwidth and is the default in Node.js. It was created by Brendan Hagan and is maintained by the OBS WebSocket community.…
Highlights
- Connects JavaScript apps to OBS through obs-websocket
- Works in Node.js and the browser
- JSON and MessagePack encoding builds
- Modern and legacy builds for older browsers
- Available on npm or via jsDelivr and unpkg CDNs
Ratings & Reviews
No ratings yet
Be the first to rate Obs Websocket JS.
People also visit
Nginx Obs Automatic Low Bitrate Switching
Simple app to automatically switch scenes in OBS based on the current bitrate
Obs Websocket JS FAQ
What does obs-websocket-js do?
It lets JavaScript code connect to OBS Studio through the obs-websocket plugin, so you can control OBS and listen for its events from Node.js or a web page.
How do I install it?
Install it with npm or yarn, the recommended route for Node.js and bundled web apps, or load the standalone file from the jsDelivr or unpkg CDN.
Should I use the JSON or MessagePack build?
JSON is easier to debug and gives a smaller bundle but uses more bandwidth. MessagePack uses less bandwidth but is harder to debug and larger. Web bundles use JSON by default and Node.js uses MessagePack.
Which obs-websocket version does it target?
The main documentation is for v5. Documentation for v4 is linked separately.
What are the best Obs Websocket JS alternatives?
Popular alternatives to Obs Websocket JS include Obs Blade, Meme Box and MacroGraph. See all Obs Websocket JS alternatives

