A Node.js backend proxy that serves as a bridge between your Expo app and OBS Studio, using the obs-websocket-js library.
- Node.js (v16 or higher)
- OBS Studio with WebSocket plugin installed
- npm or yarn package manager
- Install dependencies:
npm install
- Start the development server:
npm run dev
POST /connect
- Connect to OBSGET /scenes
- List all scenesGET /scene/current
- Get current scenePOST /scene/change
- Change sceneWS /events
- WebSocket endpoint for scene change events
npm run dev
- Start development server with hot reloadnpm start
- Start production servernpm test
- Run tests
backend-proxy/
├── src/
│ ├── server.js
│ ├── config/
│ │ └── config.js
│ ├── services/
│ │ └── obsConnection.js
│ ├── routes/
│ │ └── api.js
│ ├── middleware/
│ │ ├── errorHandler.js
│ │ └── validation.js
│ └── utils/
│ └── logger.js
├── package.json
└── README.md