Inspiration
At most events, the QR code stops being useful once you're through the door. The fun parts of a night are the hunt, the crew and the moment the room cheers, and they usually run on paper, a group chat and someone shouting over a microphone. We wanted the event itself to be the game.
Kiroween's Frankenstein category asks for parts that were never meant to fit, stitched into one creature. QuestOps stitches four:
- event software (stations, check-ins, a venue screen);
- multiplayer game mechanics (points, levels, teams, first arrivals);
- QR codes printed on paper;
- generative AI writing the route.
The look follows the same idea. The night is staged as a 1950s midnight monster-movie double bill: the venue screen is the cinema screen, each phone is a ticket stub, and the console is the projection booth.
What it does
An organizer describes the night, the AI drafts a route, and the event plays out on three screens at once.
Setup. The organizer names the event and briefs the AI with a theme, a size and a difficulty. Groq drafts a storyline and a route of stations, and the organizer reviews and edits every station before anything is saved. Each station prints as an admit-one ticket with its QR code on the stub.
Three station types:
- Scan: reach the station and scan it.
- Answer: scan, then type the codeword printed on the sign.
- Team: once enough of a crew has scanned, the whole team gets a bonus.
The player's phone, no account or app. Players join with a name and an optional team. Their ticket shows:
- score and rank;
- a level, from Fresh corpse to Lich;
- the next station, with a sheet for each station explaining what to do and where it is.
A check-in slams in as a title card, with a buzz on phones that support it. Players see when they're first to arrive and when their team unlocks a bonus. When the night ends they get a recap card they can share.
The venue screen runs itself. It shows standings, the round clock and the join QR, and spotlights every first arrival and team bonus. Going live counts in with a 3-2-1 film leader, announcements take over as full-screen intermission cards, and the end of the night rolls credits that bill the top three.
The booth (organizer console), for the night itself:
- a round clock that every screen counts down together;
- announcements to every phone and the venue screen;
- pause and resume;
- how many players have reached each station, and who has stalled for 15 minutes;
- giving or taking points with a reason;
- removing a player, and exporting results as a CSV.
A demo that plays itself. The Haunted Hall (join code
HAUNTS) runs with simulated players and is labelled that way everywhere its figures appear. It resets when the night ends or after it sits idle.
How we built it
Built with Kiro, spec first. The live-operations phase started as a spec in .kiro/specs/live-ops/:
requirements.md: ten user stories with acceptance criteria;design.md: the architecture, data model, interfaces and the demo simulator;tasks.md: the implementation plan.
A task was ticked only after a test, an API call or a screenshot proved it. Haptics are still unticked because nobody has tested them on a real phone yet.
Steering in .kiro/steering/ carried the rules into every change:
product.md: the people, the terms, and rules such as "quiz answers never leave the server" and "every error says what happened and what to do next".tech.md: the stack and its conventions, for example "never add a per-connection database poll".design.md: the visual system, loaded only for UI files.
Hooks in .kiro/hooks/:
- the strict TypeScript check runs at the end of every agent turn;
- a design linter runs whenever the stylesheet is saved;
- an agent hook keeps the task list honest.
Skills. We used the Impeccable, Hallmark and taste design skills. The visual direction came from a dealt-and-approved process instead of a default template, and a fresh-context reviewer checked the finished pages.
The stack:
- Next.js (App Router), React 19 and strict TypeScript. Pages render on the server with real data, so a phone never waits on JavaScript to show the event.
- SQLite through better-sqlite3. Every write that changes what a screen shows bumps an
events.versioncounter in the same transaction. - One live loop per event. It reads that counter every 400 ms while anyone is watching, builds the snapshot once per change and pushes it to every screen over Server-Sent Events. Each phone gets its own rank and level pushed to it, with no polling. In our test, 60 open screens shared a single loop and every one received every update.
- Groq runs
openai/gpt-oss-120bwith a strict JSON schema. Its output is validated again before anyone sees it. Anthropic and OpenAI work as drop-in alternatives, and built-in haunted and classic packs take over when no key is set or the provider fails. - Plain CSS with design tokens. The fonts are Antonio for poster billing, Hanken Grotesk for text and Azeret Mono for every number. Ten hand-coded SVG Halloween glyphs (ghost, spider, bat, cauldron and others) share one grid and one stroke.
- Hosting: one AWS EC2
t3.smallrunning Ubuntu 24.04, with the app under systemd, Caddy in front for automatic Let's Encrypt HTTPS, and nightly SQLite backups. Thedeploy/scripts rebuild it from scratch. - The demo video was filmed by scripting Puppeteer against the live site and cut with ffmpeg.
Challenges we ran into
- Live data that doesn't melt at scale. The first version had each open screen poll the database every second, and each phone refetched its rank on every scan. We replaced both with one shared broadcaster per event and a snapshot cached per version, then load-tested it.
- "Stuck at Loading the event." Phones on the same Wi-Fi couldn't load the dev server's scripts, because Next.js blocks other origins by default. Separately, the player view rendered nothing until JavaScript arrived. We now render every page with real data on the server.
- HTTPS is not optional. Production cookies are
Secure, and in-page camera scanning needs a secure context, so plain-HTTP testing on the instance looked broken even though it worked. Caddy and Let's Encrypt fixed that properly. - The AI invents venue details. Asked about a three-floor library, it described a gothic reading nook and a secret alcove. The prompt already tells the model never to invent venue facts, and it still does. So the review step is the real safeguard: no drafted station is saved until the organizer has read it.
- Fitting the venue screen into any projector. Rows clipped behind the spotlight banner at 1080p and overlapped at 720p. The screen now shows only whole rows and adapts to short displays.
- Small server realities: the proxy couldn't write its own log, the app was listening on every network interface, and our home IP kept changing mid-deploy. Each got a fix in the deploy scripts, including a one-line command that moves the SSH rule to your current IP.
Accomplishments that we're proud of
- It runs live at https://questops.drshn.tech on a free-tier-eligible instance, with HTTPS, backups and a repeatable deploy.
- One write reaches every phone and the venue screen within the same live tick, without per-connection polling.
- Quiz answers never leave the server, wrong guesses are rate-limited, and the CSV export neutralises spreadsheet formulas.
- The whole night works with no AI key at all, and still uses the AI when one is set.
- The spooky theme is a complete visual system. It never gets in the way: controls still name their action in plain words ("Pause play", "End the event").
- The spec's task list only ticks what was actually verified.
What we learned
- Writing requirements with acceptance criteria before the code made every later "is it done?" a yes-or-no check. That's what kept the task list honest.
- Steering files are cheap and pay off on every change. One line like "never add a per-connection database poll" kept a whole class of bugs out.
- A single SQLite file and a version counter go a long way. Change detection stays exact, and one process can serve a busy room.
- Real devices, real networks and real HTTPS find the bugs that a desktop browser never shows.
What's next for QuestOps
- Run it at a real event and see where crowds actually get stuck.
- Organizer accounts and roles, so a team can share the booth.
- Photo-proof and location-based stations.
- Moving the live bus to Postgres
LISTEN/NOTIFYor Redis, so several servers can share one event. - Scans that queue offline and sync when the signal comes back, for basements and big halls.
Built With
- amazon-ec2
- amazon-web-services
- barcode-detection-api
- better-sqlite3
- caddy
- css
- ffmpeg
- fontsource
- github
- gpt-oss-120b
- groq
- kiro
- lets-encrypt
- next.js
- node.js
- puppeteer
- qrcode
- react
- server-sent-events
- sqlite
- systemd
- typescript
- ubuntu