Inspiration

What it does

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

What's next for KarmaForge · Daily Thread Architect

Public Open-Source Repository (MIT): https://github.com/Qidianyan/karmaforge-reddit-daily
Release v6.0 (Full 1080p Studio Gameplay Demo MP4 + Synced SRT): https://github.com/Qidianyan/karmaforge-reddit-daily/releases/tag/v6.0
Registered Reddit Builder: u/Mindless-Past7833 · Devvit App Slug: karmaforge-daily

Inspiration

The best moments on Reddit happen late at night in dark mode: one unexpected question snowballs through four subreddit comments into an unforgettable punchline. We built KarmaForge as an unmistakably Reddit-native 60-second daily causal thread puzzle inside a Devvit Web Interactive Post — combining zero-friction daily play, Iron Forge hardcore mastery, live Global Crowd Consensus % benchmarks, and a full playable Community Forge UGC playground where Redditors author, play, upvote, and earn Creator Karma on each other's puzzles.

What it does

KarmaForge (V6) turns Reddit’s comment-chain culture into a daily community ritual resetting every UTC midnight (YYYY-MM-DD):

  • Dark Terminal Geek × Reddit Flame Orange Board & 375px First-Fold Ergonomics: Built natively for late-night Redditors (#101010 obsidian charcoal, #191918 cards, #EFECE6 warm ivory text, #FF4500 Reddit flame orange, #36C96E emerald exact-lock, #F5B731 amber order warning, crisp 1px #2D2C2A borders). Responsive @container styling keeps the Opening Post + Slots #1–#3 visible above the fold on 375×667 mobile with a sticky thumb action bar and zero horizontal overflow (320px–1920px).
  • 3-Second Zero-Friction Micro-Guidance + Exact Lock Rebound & Forge Sparks: New players immediately see a compact warm-gold micro-guide (Tap card or press 1-6 to link) that auto-dismisses on first placement. Press 1–6 to slot cards at speedrun pace, Enter to forge, Z to undo, H to reveal Top Comment clues, ↑/↓ to navigate unlocked slots, or drag & drop (plus touch-friendly quick-swap arrows). Verified exact locks trigger a crisp mechanical rebound pulse with amber/emerald forge sparks and browser-native procedural Web Audio keycap clicks and anvil chimes.
  • Iron Forge Hard Mode (3 Tries · Strict Clues · +25% Karma): Toggle Iron Forge before attempt #1 to lock into 3 max tries, strict clue discipline (clues disabled on the final attempt), a +25% Karma bonus, an upgraded ⚒️ IRON FORGE comment crest, and dedicated placement in the Iron Forge Hall leaderboard.
  • Global Crowd Consensus % Histogram: Every Victory modal renders a deterministic Bayesian-prior + live Redis attempt histogram (Sharper than XX% of r/KarmaForge) showing exact try-count distributions across the community alongside the player's highlighted bar and percentile badge.
  • Full Playable Community Forge UGC Playground + +50 Creator Karma: Switch to Community Forge to compose a live-validated 4-Link + 2-Troll puzzle in 30 seconds (POST /api/community/puzzles) and cast persistent upvotes for tomorrow's official daily edition (POST /api/community/vote). Click Play Thread on any community card to launch a full playable UGC board immediately (/api/community/play/:id, /guess, /hint, /share) — tracking real plays, clears, and clearRatePct, awarding +50 Creator Karma to the author on verified clears, and generating spoiler-free u/<author> share cards with zero pollution to Daily streak or Daily leaderboard state.
  • 3-Tab Live Ranks & Forgers Terminal: Live standings across Daily Speedrun, Iron Forge Hall, and Top Forgers (Creator Karma from +10/vote and +50/clear), plus spoiler-free shared thread comments.
  • 60 Handcrafted Reddit-Native Editions + 60-Day Streak Heatmap + Pixel Badge Wall: 60 deeply researched puzzles spanning 8 classic Reddit communities (Science, Retro Tech, Cooking, Cinema, Worldbuilding, Nature, History, Internet Culture), deterministic 365-day UTC calendar, filterable 60-Day Archive Streak Heatmap, 5 subreddit flairs (Lurker → Front Page Sage), 3 bespoke 16-bit retro pixel badges, and 1-click spoiler-free comments wired to reddit.submitComment.

How we built it

  • Devvit Web v0.15 Architecture: Validated strictly against @devvit/shared-types v0.15.4 (devvit.json) declaring the tall inline custom post webview (dist/client/index.html), bundled CommonJS server (dist/server/index.cjs), Redis + Reddit API permissions, moderator menu trigger, and UTC midnight cron scheduler (0 0 * * *).
  • Shared Redis / Local Dual Persistence (KvStore): Both src/server/index.ts (Devvit Redis + reddit.submitComment) and src/server/server-local.ts run the exact same Express service layer covering daily game state, Iron Forge flags, live Crowd Consensus move histograms, 3-tab Ranks & Forgers leaderboards, spoiler-free thread shares, and isolated playable Community Forge UGC sessions (cf:play:<puzzleId>:<user>).
  • Modern Web Standards & Mechanical QA: CSS @container queries, native <dialog closedby="any"> modals, :user-invalid/:user-valid deferred validation, color-scheme: dark, and prefers-reduced-motion safe animations. Verified with 34/34 Vitest unit & HTTP integration tests, Playwright E2E across 760×620 & 375×667, and 8-viewport Chromium sloplint --render (0 FAIL).

Challenges we ran into

  • Isolating Playable UGC Sessions from Daily Streak & Leaderboard State: Namespacing UGC state keys (cf:play:<puzzleId>:<user>) and deduplicating per-user clear credits kept +50 Creator Karma and clearRatePct strictly accurate and replay-proof without mutating daily attempts or streaks.
  • Preventing Race Conditions & Focus Collisions Under High-Speed Keyboard Play: Guarding onKeyDown target types, monotonic fetch sequence IDs (communitySeqRef), and deterministic restoration across UTC rollover kept speedrun controls rock-solid.
  • Dark-Mode WCAG Contrast & 375px First-Fold Density: Pairing obsidian #101010 text on #FF4500 (5.53:1) and #36C96E (9.1:1) while tightening vertical spacing kept Opening Post + Slots #1–#3 above the fold on 375px mobile with 0 FAIL across all 8 viewports.

Accomplishments that we're proud of

  • 60 handcrafted Reddit-native daily editions across 8 iconic subreddits with deterministic 365-day UTC scheduling and a 60-Day Archive Streak Heatmap.
  • Complete Playable UGC Loop directly inside the Devvit post with real play/clear analytics, +50 Creator Karma, and spoiler-free u/<author> share cards.
  • 34/34 passing automated Vitest tests, full Playwright E2E coverage, zero external CDN dependencies (100% Devvit CSP-safe), and 0 FAIL across 8-viewport Chromium mechanical QA.

What we learned

  • Great Reddit daily games feel like native subreddit rituals, not generic web embeds: spoiler-free comment grids, subreddit flairs, Iron Forge bragging rights, and community-authored puzzles turn a 60-second solo puzzle into a daily comment-section conversation.

What's next for KarmaForge · Daily Thread Architect

  • Subreddit-specific seasonal puzzle packs curated directly by moderators from top-voted Community Forge entries, head-to-head daily speedrun duels between Redditors, and multi-subreddit Weekly Forger Championships.

Built With

Share this project:

Updates

Submission history