DEV Community

Alex-Edward Iakab
Alex-Edward Iakab

Posted on

🎮 I built a real-time multiplayer browser game with Supabase + Next.js — no backend server required

Hi devs 👋

I recently launched a small game project I’ve been working on:
👉 Emojitsu – A real-time emoji dueling game

It’s a fast-paced browser game with two modes:

Multiplayer: Two players battle live in real time
Single-player: You fight a smart, competitive AI

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.

🔧 Tech Stack
Frontend: Next.js (App Router), TypeScript, TailwindCSS
State Management: Zustand
Backend (no server): Supabase

🧠 What Supabase Handles
Supabase was honestly a game-changer for this kind of real-time interaction. I used it for:

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

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

💡 What I Learned
Supabase makes real-time multiplayer possible without writing your own backend server

Edge Functions + RPC is a clean way to handle game logic without giving full DB access

Zustand is simple but very powerful for UI + logic sync

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

🚀 Try it out
You can play the game here (no sign-up or install):
👉 Emojitsu

Would love feedback on the architecture, performance, or gameplay. Thanks for reading!

Top comments (0)