r/webdev • u/Playful-Figure9632 • 3h ago
Showoff Saturday I built a multiplayer card game because I couldn't find one online. 11,343 people played it last month
About six months ago I wanted to play UNO No Mercy online with my friends. There wasn't a proper version anywhere, so I built one.
The stack is Vue 3 and Vite on Cloudflare Pages. Each game room is a Cloudflare Durable Object that holds the game state, and players connect to it over WebSockets. Supabase handles accounts and saves results.
A few things were harder than I expected:
- Latency for India. India is my biggest country, but Cloudflare doesn't run Durable Objects there, so the closest room is in Singapore, around 80ms away.
- People going idle mid-game. Now there's a 2 minute turn limit, and 3 timeouts in a row puts you out.
- Guests. Most people won't sign up just to try a card game, so everyone starts as a guest, and if they sign in later they keep their stats.
In November 11,343 people played, about double October. Around half came from Google search.
It's open source: https://github.com/alii13/open-mercy
You can play it here: https://open-mercy.com
Happy to answer anything about the Durable Objects setup or the SEO side.