My wife and I hosted a quiz at our friends’ wedding, but the venue had no projector.
So we vibe-coded a website instead: everyone got the questions on their phones, while we controlled the game from ours.
My wife and I hosted a quiz at our friends’ wedding, but the venue had no projector.
So we vibe-coded a website instead: everyone got the questions on their phones, while we controlled the game from ours.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (4)
This is my favourite kind of vibe-coded app: one evening, one room, one job, and then it's done.
How did you keep everyone's phone in sync when you moved to the next question? Polling, or something like websockets? And did anyone's screen lock mid-game and leave them a question behind? That's the bug I'd have bet on at a wedding.
I bet it was polling, cause the whole project was deployed via Cloudflare Workers. Everything worked smoothly, it was around 10 phones connected in the same time and the biggest delay was around 3 seconds that did not hit the process of the game.
We will use this project in the future cause me and my wife like to make intellectual games for our friends and colleagues.
Ten phones with a three-second worst case is plenty for trivia, and polling is the right call at that size. If you ever run it for a bigger crowd, one small trick: send each question's start time along with it and let every phone count down from that. Then everyone gets the same answer window even when their poll lands a couple of seconds late.
Yeah, it's interesting. I think that with a bigger crowd, it won't be an evening of vibe-coding for preparation 🙂 In that case, I would use Rails with AnyCable and some kind of high-load testing.
I love AnyCable, it removes a pain with websockets🙂