Inspiration
The best daily games take two seconds to understand and two minutes to obsess over — yet most daily web games live on isolated sites where players copy-paste emoji grids out of context. Reddit is already the world's best home for daily rituals, friendly rivalry, and community-created challenges. We built SharpCut Daily to feel impossible to replicate outside Reddit: slicing asymmetric silhouettes with one laser blade, then immediately seeing how the rest of the subreddit sliced the exact same shape.
What it does
SharpCut Daily runs natively inside Reddit posts using Devvit Web Interactive Posts with dual Inline + Expanded views:
- Zero-Friction Inline Feed Preview (
splash.html): Shows an animated laser sweeping across today's silhouette, live solver counts and top scores from Devvit Redis, and your daily streak with zero inline scroll-traps. One tap launches Expanded Mode (requestExpandedMode). - 3 Escalating Daily Rounds (Fresh every 00:00 UTC):
- Round 1 · Pure Half: 1 laser slice to eyeball an exact 50% / 50% split.
- Round 2 · Double Blade: 2 slices across concave silhouettes for 33% / 33% / 33% (or 50% / 25% / 25% on alternating days).
- Round 3 · Core Dodge: 1 slice for 50% / 50% or 70% / 30% while routing your blade around a crimson Forbidden Core Pin.
- Community Ghost Blades & Exact Par Line: Toggle Ghosts to overlay real Redditors' cut lines stored in Devvit Redis directly on the canvas, and toggle Par Line to reveal the mathematically optimal cut computed via angular binary search.
- Native Reddit Social Loop: One-click spoiler-free Markdown score card posted straight to the thread comments (
reddit.submitComment), live 6-band Community Precision Curve, Snoovatar Top Blades leaderboard, 7-day Archive, and Endless Practice with instant Retry. - Community Shape Forge (UGC -> Live Interactive Post): Sketch any custom simple polygon (3–20 vertices with live overlap validation), optionally place a Forbidden Pin, pick target ratios & palette, and publish directly to the subreddit via
reddit.submitCustomPostas a brand-new live Interactive Post with its own Redis leaderboard and Ghost Blades! - Automated Daily Publishing: A Devvit Scheduler cron (
0 0 * * *) automatically posts a freshSharpCut Daily #NInteractive Post every midnight UTC (live inr/sharpcut_daily_dev).
How we built it
- Frontend: React 19, TypeScript (strict), Tailwind CSS 4, Vite 8, a 60fps high-DPI HTML5 Canvas slicing studio (spring piece separation, spark bursts, S/S+ confetti), and a zero-dependency Web Audio API procedural sound synthesizer.
- Shared Exact Geometry Engine (
src/shared/geometry.ts): Used on both client and server (server-side anti-cheat re-scoring!). Implements a Jordan-curve edge-graph half-plane decomposition algorithm to split arbitrary convex and concave polygons into bridge-free sub-polygons, plus scanline interior label placement so percentages always stay inside curved shapes. - Backend (
src/server/*): Hono serverless API on@devvit/web/serverusing built-in Redis sorted sets & hashes,reddit.submitCustomPost,reddit.submitComment,reddit.getCurrentUsername,reddit.getSnoovatarUrl,onAppInstall, moderator menu items, and daily UTCscheduler— zero external API keys or databases.
Challenges we ran into
- Bridge-free concave polygon splitting: Standard Sutherland–Hodgman leaves zero-width bridges when slicing concave crescents or arches into 3+ pieces. We built an exact crossing-pair cycle walker with deterministic epsilon vertex protection, verified by automated unit tests asserting
< 1e-3area conservation. - Guaranteeing solvable Round 3 pin placements: Automated testing caught that placing a pin at a symmetric centroid blocks all 50/50 cuts. Our full-catalog test suite mathematically verifies all 24 handcrafted silhouettes pass
isSimplePolygonand admit>= 98.5%pin-dodging solutions for both 50/50 and 70/30 targets. - Devvit inline compliance & mobile ergonomics: Strictly isolated pointer capture to Expanded Mode to eliminate feed scroll-traps, and designed responsive mobile/desktop HUDs tested at both 390px and 1024px viewports.
Accomplishments that we're proud of
- 100% live end-to-end verification in public subreddit
r/sharpcut_daily_dev: automated midnight UTC Scheduler post (Daily #36), live Redis streaks & leaderboards, user-authored spoiler-free score comments, and a player-forged UGC post (Community Cut: "Stepped L-Blade"). - Zero external API keys or databases — pure Devvit Web + Redis + Web Audio + Canvas.
- 7/7 automated geometry tests passing, 0 TypeScript errors, 0 ESLint warnings.
What we learned
Designing natively for Reddit turns a solitary daily puzzle into a shared subreddit moment — lightweight inline previews paired with full-gesture expanded canvases make the feed-to-game transition seamless.
What's next
Weekly subreddit tournament cups, community-voted Featured UGC shapes promoted automatically into the Daily rotation, and streak-based subreddit user flair rewards.
Testing Instructions for Judges
- Open the live post SharpCut Daily #36 (
https://www.reddit.com/r/sharpcut_daily_dev/comments/1ydvwa7/sharpcut_daily_36_can_you_nail_5050_in_one_slice/) in public subredditr/sharpcut_daily_dev. Notice the animated inline preview (scrolls smoothly with zero scroll-trap). - Click "Slice Today's Puzzle ->" to enter Expanded Mode and play Rounds 1–3. Toggle Ghosts and Par Line after slicing.
- On Summary, view the Precision Curve & Top Blades leaderboard, and click "Post Score to Comments" to share a spoiler-free Markdown score card.
- Explore Archive (past 7 days + Practice Studio with Retry) and Forge (draw a custom polygon & click "Post to Reddit" — or play our live UGC post
Stepped L-Bladeathttps://www.reddit.com/r/sharpcut_daily_dev/comments/1ye0zpq/community_cut_stepped_lblade_by_uaggravating/).
Built With
- devvit
- hono
- html5
- react
- redis
- tailwindcss
- typescript
- vite
- web-audio-api