How streamlabs/desktop works
Streamlabs Desktop is an Electron-based live-streaming application powered by OBS. A user configures the studio and streaming destinations, then starts a broadcast or recording; the app also supports scene/source editing, stream widgets, clip highlighting and export, platform apps, and stream-avatar automations. The README documents a main/worker/child-window architecture with service calls crossing IPC and OBS access restricted to the worker. Some product modules named in the source index are absent from the supplied tree, so those links are omitted or marked unverified rather than treated as inspected.
Main entry points: app.ts Main UI · services-manager.ts Service registry · StudioEditor.tsx Studio editor · app-services.ts Service catalog
Components 17
Runtime and services
- Electron app
main.js - Main UI
app/app.ts - Service registry
app/services-manager.ts - Service catalog
app/app-services.ts - OBS engine
obs-api/index.js
Studio production
- Studio editor
app/components-react/root/StudioEditor.tsx - Sources and scenes
app/components-react/editor/elements/SourceSelector.tsx - Stream widgets
app/components-react/widgets/common/useWidget.tsx
Broadcast and platforms
- Go-live setup
app/components-react/windows/go-live/GoLiveWindow.tsx - Stream scheduler
app/components-react/pages/stream-scheduler/useStreamScheduler.tsx - Streaming platforms
app/services/platforms/index.ts
Creator tools
- Clip highlighting
app/components-react/pages/Highlighter.tsx - Clip export
app/components-react/highlighter/Export/StorageUpload.tsx
Extensions and automation
- Platform apps
app/services/platform-apps/container-manager.ts - Avatar automations
app/services/stream-avatar/automations-engine-service.ts - Automation conditions
app/services/stream-avatar/engine/conditions.ts
Other components
- Streamer
Connections 16
- Streamer → Electron app: launches
- Electron app → Main UI: opens UI
- Main UI → Service registry: accesses services
- Service registry → Service catalog: registers
app/services-manager.ts - Service registry → Main UI: serves windows
- Main UI → Studio editor: presents studio
- Studio editor → Sources and scenes: edits sources
- Studio editor → OBS engine: controls OBS
- Streamer → Go-live setup: configures broadcast
- Go-live setup → Streaming platforms: selects destinations
- Stream scheduler → Streaming platforms: schedules streams
app/components-react/pages/stream-scheduler/useStreamScheduler.tsx - Stream widgets → Service catalog: uses widget service
app/components-react/widgets/common/useWidget.tsx - Streamer → Clip highlighting: reviews clips
- Clip highlighting → Clip export: exports clips
- Platform apps → Service catalog: uses app services
- Avatar automations → Automation conditions: evaluates conditions
app/services/stream-avatar/automations-engine-service.ts