Inspiration

Chain reactions are the best part of many puzzles: you make a few careful moves, then sit back and watch everything else happen. Birdsong at dawn works the same way. One bird starts, the next joins in, and soon the whole tree is singing. Songbranch turns that into a small daily puzzle that a whole subreddit plays together.

What it does

Every day a new grove of sleeping birds appears as a post. Each bird shows z, zz or zzz: how many singing neighbours it needs before it joins in. You get a few whistles. Tap birds to place them, press Dawn, and the song spreads along the branches, wave by wave. Wake the whole grove to win.

  • Always fair. The number of whistles is the proven minimum: an exhaustive solver checks every placement, so every grove can be solved and none can be solved with fewer.
  • Three stars: Chorus (wake everyone), Clear head (within 3 tries) and Long song (make the song last as many waves as possible). The result card shows the longest possible song and how many placements reach it.
  • Guest birds change the rules for a day: the rooster counts as two singers, the owl ignores whistles, and the lark sings from the start.
  • Three tiny practice groves teach the rules by playing. They can be skipped.

Made for a community

  • Everyone plays the same grove, and groves get harder through the week: Monday is gentlest, Sunday hardest.
  • The community picks tomorrow's guest. After trying the grove you vote for the rooster, the owl or the lark. The most votes at 00:00 UTC joins the next day's grove (in testing, one vote for the rooster made the next day a rooster day; screenshot 1).
  • Spoiler-free sharing. One button replies to the post's pinned comment, as you, with your result:
  Songbranch #1 · ★★★
  Woke the grove in 1 try · 7-note song
  █▆█▃▆▃▆

The bars show how many birds joined in each wave, never which birds you whistled. Reddit asks your permission first; sharing is optional and never needed to play.

  • Where the flock started: after you wake the grove, rings show which birds other players whistled first.
  • Today's early birds leaderboard (stars, then fewer tries, then who solved first), daily streaks, and opt-in streak flair in the subreddit.
  • Build a grove. Players design groves on the same 4 × 5 grid. A checker runs while you build: the grove must need 2 to 5 whistles, at most half of all whistle placements may work, and the song must last at least 3 waves. Names come from two word lists, so there is no free text to moderate. Posting creates a new post in the subreddit, under the builder's name. Each player can post 3 groves a day.
  • Community groves are rated 1 to 3 feathers by players who woke them, listed by top rated or newest, and can be deleted by their builder, which removes the post from the community. Each day's result card features the best-rated grove of the past week as the Community pick.
  • Play yesterday from the result card (it does not count for streaks).
  • Readers who are not logged in can play every grove; the game tells them "Playing logged out: results are not saved", their results stay out of the community stats, and the share button becomes "Log in to comment".

Daily content

Groves are generated from the date, so there is no question bank to run out. A seeded generator lays out 8 to 16 birds on a 4 × 5 lattice whose branches never cross, and keeps a candidate only when the solver confirms it fits that weekday's difficulty band. Calibration over every day from 2026-11-20 to 2027-12-31 (407 days):

Mon Tue Wed Thu Fri Sat Sun
Birds 8–10 9–11 10–12 11–13 12–14 13–15 14–16
Whistles 2 2 2–3 3 3 3–4 3–4
Share of whistle placements that work (mean) 14.4% 9.1% 5.6% 4.2% 3.4% 2.4% 2.1%
Longest song in waves (mean) 5.2 5.2 5.5 5.7 6.0 6.4 6.5
  • An automated test generates every one of those 407 days and checks that each grove is valid; another checks all three guest birds for four weeks.
  • Generating a day took at most 7 ms in calibration, so no puzzles need to be stored in advance.
  • A new post goes up every day at 00:00 UTC. If one is ever missing, moderators have a menu item that posts it; when today's post already exists, the same item simply opens it, so it never posts the same day twice.

