Aux Battles runs multiplayer music game using Postgres as sole state machine
Aux Battles is a free, browser-based multiplayer music game that operates without a dedicated game server. Instead, all game state — rooms, players, prompts, and voting — is synchronized across clients via Supabase Realtime, which streams live Postgres database changes. Every player action is handled as a direct table write, with a single phase column on each room row driving the game's progression. Host-only controls are enforced at the UI level rather than through row-level security, keeping the architecture simple for a no-login game. The most complex feature was a Twitch-style 64-song knockout bracket, stored in a single JSONB column and protected against race conditions using a compare-and-set sequence token.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in