A cozy daily logic puzzle inside a Reddit post: seat the capybara guests at the hot spring so every fussy wish comes true. Every day at 00:00 UTC Capybara Onsen posts a new spring, the same puzzle for everyone, climbing from a Gentle Monday to a Fiendish Saturday. A built-in solver checks that each spring has exactly one answer that can be reasoned out without guessing, so every solve feels fair. Solvers post their result to the pinned results thread in one tap and earn a "♨️ 12-day soak" flair, and on Sundays the daily spring is one a player built and the community voted up.

Play it: https://www.reddit.com/r/CapybaraOnsen/ · Watch it: https://youtu.be/PL5i9OUZe3E · App: https://developers.reddit.com/apps/capybara-onsen

The problem and our solution

The problem. A subreddit needs a reason to come back every day, and most daily games are either word games that have been done many times or puzzles that end in guessing when the clues run out. Guessing makes a bad day's score feel like luck, which kills both the conversation in the comments and the streak that brings people back.

Our solution. Capybara Onsen is a seating puzzle made for a Reddit post: one screen, five to nine guests, and wishes in plain words like "Momo sits next to Kiwi." or "No splashers in the hot pool." A constraint solver guarantees one solution per spring, and a difficulty rater that solves like a person sets each weekday's level. The game lives on Reddit's own surfaces: the scheduler posts the daily spring, results go into a pinned comment thread, streaks show as user flair, and players build next Sunday's spring themselves.

How it plays

Open the post and tap Open the onsen (first-timers get a thirty-second tutorial). Drag or tap capybaras into seats; each wish turns green when it comes true. When everyone is happy, the capybaras close their eyes and soak, and a result card shows your time, moves, hints, rank among the day's solvers and streak, with Comment my result and Subscribe buttons. Logged-out visitors can play everything and log in to keep their streak.

Reddit Developer Platform features

Feature What it does in Capybara Onsen
Devvit Web, React template (Vite, Hono, React 19, Tailwind 4) The whole app: a Hono server and two web views
Inline and expanded entry points (requestExpandedMode) A tap-only spring preview in the feed; the full game in expanded mode
Custom posts (submitCustomPost, text fallback, entry styles) One numbered post per day, readable on old Reddit
Scheduler (00:00 UTC) Generates and posts the daily spring, or the community's Sunday spring
Redis Springs per post, per-day leaderboards, streaks, community springs and puffs
App comments (submitComment, distinguish) The pinned "Soak results go in the replies" comment
User actions (SUBMIT_COMMENT, SUBSCRIBE_TO_SUBREDDIT) Comment my result and Subscribe, only when pressed
User flair (setUserFlair, removeUserFlair) The "♨️ N-day soak" streak flair
Menu items and triggers (onAppInstall, onPostDelete) Moderator tools; first spring on install; clean-up on delete
Client effects (showToast, navigateTo, showLoginPrompt) Confirmations, "See your comment", log in to keep a streak
Devvit Journeys App.Ready, Journey.Start, Progress, Interaction, End with game { win, score }

Devvit Web and entry points. Built from reddit/devvit-template-react. The inline splash.html (tall) shows today's pools and guests with one button, so the feed still scrolls past it; requestExpandedMode opens game.html with dragging, the tutorial, community springs and the builder. Game rules live in shared TypeScript, so the server re-checks every solve with the same logic the client shows.

Custom posts and the scheduler. The daily-post task (0 0 * * *) takes a Redis lock so a retry never double-posts, builds the spring from a date seed or picks the most-puffed community spring on Sundays, and calls submitCustomPost with a "Capybara Onsen #12: Tuesday" title, a text fallback and light and dark loading colors. Each post stores its own spring, so older posts stay playable.

Redis. Hashes hold each spring, its solution and every attempt; a sorted set per post ranks solvers by fewest hints and then time for position and percentile; streaks, puffs and share limits are counters. Per-player data expires 30 days after last activity.

App comments, user actions and flair. Every daily post gets a distinguished, stickied app comment. Comment my result posts ♨️ Capybara Onsen #12 · 1:42 · no hints · 🔥 5 from the player's own account as a reply to it, and See your comment opens it with navigateTo. From a two-day streak the app sets a "♨️ 12-day soak" flair and clears it when the streak ends, only touching a flair that is empty or its own.

Menu items and triggers. Moderators can open today's spring early or post an extra community spring from the subreddit menu. onAppInstall posts today's spring the moment the app is installed, and onPostDelete removes that post's data.

Devvit Journeys. The client fires App.Ready on load, Journey.Start on the first move, Journey.Progress as guests are seated, Journey.Interaction for hints, undo and clear, and Journey.End with complete and game { win, score }.

Community springs

Players build springs in four steps: a pool layout, five to nine guests, wishes composed from the same lists the daily game uses, and a name from word lists. The solver reports live whether the spring has no solution, several or exactly one, and how hard it is; only fair springs can be shared. Others solve them and give steam puffs, and every Sunday the most-puffed spring becomes the daily post, credited "Built by u/name". There is no free text, so nothing needs moderating.

The puzzle engine

Guests are variables, seats are values, and each wish is a bitmask constraint. Mirror images inside a pool change no wish, so solutions are counted up to those symmetries. The difficulty rater applies the easiest deduction that makes progress (direct wishes, pair wishes, pool capacity, "these two guests share these two seats", one-step what-if) and adds its weight; a spring is fair when this finishes without guessing. The generator keeps adding true wishes until one seating survives, then trims and rates the result. Over a generated year the average difficulty climbs every weekday (Mon 7.6, Tue 14.0, Wed 19.3, Thu 25.4, Fri 43.6, Sat 70.4), every spring has exactly one solution, and the slowest day generates in 0.2 s.

Architecture

Reddit                                Devvit server (Hono)                   Shared TypeScript
------                                --------------------                   -----------------
Scheduler 00:00 UTC ---------------> /internal/scheduler/daily-post ----+--> generator.ts (seeded springs)
Triggers (install, post delete) ----> /internal/triggers/*               |   solver.ts (one solution, difficulty)
Moderator menu items --------------> /internal/menu/*                    |   wishes.ts, hints.ts, scoring.ts
                                                                         |
Daily custom post                    Reddit API: submitCustomPost,       |
  inline view (splash.html)          submitComment, distinguish,         |
    | requestExpandedMode            setUserFlair, subscribe             |
  expanded view (game.html) --fetch-> /api/* and /api/springs/* ---------+--> Redis (springs, leaderboards,
    | Journeys events                                                          streaks, puffs)
    +------------------------------> /api/telemetry -> Devvit analytics

Every capybara, pool and icon is drawn in SVG, and every sound is made with Web Audio. Vitest checks the solver against brute force, the generator over weeks of springs, scoring and streaks; Playwright plays the whole loop at phone and desktop sizes.

Built With

  • devvit
  • devvit-journeys
  • devvit-scheduler
  • devvit-web
  • elevenlabs
  • hono
  • playwright
  • react
  • reddit
  • redis
  • svg
  • tailwindcss
  • typescript
  • vite
  • vitest
  • web-audio-api
Share this project:

Updates

Submission history