Inspiration
Every subreddit has a personality — a way of arguing, a set of hills it will die on — and you only find out how well you know it when you have to guess. Trivia games test what you remember. We wanted a daily game that tests something more social: calibration about your own community. The fun isn't being right, it's the moment the room's real split appears and you find out you were 30 points off.
What it does
Each UTC day, the app posts Read the Room: five this-or-that dilemmas, from "pineapple on pizza" to "would you answer a three-day-old text". For each card you do two things:
- Pick your own side.
- Guess what percentage of the subreddit will pick side A.
Lock it in and the card reveals the live split as an animated bar, with your prediction marked as a needle and your pick highlighted. Each card is worth up to 100 points — closer guesses score higher, and a perfect read is a perfect 100. Five cards produce a daily score, a rating band (Wild Guess → Oracle), a UTC streak, and points on a Monday–Sunday weekly leaderboard.
The result screen hands you a ready-to-paste comment so the argument continues in the thread, plus a live countdown to the next room. Players can also pitch their own dilemmas and "second" other people's pitches; moderators schedule the top pitches into a future day, where they become card 5. A 00:00 UTC scheduler creates the post itself, and an install trigger posts the first room immediately, so the game runs without anyone remembering to press a button.
How we built it
Devvit Web with a React 19 + Vite client, a Hono server, and Devvit Redis for state.
src/shared/*is the single source of truth: date math, the 66-dilemma bank, seeded daily selection, scoring, streak transitions, leaderboard assembly, and the TypeScript contract between client and server.- The server exposes
/api/init,/api/answer,/api/suggest,/api/second, and internal endpoints for the mod menu, the pitch form, the install trigger, and two cron jobs (daily + hourly catch-up). All post creation is idempotent through a per-day Redis lock field, so the scheduler, the catch-up job, and a moderator can race without producing duplicate posts. - The client is one state hook (
useRoom) driving four screens plus two sheets. The inline post view is deliberately tiny — a streak, today's reader count, and one CTA that callsrequestExpandedMode— while the expanded view holds the full game. - Daily content is deterministic, not random: a fixed-seed shuffle of the bank is walked five cards at a time from the day index, so the same date always produces the same room and no card repeats until the whole deck cycles.
- Scoring lives on the server and is derived from the stored tally, so the client cannot inflate a score.
Challenges
- Making a poll feel like a game. A poll is one tap. We added the prediction step so every card has a real decision and a real risk, then made the reveal the payoff: animated split, needle, points, and one line of feedback.
- Idempotency everywhere. Midnight cron, hourly catch-up, install trigger, and a human pressing "Post today's room" can all fire for the same day. A
hSetNXlock field per day, plus per-player answer storage, makes retries and races safe. - A viewport of 400 pixels. The inline post had to carry identity, streak, reader count, and one unmissable CTA — we tested it at 420×470 and 360×640 and compact the layout for short heights.
- No key scanning in Devvit Redis. Every read needs a known key, so the leaderboard is a per-week sorted set with a separate names hash and a days-played hash, instead of scanning player records.
- Community content without chaos. Pitches are validated for length, URLs, and a small blocklist, deduped against the bank, gated by a one-second-vote-per-day budget, and only a moderator can schedule one.
Accomplishments we are proud of
- 40 unit tests over the pure game logic: day boundaries, rotation, scoring, streaks, leaderboard ordering, suggestion validation.
- A reveal animation that makes a percentage feel like a result.
- Real screenshot coverage generated by a Playwright harness that mounts the actual React app against a deterministic in-memory API — including the inline post view.
- Zero paid features, zero third-party assets: all copy, art (CSS/SVG), and dilemmas are original.
- Keyboard play (
1/2,Enter), labeled controls,aria-livereveals, and reduced-motion support.
What we learned
- Calibration is a better daily hook than knowledge. You can play a dilemma you know nothing about and still have a strong, personal result.
- Devvit's server-side cron plus Redis is enough to run a whole daily game without any external infrastructure.
- Designing the inline view first forced a much clearer product: if the CTA and the streak can't fit in a post, the loop isn't tight enough yet.
What's next
- Per-dilemma history so the result can say "you are 12 points more optimistic than the room on food cards".
- Seasonal leaderboards and a "room of the week" recap post.
- A moderator dashboard for the pitch queue with drag-to-schedule.
- Optional difficulty modes (guess both sides' splits) for veteran players.
Built With
- css
- devvit
- devvit-web
- hono
- playwright
- react
- redis
- typescript
- vite
- vitest