<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Emilis M</title>
    <description>The latest articles on DEV Community by Emilis M (@emilism).</description>
    <link>https://dev.to/emilism</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4076573%2Fd2549a39-45ae-4833-8407-d3d3dfe51f8d.png</url>
      <title>DEV Community: Emilis M</title>
      <link>https://dev.to/emilism</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/emilism"/>
    <language>en</language>
    <item>
      <title>Building a multiplayer game with no game server: Postgres realtime as the state machine</title>
      <dc:creator>Emilis M</dc:creator>
      <pubDate>Thu, 13 Aug 2026 16:13:37 +0000</pubDate>
      <link>https://dev.to/emilism/building-a-multiplayer-game-with-no-game-server-postgres-realtime-as-the-state-machine-202b</link>
      <guid>https://dev.to/emilism/building-a-multiplayer-game-with-no-game-server-postgres-realtime-as-the-state-machine-202b</guid>
      <description>&lt;p&gt;Aux Battles is a free multiplayer music game: rooms, players, prompts, voting, all synced live across every connected browser. There's no game server behind it. Every client subscribes to Postgres changes through Supabase Realtime and reacts to a single &lt;code&gt;phase&lt;/code&gt; column on the room row.&lt;/p&gt;

&lt;p&gt;Actions are direct table writes. Host-only actions (starting a round, advancing a song) are enforced in the UI, not by row-level security, since the alternative is threading session identity through anonymous auth in a way that adds complexity without adding real protection for a free, no-login game.&lt;/p&gt;

&lt;p&gt;The trickiest part was the Twitch bracket tournament mode: a full 64-song knockout tree lives in a single jsonb column, &lt;code&gt;rooms.bracket&lt;/code&gt;, written with a compare-and-set sequence token (&lt;code&gt;bracket_seq&lt;/code&gt;) so that a double-tapped winner button, or a streamer and a mod acting at the same time, becomes a no-op instead of a race condition. &lt;a href="https://auxbattles.app/" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
