<?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>Forem: Alex-Edward Iakab</title>
    <description>The latest articles on Forem by Alex-Edward Iakab (@iakabu).</description>
    <link>https://forem.com/iakabu</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3223230%2Ff7c2adb3-57de-4510-ad05-940aa8f1d97a.jpeg</url>
      <title>Forem: Alex-Edward Iakab</title>
      <link>https://forem.com/iakabu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/iakabu"/>
    <language>en</language>
    <item>
      <title>🎮 I built a real-time multiplayer browser game with Supabase + Next.js — no backend server required</title>
      <dc:creator>Alex-Edward Iakab</dc:creator>
      <pubDate>Thu, 29 May 2025 18:21:35 +0000</pubDate>
      <link>https://forem.com/iakabu/i-built-a-real-time-multiplayer-browser-game-with-supabase-nextjs-no-backend-server-required-h28</link>
      <guid>https://forem.com/iakabu/i-built-a-real-time-multiplayer-browser-game-with-supabase-nextjs-no-backend-server-required-h28</guid>
      <description>&lt;p&gt;Hi devs 👋&lt;/p&gt;

&lt;p&gt;I recently launched a small game project I’ve been working on:&lt;br&gt;
👉 Emojitsu – A real-time emoji dueling game&lt;/p&gt;

&lt;p&gt;It’s a fast-paced browser game with two modes:&lt;/p&gt;

&lt;p&gt;Multiplayer: Two players battle live in real time&lt;br&gt;
Single-player: You fight a smart, competitive AI&lt;/p&gt;

&lt;p&gt;I built it completely solo, and the core idea was to see how far I could go using only frontend tech and a backend-as-a-service — no traditional backend server, no custom WebSocket setup, no auth.&lt;/p&gt;

&lt;p&gt;🔧 Tech Stack&lt;br&gt;
Frontend: Next.js (App Router), TypeScript, TailwindCSS&lt;br&gt;
State Management: Zustand&lt;br&gt;
Backend (no server): Supabase&lt;/p&gt;

&lt;p&gt;🧠 What Supabase Handles&lt;br&gt;
Supabase was honestly a game-changer for this kind of real-time interaction. I used it for:&lt;/p&gt;

&lt;p&gt;🧠 PostgreSQL – for persisting match and player state&lt;br&gt;
🔄 Realtime sync – via supabase_realtime (no manual socket setup!)&lt;br&gt;
⚡ Edge Functions – to handle fast game logic&lt;br&gt;
📦 RPC (Remote Procedures) – for structured, secure access to game logic&lt;/p&gt;

&lt;p&gt;The game runs completely in the browser, and all game logic (besides the AI and animation) is handled by Supabase and static client code.&lt;/p&gt;

&lt;p&gt;💡 What I Learned&lt;br&gt;
Supabase makes real-time multiplayer possible without writing your own backend server&lt;/p&gt;

&lt;p&gt;Edge Functions + RPC is a clean way to handle game logic without giving full DB access&lt;/p&gt;

&lt;p&gt;Zustand is simple but very powerful for UI + logic sync&lt;/p&gt;

&lt;p&gt;It's 100% possible to launch a real-time multiplayer game as a solo dev, fully on modern frontend + BaaS tools&lt;/p&gt;

&lt;p&gt;🚀 Try it out&lt;br&gt;
You can play the game here (no sign-up or install):&lt;br&gt;
👉 &lt;a href="https://emojitsu.iakab.ro" rel="noopener noreferrer"&gt;Emojitsu&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love feedback on the architecture, performance, or gameplay. Thanks for reading!&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>supabase</category>
      <category>webdev</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
