One question a day, five things to rank. You score by thinking like the crowd, not by being right. Crowd Line is a daily ranking game that runs inside a Reddit post. Every day at 00:00 UTC a new post asks one question with five things to rank, like breakfasts or pizza toppings, and you put them in order and lock it in. The reveal slides the crowd's order in beside yours, and Crowd Sync shows how many of the ten pairs you ordered like everyone else. Tomorrow's post opens with yesterday's final verdict, so the argument in the comments has somewhere to land.

Play it: https://www.reddit.com/r/CrowdLine/ · Watch it: https://youtu.be/9uLr_PeSCSc · App: https://developers.reddit.com/apps/crowd-line

The problem and our solution

Most daily games are puzzles with one right answer: you solve them alone, post a score, and the thread has little to argue about. Reddit's best threads are the opposite. They are about opinions, and the fun is seeing where everyone else landed.

Crowd Line makes the crowd the answer. There is no correct order for breakfasts, so the only way to score is to predict the people around you. Every day ends in a reveal that shows exactly where you and the crowd split, a share line built to start an argument, and a verdict the next morning that settles it. Players write tomorrow's questions and moderators approve them, so the community becomes the game's author as well as its audience.

It is honest with small crowds, which matters for a new subreddit. No vote is ever invented: the first player of the day "sets the line" and sees their score once others play, early crowds say how many have played, and yesterday's verdict gives a newcomer something complete to look at straight away.

Reddit Developer Platform features

Feature What it does in Crowd Line
Devvit Web with the React template A Hono server and two web views built from the official template
Inline and expanded entry points A light feed view in the post; the full game in expanded mode
Direct Launch The game opens straight from discovery surfaces
Custom posts One post per day with post data, a text fallback and entry styles
Scheduler Opens each day's line at 00:00 UTC and closes yesterday's with its verdict
Redis One-vote gate, anonymous daily tally, streaks, prompt queue, proposals
App comments The app pins "Where did the crowd get it wrong?" every day
User actions "Post it as a comment" and "Join" run as the player, only when pressed
User flair "📏 9-day streak" or "📏 Crowd whisperer"
Menu items and forms Moderator tools and "propose a prompt"
Client effects Forms, toasts, navigation, share sheet, login prompt
Triggers First line on install; clean-up when a post or the pinned comment is deleted
Subreddit settings Moderators can switch streak flair off
Devvit Journeys Ready, start, progress, swaps, and the end with the score
Logged-out support Play and see the crowd without an account, then log in to count it
Snoovatars Your avatar on the result card

Devvit Web with the React template

Crowd Line started from the official reddit/devvit-template-react, copied file by file: a Hono server and two Vite-built web views on Devvit Web 0.15.4. Everything both sides need (scoring, the prompts, API types with runtime checks) lives in src/shared.

Inline and expanded entry points

The feed view (inline.html) is plain TypeScript, about 20 KB of script, and paints from post data before any request: the question, the five items, players so far and one button; after you play, your Crowd Sync and the crowd's current number one. It never scrolls or captures gestures, so the feed scrolls past it. "Rank them" calls requestExpandedMode to open the React game (game.html), where everything fits a phone screen without scrolling.

Direct Launch

The _direct_launch entry point is the game itself, so players arriving from Reddit's discovery surfaces land straight on today's board.

Custom posts

Each day's post comes from submitCustomPost: the title "Crowd Line #8: Rank these breakfasts, best to worst", the question and items as post data (well under 2 KB), and a Markdown text fallback for old Reddit and search. The entry point's styles set the paper background for light and dark mode, so the post does not flash while it loads.

Scheduler

A cron task at 00:00 UTC opens the day's line from the prompt queue and closes yesterday's, storing its final verdict. Opening is idempotent per UTC day, so the cron task, the install trigger and a moderator's "post now" can never open two lines on one day.

Redis