Accessibility

  • Keyboard: Tab moves through the birds, Enter or Space places a whistle, D starts the dawn, R clears, H or ? opens the rules, Esc closes panels.
  • Screen readers: every bird is a labelled button ("Bunting, asleep, needs 2 singing neighbors, 2 links"), and each wave is announced in a live region.
  • Not colour alone: sleeping birds close their eyes and show z marks; singing birds open their eyes and glow; roosters carry a ×2 badge and owls a no-whistle mark.
  • The system's reduce-motion setting is respected. Sound is optional, and nothing is shown only by sound. Text contrast is at least 4.5:1, and buttons are at least 44 px tall.

How we built it

  • Devvit Web 0.15.3 from Reddit's React template: React 19 and Vite on the client, Hono on the server, Redis for state, the scheduler for the daily post and a nightly cleanup, triggers for install and post deletion, a moderator menu item, and Devvit Journeys events (app ready, journey start, progress and end) through @devvit/analytics. In our playtest, Reddit's logs accepted every event as valid; Reddit does not record Journeys for playtest versions.
  • A pure TypeScript engine (rules, exhaustive solver, daily generator, scoring, community-grove checks) with no dependencies, shared byte for byte by client and server. A test fails if the two copies drift.
  • Everything is drawn and synthesized in code. Birds, branches and icons are SVG. Birdsong comes from the Web Audio API: each wave climbs a pentatonic scale, and a full chorus ends on a chord. There are no image, font or audio files; text uses system fonts.
  • A testable server. The game service talks to small Store (a Redis subset) and Platform (Reddit actions) interfaces. Tests and a local preview use an in-memory store and a fake Reddit, so the whole game, including community groves, voting and the next-day rollover, was played end to end before it ran on Reddit.
  • Tests: 27 engine tests (including the solver cross-checked against brute force on 300 random groves) and 38 app tests, plus TypeScript, ESLint and a production build.
  • Developed with Claude Code as an AI pair programmer.

Privacy and moderation

  • Songbranch stores only play progress, votes, ratings, streaks and opt-in choices. Player data expires 30 days after the last play. When builders delete their grove, the post leaves the community and Songbranch deletes what it stored about it; a trigger does the same cleanup when a post is deleted on Reddit.
  • Community groves have no free text and are ordinary posts, so reports and moderator removal work as usual.
  • No personal information, no external requests, no ads, no payments.

Challenges we ran into

  • Honest difficulty. Random groves are either trivial or hopeless. Letting an exhaustive solver judge every candidate fixed that: the whistle count is the proven minimum, and each weekday caps the share of working placements and sets a minimum song length.
  • Posting as the player, the right way. Devvit's rules say shared results must be posted as the user, from an explicit button. Devvit 0.15.3 only allows runAs: 'USER' when devvit.json lists the scopes in asUser, even though the schema text calls that list unused; we confirmed this with Devvit's own config parser and added a test so it cannot regress. In our Reddit playtest, once the player said yes to Reddit's prompt, both the shared result and a community grove were posted under the player's own name. If posting as the player ever fails, the app account posts instead and Songbranch adds "shared by u/name" to keep the credit.
  • Short feed cards. The inline post can be short. The splash keeps the title, the day's details and the Play button in view without scrolling (checked at 375 × 320 and 700 × 512 in the local preview, and in the Reddit feed at 1300 px and 500 px window widths and at a 375 px phone width in Chrome's device toolbar).

Accomplishments that we're proud of

  • Every grove for the next year is generated, solved and checked by tests before a player ever sees it.
  • Rules that fit in four lines still produce Sunday groves where only about 2% of whistle placements work.
  • A community loop that needs no moderator work: daily posts, a vote that shapes tomorrow, player-built groves without free text, and a weekly Community pick.

What we learned

  • At this size, exhaustive search is cheap (a Sunday grove has at most a few thousand placements to try), so "provably fair" costs nothing at runtime.
  • Designing for Devvit's rules from the start (manual share buttons, no free text, data expiry, delete triggers) led to better features rather than fewer.

What's next for Songbranch

  • More guest birds and seasonal groves.
  • A builder hint that explains why a draft is too easy.
  • A weekly flock challenge that adds up the community's streaks.

Built With

Share this project:

Updates

Submission history