Inspiration
I love daily games because they create a small shared ritual: everyone gets the same challenge, everyone can compare notes, and tomorrow brings a fresh start. I also love detective fiction where the pleasure is not the answer itself but the moment several ordinary facts click into place. Reddit felt like the natural home for that combination — not just as a place to host a puzzle, but as a world with communities, posts and replies. The first version was a case contained inside one Interactive Post. It worked, but it did not feel like a treasure hunt. The interesting question became: can the post be the case desk while Reddit itself becomes the evidence map? The design constraint that shaped everything was safety. A mystery game must never turn real people into suspects or send players to harass unrelated communities. Every mandatory clue is therefore a game-owned post, and partner communities must be approved before they can host a clue.
What it does
The Daily Archive is a Devvit Web Interactive Post. Each UTC day it resolves one authored case: a premise, three to five evidence cards, two required field notes and deductions ending in a final conclusion. The loop is deliberately small:
- Read the evidence.
- Follow a field trail into a game-owned Reddit post.
- Find the reply signed FIELD DESK 07 and submit its codeword.
- Unlock and complete the second field note.
- Make the deductions and submit the final conclusion.
- Compare the proof-style explanation, score, hints, streak and evidence vault, then discuss the case. Players can use a guided route (direct link to the field note) or a manual route (search the community for the exact post title). Both reach the same game-owned post: the manual route preserves the detective feeling, while the guided route keeps the experience reliable on mobile. The build ships eight authored cases, four puzzle mechanics, progressive hints, optional bonus questions, an archive of honours and a moderator-only Case Files browser for testing every case.
How I built it
The game uses a React 19 client and a Hono server, bundled by Vite through @devvit/start.
- Client: a compact case-file interface with no external fonts or images, safe inside the webview and fast on mobile.
- Server: all answer keys, codewords and unrevealed explanations stay server-side. Every submission is validated against a versioned case catalogue.
- Storage: Redis stores per-user, per-case progress. Atomic completion claims prevent duplicate rewards; stats use an optimistic WATCH/MULTI/EXEC update.
- Content: a typed case schema for evidence, puzzles, hints, explanations and trail posts. The public projection strips answers, codewords and seeds before anything reaches the client.
- Operations: moderator actions create the daily post and Case Files post, pause a case and report status. A scheduler creates the daily post at 00:05 UTC with an idempotent safety check.
- Analytics: Devvit Journeys tracks opening, case start, evidence, trail steps, submissions, completion and discussion clicks.
- Quality: 23 tests cover content integrity, answer leakage, the full server loop, idempotency, streaks, preview access, validation and dates. The scoring model is intentionally simple:
$$\text{score} = \max(0, 100 - 10h) + 15b$$
where (h) is hints used and (b) is whether the bonus was solved.
Challenges
Keeping secrets on the server. It is easy to accidentally ship the answer in a JSON payload. Every public response is explicitly projected, and a test asserts that no answer, codeword, seed or unrevealed explanation appears in it. Reddit’s comment rate limits. Creating several field-note replies at once hit the limit. I kept the signed reply as the only live comment, moved the decoy replies into the post body, saved the post before adding the reply, and retry the reply on the next request. That made seeding resilient without duplicate posts. Cross-subreddit safety. A game that sends players into communities needs permission, not just a URL. The engine supports partner subreddits through an explicit allowlist, but the current playtest seeds its mandatory field notes into the game’s home community because no partner approvals exist yet. No real user’s post or comment is ever a clue. Private app, public demo. The hackathon requires a private app but a public demo post. I kept the app private and made the demo community and post the judge-facing surface. The final checklist includes testing the exact demo link in incognito. Making a daily game, not a content treadmill. Eight polished cases with a review checklist beat unlimited generated clues. Every case has one intended conclusion, an explicit accepted-answer set and an explanation that cites the evidence.
What I learned
- Platform constraints are design material. The request window, webview restrictions and Redis limits shaped the architecture more than any framework choice.
- A daily game is an operations product as much as a game: scheduling, idempotency, moderation and content QA matter as much as the puzzle.
- Restraint makes the mystery feel better. A few strong clues and one clear deduction are more satisfying than a dashboard of features.
- Safety must be encoded in the data model. “Only game-owned posts” is not a guideline; it is why the trail model has an allowlist and a public/private split.
What’s next
The next step is real partner communities for the field trail, followed by the Grand Mystery — a multi-day, team-based investigation built on the same verified clue model. After that: archived-case replay, more authored cases, team evidence vaults and a richer moderator dashboard.
Built With
- github
- html5
- node.js
- python
- revvit
- tailwind
- typescript
- vite