hSetNX on the day's vote hash is the one-vote gate: atomic, so two tabs or a double tap count once, and a failed tally write rolls it back. The crowd is an anonymous tally of how many players chose each order. Five items have only 120 possible orders, so the crowd's order, the placement bars, percentiles and the most divisive item cost the same for ten players or a million. Redis also holds streaks, the prompt queue (a sorted set) and community proposals, with expiry on personal data.

App comments

Each new post gets the app's own comment, "Where did the crowd get it wrong?", distinguished and stickied so the day's argument has a home.

User actions

"Post it as a comment" runs as the player (runAs: 'USER') and only when pressed. A bare score replies to the pinned comment, as Reddit's guidelines ask; with the player's own take it goes top level to start the argument. The score text is always built on the server from the stored vote. "Join r/..." calls subscribeToCurrentSubreddit.

User flair

After a vote the app sets "📏 9-day streak", or "📏 Crowd whisperer" for an average sync above 80 over the last 7 days. It never replaces flair a player chose, and only calls Reddit when the text changes.

Menu items and forms

Moderators get three subreddit menu items: post today's line now, reorder upcoming prompts (up, down, run next, remove), and review community prompts. Each answers with a form through UiResponse, and each submission answers with the next form, so a moderator can work through a whole queue in one go. Everyone gets "propose a prompt".

Client effects

showForm collects proposals and the optional take for a comment, showToast confirms each action, navigateTo links an old post to today's line, showShareSheet shares the score line, and showLoginPrompt lets logged-out players count their vote.

Triggers

onAppInstall fills the prompt queue and opens Crowd Line #1 at once, onAppUpgrade re-checks the queue, onPostDelete deletes a removed daily post's content and votes, and onCommentDelete stops replying to a deleted pinned comment.

Subreddit settings

"Show streaks as user flair" lets moderators turn the flair off for their community.

Devvit Journeys

App.Ready when the game is interactive, Journey.Start on the first committed move, Journey.Progress as cards are placed, Journey.Interaction for each swap (drag, tap or keyboard), and Journey.End with complete and game { win, score }, where a win is a sync of 70 or more. The analytics package ships its routes as an Express router and the template server is Hono, so the app serves the same paths with small Hono routes.

Logged-out support

Without an account you can rank and see the reveal, scored against everyone else; nothing is stored. The card says the vote did not count and offers Reddit's login, and the ranking is kept so it is waiting after logging in.

Snoovatars

The result card shows the player's snoovatar from the client context next to their username, with a drawn monogram when there is none.

Scoring in one paragraph

Crowd Sync is 10 points for each of the 10 item pairs you order like the crowd (Kendall tau distance). The crowd's order is a Borda count over every vote, ties broken by first places. You are never scored against yourself, and with fewer than 10 others the crowd is labelled "Early crowd: N players so far". Your hottest take is the item where you and the crowd differ most; the most divisive item is the one the crowd both loves and hates.

Architecture

  Reddit app or reddit.com
  +--------------------------------+          +-----------------------------------------+
  | Post in the feed               |  fetch   | Devvit server (Hono)                    |
  |   inline.html  plain TS, 20 KB |--------->|  /api/inline  /api/state                |
  | Expanded view / Direct Launch  |          |  /api/vote  /api/preview  /api/comment  |
  |   game.html    React           |--------->|  /api/subscribe  /api/propose  ...      |
  |   showForm, toasts, login,     |          |  /api/telemetry/journey/*  (Journeys)   |
  |   share sheet, navigateTo      |          |                                         |
  +--------------------------------+          |  /internal/scheduler/daily-line  <------+-- cron 00:00 UTC
                                              |  /internal/menu/*, /internal/form/* <---+-- moderator menu
                                              |  /internal/triggers/*  <----------------+-- install, deletes
                                              +-----------+-------------------+---------+
                                                          |                   |
                                                  Redis   v                   v  Reddit API
                                   votes (hSetNX gate), tally          posts, pinned comment,
                                   per day, players, queue,            user comments, subscribe,
                                   proposals                           flair

84 unit tests and 22 Playwright runs (phone and desktop) cover the game end to end, including axe accessibility scans in light and dark mode.

Built With

Share this project:

Updates

Submission history