▲ 3 r/Devvit

LockedIn: a community prediction app for subs built on Devvit Web

Hi Devvitors, sharing something I just finished: LockedIn, a prediction app built on Devvit Web.

The idea is simple. A mod posts a question with 2 to 4 options and a countdown. Every member locks in one pick while voting is open, and you can't change it once it's in. The whole sub watches the consensus build in real time, with each option filling up by vote share plus percentages and counts. When the timer runs out (or a mod closes it early), a mod resolves the winner or voids it.

What's in it right now:

  • One vote per member, locked in for good, with live results
  • Auto-lock at the deadline, plus early lock, resolve, and void with a final tally snapshot
  • Themes (Sports, Movies & TV, Gaming, Other)
  • Optional spoiler shield and karma / account-age gating for who can vote
  • Light and dark Reddit theme support

It's Devvit Web with a React + Vite webview and a Hono server. One thing that tripped me up for a while: context.postId doesn't get passed to form-submit handlers, so the menu handler stashes the target post in Redis and the submit handler reads it back.

You can install it from the App Directory here: developers.reddit.com/apps/lockedin-app

Would love feedback. I plan to open-source it in future once I fully understand the implications and possibly get some traffic on it.

u/coloncapitalp — 1 month ago