Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 5 min read Case study mediumAdept

The open source Kahoot alternative

Supabase built an open-source Kahoot-style quiz game for its GA Week meetups. The game is a client-only Next.js app built on three Supabase features. Anonymous sign-in lets players join friction-free after scanning a QR code while row-level security still limits their permissions. Six Postgres tables hold quiz sets, games, participants and answers. Realtime Postgres-changes subscriptions on the participants, games and answers tables keep the host and player screens in sync, and the host chains them into a single channel. The repo is open for contributions such as quiz editing and past-results views.

Related posts

  • Making a Real-Time Chat App with Supabase on Replit

    Replit mediumAdept

    A real-time public chat app can be built with a Vue 3 and Tailwind CSS frontend on Replit backed by Supabase's hosted Postgres. The walkthrough creates a messages table via SQL, enables replication-based real-time events, and wraps the supabase-js client in a Vue composable. That composable handles paginated message loading by range, INSERT subscriptions for live updates, and inserts for sending. Users are identified only by a random username stored in localStorage, and older messages load when the list is scrolled to the top.

  • Flutter Tutorial: building a Flutter chat app

    Supabase mediumAdept

    A real-time single-room chat app can be built with Flutter on the frontend and Supabase as the entire backend, using the supabase_flutter SDK instead of a custom API. The walkthrough creates profiles and messages tables in Postgres with username validation constraints, adds the messages table to the supabase_realtime publication for live updates, initializes the Supabase client, routes users via a splash page based on auth session, and defines Dart data models plus a registration page. Authentication and row-level security are deferred to a second part.

  • Cal.com launches Expert Marketplace built with Next.js and Supabase.

    Supabase mediumAdept

    Cal.com's open-source Platform Starter Kit for building expert marketplaces runs on Next.js and Supabase, having switched from SQLite to Postgres via Prisma shortly before launch once file storage was needed. Prisma connects through Supavisor using a pooled transaction-mode URL plus a direct session-mode URL, and its multiSchema feature keeps app tables out of the PostgREST-exposed public schema. Profile images upload to Supabase Storage via server-generated signed upload URLs, which works alongside Auth.js rather than Supabase Auth, and a custom Next.js Image loader serves resized images. A Vercel integration syncs environment variables and can provision a project with migrations and seeds in one click.

  • Make a Multiplayer Game with Kaboom.js and Heroic Labs

    Replit mediumAdept

    A multiplayer platformer can run in Replit's browser IDE using the Kaboom.js game library on the client and Heroic Labs' open source Nakama server, run locally via Docker Compose with Postgres, as the backend. The walkthrough authenticates players with Nakama email auth to create sessions and opens a realtime socket. Players then create or join matches by match ID and broadcast state so every participant sees each other's movement. On the Kaboom side it sets up a world, a platform and keyboard-controlled players that can move and jump.

  • Flutter Authorization with RLS

    Supabase mediumAdept

    Extends a basic Flutter real-time chat app into a 1-on-1 chat with authorization enforced by PostgreSQL Row Level Security on Supabase. The schema adds rooms and room_participants tables, a room_id foreign key on messages, and a security-definer plpgsql function create_new_room that returns an existing room for two users or creates one. The client side uses flutter_bloc cubits to stream room participants and each room's latest message via Supabase realtime. Email confirmation is handled through deep links configured in iOS Info.plist, AndroidManifest.xml and the Supabase redirect URL settings.

The quest for software engineering knowledge.

Look:
Layout: