Inspiration
During the original Hackathon, one punny idea immediately stuck with us: “Subreddit Surfer”. From there, we explored a range of directions, from fast, mechanically-driven gameplay inspired by Subway Surfers to something more cerebral, inspired by the Wikipedia Game.
In the end, we gravitated toward a puzzle-focused experience that emphasized associations and community discovery. Not long after, the frog theme emerged as a natural (and delightful) contextual layer.
We like frogs.
For this Hackathon, we revisited and revamped Sub-Ribbit Surfer with a renewed focus on community. While our original submission centered around discovering Reddit's interconnected communities, we wanted to take that idea a step further by building a community around the game itself.
Our goal was to make Sub-Ribbit Surfer something players could return to every day, share with fellow Redditors, and build a sense of identity and accomplishment around.
What it does
Sub-Ribbit Surfer is a daily puzzle game built as a Devvit app where players navigate between subreddits by hopping through connections. Think "Six Degrees of Separation" but for Reddit communities.
Each day, a new puzzle is published: given a start subreddit and an end subreddit, find a path between them by choosing from connected communities at each hop.
Players can compete on daily leaderboards, maintain streaks, earn permanent Reddit flair, and share their accomplishments directly in the daily puzzle's comment section.
Explore connections, discover new subs, and become a regular at the pond!
What's new for this Hackathon
We've revamped Sub-Ribbit Surfer to make the experience more social, rewarding, and deeply integrated with Reddit itself.
Daily streaks
Players now build streaks by completing consecutive daily puzzles. Streaks encourage players to return to the pond each day and give them a sense of progression beyond their individual puzzle scores.
Each daily completion counts once, and missing a day resets the streak. Streaks are also incorporated into shareable results and unlock new community flair.
Community flair and progression
We've introduced a permanent progression system that rewards participation, skill, and consistency through frog-themed Reddit user flair:
- Tadpole — Every frog starts somewhere.
- Perfect lily — Complete a puzzle in the optimal number of hops.
- Croak hat trick — Maintain a 3-day streak.
- Fastest legs — Earn a top-10 finish.
- Pond regular — Maintain a 7-day streak.
- Lily legend — Maintain a 30-day streak.
Flair progression only moves upward, so players never lose their highest earned title, even if they break a streak.
These titles aren't confined to the game: they are reflected in players' actual Reddit user flair, allowing them to showcase their accomplishments and build an identity within the community.
Social sharing and discussion
We've brought the post-game experience directly into Reddit's comment section.
Players can share spoiler-free results with a single click, including their starting and ending communities, hops against par, completion time, current streak, and earned flair.
By limiting sharing through the app to one comment per player per day, we aim to encourage meaningful participation without overwhelming the discussion.
Players can celebrate their accomplishments, compare results, and engage with one another without spoiling the puzzle for those who haven't played yet.
A shared daily experience
Each day's puzzle is now automatically published as its own Reddit custom post, giving players a dedicated gathering place to play, compete, and discuss the same challenge.
We've also introduced a lightweight, revisitable tutorial to help new players understand how subreddit connections work, making the game more approachable for newcomers to the pond.
Together, these changes transform Sub-Ribbit Surfer from an individual puzzle experience into a shared daily ritual.
How we built it
1. Graph Construction — Mapping Reddit's Subreddit Network
The game is powered by a graph of subreddit connections stored in Redis.
- ~600 hand-curated seed subreddits across 35 categories ensure broad, balanced coverage.
- Crawling via BFS: For each subreddit, we discover connections from three sources: sidebar descriptions (r/ mentions), Community List Widgets (mod-curated related-sub lists via
reddit.getWidgets()), and hot posts (titles, bodies, and cross-post URLs). Every discovered subreddit is validated through Devvit's Reddit API — it must be public, non-NSFW, have 5k+ subscribers, and contain no blocked keywords. - Chunked execution: To avoid server-side execution timeouts, the full graph build is broken into scheduled chunks. Each job processes multiple subreddits, saves progress to Redis, and schedules the next chunk. Category-aware round-robin ensures diverse coverage.
- Weekly rebuilds: The entire graph is rebuilt from scratch every week via Devvit's scheduler, keeping subreddit data and connections fresh.
- Result: A graph with thousands of subreddits and tens of thousands of bidirectional connections, built from the relationships that Reddit's communities have established themselves.
2. Puzzle Generation — Finding Interesting Paths
Not every pair of subreddits makes a fun puzzle. The generator ensures quality through multiple filters:
- Bidirectional BFS finds optimal paths between random pairs of subreddits.
- Yen's K-shortest paths finds alternative routes, so players have meaningful choices instead of a linear corridor.
- Quality scoring: Evaluates hop count, number of alternative paths, branching factor, and single-hop penalties (linear forced-choice sections). Puzzles that don't meet thresholds are rejected.
- Puzzle pool: Batch-generated puzzles are quality-ranked in a Redis sorted set and drawn highest-quality first to determine the puzzle of the day.
- Automated publishing: A scheduled job publishes each day's puzzle as a new Reddit custom post at 08:00 UTC, creating a fresh space for daily gameplay and community discussion.
3. Game Client
The client is vanilla TypeScript + CSS bundled with Vite into Devvit webviews:
- Interactive onboarding: A one-time, revisitable explanation of how neighboring subreddit connections work.
- Animated intro: Countdown sequence with a path reveal between start and end subreddits, setting the stage before each puzzle.
- Dynamic lilypad layout: Grid algorithm calculates optimal placement based on viewport size, with auto-scaling text and random jitter for a natural feel.
- Progress trail: A live icon bar tracking visited subreddits, giving players a visual sense of their journey toward the goal.
- Power-ups:
- Hint Bug: Appears when struggling; eliminates non-optimal connections.
- Blink Beetle: Teleports you to a random node! Chance of appearing increases with hops over the optimal path.
- Scoring: Logarithmic decay formula penalizing extra hops and time, with a 5-star rating system.
- Audio: Custom
AudioManagerusing Web Audio API for contextual sound effects.
4. Player Progression and Social Integration
Our revamped progression system extends the experience beyond individual puzzle sessions.
- Daily completion tracking: Streak calculations account for consecutive puzzle days and prevent repeated completions from inflating progression.
- Persistent achievements: Players retain their highest earned flair, rewarding both competitive performance and long-term participation.
- Reddit flair integration: Earned titles are synchronized with actual Reddit user flair, making in-game accomplishments visible throughout the community.
- Spoiler-safe sharing: Results are formatted into shareable cards that players can post directly to the daily puzzle's comments or copy to their clipboard.
- Duplicate prevention: Players can share through the app once per puzzle day.
5. Devvit Platform Usage
We've upgraded to Devvit 0.15.3 and expanded our use of Reddit's native platform capabilities.
- Redis: Used to store the graph, puzzle pool, per-post leaderboards, game state persistence, player progression, user avatar caching, and subreddit info caching.
- Scheduler: Powers all automation — chunked graph builds, puzzle generation, daily custom post publishing, weekly rebuilds, and replacement puzzles.
- Reddit API: Subreddit validation, widget/post scanning for graph building, user avatars, custom post creation, live subreddit info, user flair, and result sharing.
- User-authorized commenting: Allows players to publish their results directly to the daily puzzle's comment section as themselves.
- Menu items (mod-only): Graph building, puzzle pool management, scheduler controls, and testing utilities.
6. End Screen
Our victory screen brings together personal accomplishments, friendly competition, and community discovery through four tabs:
- Stats: Score, rating, personal progression, and earned flair.
- Leaderboard: Daily rankings with a sticky "find me" card.
- Graph: Canvas visualization of the player's path versus the optimal path.
- Discover: Community information and a top post from the destination subreddit, along with a call to action to visit it!
Players can also share their results directly with the community or copy them to share elsewhere.
Challenges we ran into
One of our early challenges was understanding the scope of data available to us through Devvit and determining how to best leverage it. Clarifying those constraints took time and influenced several design decisions along the way.
Defining what actually makes a “good” puzzle required experimentation, particularly in establishing rules for graph construction and generating puzzles dynamically from that structure. Balancing scores, power-ups, and progression was also a delicate balancing act.
On the presentation side, visualizing subreddit maps in a way that was readable, intuitive, and performant required several iterations. Ensuring a consistent experience across platforms introduced additional technical hurdles, from dynamic pad layouts and viewport-aware scaling to font rendering and audio playback.
For this iteration, we also had to think beyond the gameplay itself. How do we reward players for returning without making missed days feel overly punishing? How do we encourage competition while still rewarding casual participation? How do we make sharing fun without cluttering the comment section or spoiling the daily puzzle?
These questions shaped our approach to permanent flair progression, daily streaks, and spoiler-free sharing.
Accomplishments that we're proud of
We're especially proud of developing a distinctive content generation model that keeps the experience fun and fresh. Rather than relying on manually authored puzzles, Sub-Ribbit Surfer draws its content from the relationships Reddit communities have organically created.
With this iteration, we're particularly excited about how much more connected the game feels to Reddit itself. Player accomplishments now extend beyond the game through native user flair, shared results, and daily discussion threads.
We wanted to build something that didn't just live on Reddit, but felt like it belonged on Reddit.
And, of course, we're still very proud of our original frog-themed music, which adds energy, personality, and charm to the overall experience.
What we learned
We learned that a tight timeline can be a creative superpower. Rapid iteration pushed us to make decisions quickly, trust our instincts, and focus on what truly mattered.
Revisiting the project also reminded us that a fun gameplay loop is only one part of building a lasting experience. Giving players reasons to return, celebrate their accomplishments, and connect with one another can be just as important as the puzzle itself.
More importantly, we realized how much we enjoy building together; riffing on ideas, embracing the weird ones, and pushing each other toward something better.
And yes, the real win might actually be the friend (lover) we made along the way.
What's next for Sub-Ribbit Surfer
- Community Improvements
- Expanded achievements and collectible flair
- Community-wide challenges and milestones
- More opportunities for players to interact and celebrate accomplishments
- The Hop Shop (Customization)
- Core Gameplay Improvements
- New Bugs (Power-Ups)
- Scoring balance adjustments
- HUD / Tracker Widget adjustments
- Post-Game Improvements
- Map Stepper
- Links to intermediate subreddits
- Improved map presentation
- Additional social sharing formats
- Core Improvements
- General feedback, animations, and art polish
- Graph criteria expansion
- Better NSFW classification
- Telemetry and aggregate insights
See you at the pond! 🐸