How jimhasaburger/youtube-chat-vm works
youtube-chat-vm is a lightweight YouTube live-chat-to-Windows-VM controller. Its main workflow fetches chat messages, broadcasts them to a browser overlay, and dispatches ! commands to keyboard, mouse, or VM operations. The browser reconnects to the WebSocket and renders message history and live updates. README capabilities are represented at the command-dispatch level; sampled excerpts show representative command implementations, but not every command or VM lifecycle routine. The repository is small, so several responsibilities share main.py.
Main entry points: main.py Fetch chat · script.js Overlay rendering
Components 11
Chat ingestion
- Fetch chat
main.py - Message history
main.py
Command and VM control
- Command dispatch
main.py - Input commands
main.py - VM commands
main.py - VM keyboard and mouse
main.py
Chat overlay
- WebSocket service
main.py - Overlay rendering
static/script.js
Other components
- YouTube chat
- VirtualBox VM
- Overlay browser
Connections 12
- Fetch chat → YouTube chat: fetches messages
main.py - Fetch chat → Message history: records messages
main.py - Fetch chat → Command dispatch: dispatches commands
main.py - Command dispatch → Input commands: routes input
main.py - Command dispatch → VM commands: routes VM actions
main.py - Input commands → VM keyboard and mouse: sends keystrokes
main.py - VM commands → VirtualBox VM: controls VM
main.py - VM keyboard and mouse → VirtualBox VM: sends input
main.py - WebSocket service → Message history: sends history
main.py - WebSocket service → Overlay browser: pushes chat events
main.py - Overlay browser → Overlay rendering: loads overlay
static/script.js - Overlay rendering → WebSocket service: connects to /ws
static/script.js