Inspiration
Driftlight started as a small, calm Canvas 2D puzzle: you guide a paper lantern down a dark river and collect fireflies. Reddit's daily-game format fit it well. A seeded river can be the same for everyone each day, so players can compare runs in the comments.
What it does
Driftlight: River of the Day runs inside a Reddit post.
- Same river for everyone: every UTC day brings a new river layout, shared by all players.
- 3 lanterns per day: drag lily pads to bend the current, watch the dashed path preview, tap RELEASE, then use up to 3 gusts (left / right) to reach fireflies.
- Score: fireflies from all 3 lanterns, plus a bonus for gusts you didn't need.
- Streaks and a daily board: personal best, daily streak and Top drifters today, without leaving the thread. After the scored run, PRACTICE mode is open.
- Share in comments: one optional tap posts your score breakdown to the thread.
How we built it
This is a port of our own game Driftlight (we own the IP). It was rebuilt for Devvit Web during the Submission Period:
- Shared daily river: a deterministic UTC daily seed, so client and server build the same 3-lantern river.
- Server + Redis: a TypeScript backend on Devvit Web stores daily scores, streaks and the leaderboard in Redis. The server replays each run to compute the score, so the client can't just send a number.
- Daily posts: a scheduler opens the new river post every day at 00:01 UTC. There is also a moderator menu action.
- Privacy: no outbound HTTP, no third-party SDKs, ads, telemetry or external links. Player data expires after 30 days, and an hourly sweep plus a post-delete trigger clean it up.
- Reddit layouts: a custom launch screen and non-scrolling layouts for desktop, mobile portrait and the 512 px inline post view.
Challenges
- Making the scheduler reliable: an early build missed one daily post. We fixed it and checked the logs for the following days.
- Fitting a touch puzzle into the small inline post view without scrolling.
- Moving score calculation to the server without making the game feel slower.
What we learned
Devvit Web's server, Redis and scheduler are enough for a full daily game loop. A daily seed is a simple way to make a single-player puzzle feel social.
What's next
More river types and themed weeks, plus a weekly board built on the same daily seed.
Built With
- devvit
- esbuild
- html5
- javascript
- node.js
- redis
- typescript
- vite