Inspiration
Cricket is built for daily rituals: one tense final over, six deliveries, and a target everyone argues about afterward. We originally built CricketStreak as a lightweight 3D WebGL cricket game for YouTube Playables (and playable on Patch).
When we saw Reddit's Game of the Day Hackathon, we knew CricketStreak could become something far more social as a native Reddit Daily Game. Instead of playing an isolated arcade session, an entire subreddit could step up to the crease against the exact same 6 balls every day, compare ball-by-ball stats, talk trash in the comments with spoiler-free emoji scorecards, and defend a multi-day streak with live Reddit flair.
What it does
CricketStreak: Daily Over brings full 3D cricket straight into the Reddit feed via Devvit Web:
- Live 3D Inline Feed Card: Right inside the Reddit post card, a live WebGL stadium preview runs in demo mode (with a 600ms dwell timer and automatic still-card fallback for reduced motion or low-end mobile devices) showing today's chase target, player count, your rank, and streak.
- Same 6 Balls for Everyone (00:00 UTC): Every day at midnight UTC, a scheduled Devvit cron creates a fresh Daily Over post. A deterministic FNV-1a + mulberry32 PRNG generates the exact same target (12–24 runs) and sequence of deliveries (Length, Yorker, Bouncer, Slower Ball, Wide) for every player—even staying 100% synced with the original YouTube Playable.
- One Ranked Try, Infinite Practice: Your first attempt is locked onto the daily Redis leaderboard; after that you can replay as practice or jump into Rush and Sudden Death modes anytime.
- Deep Reddit Community Integration:
- One-Tap Emoji Scorecards: Post your ball-by-ball over directly to the Reddit thread as a comment.
- Pinned Daily Recaps: When the next day's post goes live, the app automatically posts and pins a recap of yesterday's podium, chase rate, hardest delivery, most-hit ball, and winning over.
- Head-to-Head Challenge Links: Share a link so friends bat the exact same over against your live ghost scorecard.
- Ball-by-Ball Subreddit Field Stats: After batting, see stacked outcome bars showing how the entire subreddit fared on every single delivery.
- Automatic Streak Flair & Modmail Reminders: Keep your daily streak alive to unlock
🔥 N-day streakuser flair (never overwriting custom flair), unlockable team kits & shirt numbers, and optional modmail reminders 6 hours before a 3+ day streak expires.
How we built it (Porting from YouTube Playables to Devvit Web)
- Zero-Bloat Hand-Written 3D WebGL Engine: We ported our custom vanilla WebGL engine untouched—complete with dynamic cameras, golden ball trails, animated LED perimeter boards, crowd audio, and Blender/MakeHuman-generated 3D player meshes with mobile LODs.
- Clean Platform Abstraction: Replaced the YouTube Playables SDK (
yt.js) with a typed Devvit Web platform layer (src/client/platform.ts) communicating with our Hono + tRPC v11 serverless backend (src/server/). - Shared Deterministic Rules:
src/shared/daily.tskeeps the daily seed, delivery mix, scoring, and emoji formatting identical across client, server, and the original YouTube Playable (verified by Vitest unit tests). - Serverless Persistence & Automation: Powered by Devvit Redis (sorted-set leaderboards, per-day first-attempt records with 60-day retention, user saves & streaks) and Devvit Scheduler (
0 0 * * *daily post + recap,0 18 * * *opt-in streak reminders).
Challenges we ran into
- Fast Feed Loading & Mobile Performance: Running 3D WebGL inside an inline Reddit feed card can easily stall scrolling on budget phones. We split the entrypoints (
splash.htmlvsgame.html), added a 600ms intersection dwell timer before booting the preview engine, built adaptive quality tiers + LOD player meshes, and paused rendering immediately when offscreen or expanded. - Cross-Platform Determinism: Guaranteeing that the exact same 6 deliveries and target appear on both YouTube Playables and Reddit required matching our 32-bit FNV-1a hash and mulberry32 stream bit-for-bit across JavaScript and TypeScript, locked down with automated tests.
- Respectful Reddit Automation: Ensuring streak flair never clobbers a user's existing subreddit flair, capping modmail reminders to opt-in users with 3+ day streaks (at most once every 3 days), and archiving sent reminder threads cleanly.
Accomplishments that we're proud of
- Porting a full 3D WebGL sports game with zero 3D framework overhead into a snappy, mobile-friendly Reddit Interactive Post.
- Transforming a solo arcade playable into a deeply social Reddit-native daily game with pinned recaps, ball-by-ball field analytics, ghost friend challenges, and streak flair.
- Maintaining byte-for-byte deterministic daily overs shared across YouTube Playables and Reddit.
What we learned
- Designing for the Reddit feed first (instant visual hook, sub-second first paint, one-tap expand, and frictionless comment sharing) makes a huge difference in how naturally players engage and return every day.
- Devvit Web + tRPC v11 + Redis + Scheduler is a remarkably clean stack for turning existing web/HTML5 games into community-driven daily experiences.
What's next for CricketStreak: Daily Over
- Weekly subreddit tournaments and seasonal championship badges.
- Community-voted pitch conditions (spin-friendly turners, green seamers, night finals) and bowler variations.
- Expanding cross-subreddit leaderboards so cricket communities can compete head-to-head.