← Back to Projects
Systems & Graphics

Hababot2 & WebSocket Relay

Native C++/ImGui Twitch desktop client paired with a Boost.Beast WSS relay

C++20Dear ImGuiDirectX 11Boost.BeastOpenSSLWin32NginxTwitch EventSub
Client + WSS RelayArchitecture
Live Channel PushQueue Sync
Win32 / DX11Desktop UI

Problem & Constraints

Running OBS, Clone Hero, and real-time audio routing leaves little CPU or frame-time headroom for heavy Electron-based stream bots. I needed a native desktop overlay capable of rendering animated Twitch emotes, international Unicode song titles, and album art—paired with a public web song list (songs.hababot2.com) that other streamers could use without ever sharing OAuth client secrets locally.

Architecture & Tradeoffs

[ Twitch IRC / EventSub ] <---> [ C++20 Desktop Client (Win32 / DX11 / ImGui) ]
                                          |
                                     WSS (TLS)
                                          v
[ Browser Viewers ] <--- Push --- [ Nginx -> Boost.Beast Relay (Linux / systemd) ]

Debugging & Production Fixes

Engineering Metric Details / Target
Idle Desktop Footprint 200 MB RAM / 0.1% CPU
Queue Update Delivery Immediate WebSocket push on mutation
Deployment Stack Linux VPS · systemd · Nginx · OpenSSL