
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
支持完整类型安全与运行时验证的 OBS WebSocket TypeScript SDK. TypeScript SDK for OBS WebSocket with full type safety and runtime validation.
A high-level TypeScript SDK for OBS WebSocket, built on top of obs-websocket-js with zod runtime validation.
pnpm add obs-ws-sdk
import { OBSDK } from 'obs-ws-sdk'
const sdk = new OBSDK()
await sdk.connect('ws://localhost:4455', 'your-password')
// Namespace-style API with full type safety
const version = await sdk.general.getVersion()
console.log(version.obsVersion)
const scenes = await sdk.scenes.getSceneList()
console.log(scenes.scenes)
await sdk.scenes.setCurrentProgramScene({ sceneName: 'Scene 1' })
// Event handling (transparent passthrough from obs-websocket-js)
sdk.on('CurrentProgramSceneChanged', (event) => {
console.log('Scene changed to:', event.sceneName)
})
await sdk.disconnect()
| Module | Description |
|---|---|
sdk.general | Version info, stats, hotkeys, custom events |
sdk.config | Scene collections, profiles, video/stream settings |
sdk.sources | Source active state, screenshots |
sdk.scenes | Scene list, program/preview scene, create/remove |
sdk.inputs | Input management, settings, audio controls |
sdk.transitions | Transition kinds, current transition, T-Bar |
sdk.filters | Filter management, settings, enable state |
sdk.sceneItems | Scene item list, transform, enable/lock state |
sdk.outputs | Virtual cam, replay buffer, output management |
sdk.stream | Stream status, start/stop/toggle |
sdk.record | Record status, start/stop/pause/resume |
sdk.mediaInputs | Media input status, cursor, playback actions |
sdk.ui | Studio mode, dialogs, projectors |
FAQs
支持完整类型安全与运行时验证的 OBS WebSocket TypeScript SDK. TypeScript SDK for OBS WebSocket with full type safety and runtime validation.
We found that obs-ws-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.