A lightweight, real-time basketball broadcast overlay and web-based control panel built for OBS Studio.
Note: This project was vibe-coded with AI assistance. It focuses on getting a clean, functional broadcast graphics setup running quickly rather than enterprise-grade architecture.
- Real-Time Sync: Powered by Node.js, Express, and Socket.io so updates in the control panel appear instantly in OBS.
- Game Clock & Periods: Drift-free countdown clock (switches to tenths of a second under 1:00) with support for quarters and overtime.
- Score Animations: Animated score pop and floating
+1/+2/+3indicators when points are added. - Team Fouls & Timeouts: Visual foul bars with an automatic
BONUSbadge at 5 fouls, timeout indicators, and a full-widthTIMEOUTbanner. - Player Stats & Popups: Assign points to players right after scoring, with an optional 6-second on-screen stat banner.
- Halftime / Match Stats Card: Toggleable summary overlay showing quarter-by-quarter scoring and top scorers for both teams.
- Live Customization: Edit team names, colors, logos, scorebug scale, corner radius, background color, and screen position (top/bottom) directly from the control panel.
- Auto-Save: Match state is automatically saved to
match-state.jsonso a server restart won't wipe your game. - Remote Control: Accessible from any browser on the same local network (phone, tablet, or second laptop).
- Node.js (LTS)
git clone <your-repo-url>
cd Scorebug
npm installnode --watch server.jsOnce running, the following endpoints are available locally:
- Overlay (OBS):
http://localhost:3000/overlay.html - Control Panel:
http://localhost:3000/control.html
- Add the Overlay
- Add a new Browser Source in OBS.
- Set URL to
http://localhost:3000/overlay.html. - Set Width to
1920and Height to1080.
To operate the scoreboard from another device on the same network, open http://<HOST-LOCAL-IP>:3000/control.html in a web browser.
Scorebug/
├── server.js # Express + Socket.io backend and match state
├── match-state.json # Auto-generated local save file (gitignored)
└── public/
├── overlay.html # Broadcast graphics for OBS Browser Source
├── style.css # Scorebug styling and animations
└── control.html # Tabbed control panel (Live, Roster, Design)