Inspiration

Wordle and Connections proved how much Reddit communities love a shared 60-second daily challenge — one puzzle everyone solves on the same day, compares moves on, and shares in the comments without spoiling the board. We wanted to bring that same daily habit to a tactile, glowing optical-physics puzzle designed natively for Reddit Interactive Posts.

What it does

Every day at 00:00 UTC, Prism Path unlocks a fresh, mathematically verified 6×6 light-beam circuit directly inside a Reddit post:

  • Instant Inline Feed Preview: The inline Splash card renders a live miniature of today's glowing puzzle, Par moves, your streak, and how many Redditors have solved today's board before you even tap Play Daily #N.
  • Mirrors & Half-Silvered Prisms: Tap cyan mirrors (/ or \) to rotate 90° and steer beams around obsidian walls. Tap magenta half-silvered prisms to both reflect 90° and transmit straight through, splitting light into dual cyan + magenta rays.
  • Beat Par for 3 Stars: Ignite every crystal simultaneously (⭐⭐⭐ within Par, ⭐⭐ within Par + 2, ⭐ completed).
  • Subreddit Daily Leaderboard & Streaks: Powered by Devvit Redis (zAdd/zRange), ranking Redditors by Stars → Moves vs Par → Solve Time while tracking personal streaks and 3-star perfects.
  • 1-Click Spoiler-Free Comment Sharing: Post your visual emoji replay grid straight into the Reddit thread via reddit.submitComment() (rate-limited to 1 share/day).
  • 7-Day Archive & Unlimited Practice (5×5, 6×6, 7×7): Keep playing after today's daily with Undo, Reset, Hint, and zero-asset Web Audio API harmonic chimes.

How we built it

Built with Devvit Web (@devvit/web, @devvit/start), React 19, Tailwind CSS 4, TypeScript, Hono, and Devvit Redis:

  • Optical Ray Tracer (src/shared/engine.ts): Multi-bounce, beam-splitting ray tracer with loop detection, star calculation, and spoiler-free emoji replay grid generator.
  • Deterministic 365+ Day Generator (src/shared/puzzleGen.ts): UTC-seeded backwards-constructed generator verified by automated unit tests across 365 consecutive daily puzzles plus practice grids.
  • Hono + Redis Backend (src/server/): Server-side anti-cheat solve re-verification (POST /api/complete), daily leaderboards & streaks (GET /api/init), 1-click comment sharing (POST /api/share-comment), moderator menu (Create Today's Prism Path Puzzle), and onAppInstall auto-post trigger.
  • Zero-Asset Visuals & Audio (src/client/): Responsive neon-glass SVG LaserBoard and Web Audio API crystal/glass synth.

Challenges we ran into

Ensuring our deterministic daily generator creates genuinely interesting, non-trivial 6×6 optical puzzles that always start unsolved, use beam-splitting prisms meaningfully, avoid infinite reflection cycles, and solve cleanly at exact Par. We solved this with backwards beam-path construction, directional cycle detection, and an automated 365-day test suite.

Accomplishments that we're proud of

  • 365 consecutive daily puzzles + 5×5/6×6/7×7 practice puzzles verified automatically in under 300ms with 0 TypeScript errors and 0 ESLint warnings.
  • Sub-300 KB total WebView asset footprint with zero external image/audio files for instant loading inside Reddit feeds.
  • Complete Reddit-native loop: inline preview → anti-cheat Redis leaderboard → personal streaks → 1-click spoiler-free comment grid sharing.

What we learned

Crafting crisp inline + expanded Devvit Web interfaces, verifying client puzzles server-side with Hono + Redis, and designing responsive SVG optics that stay readable on both desktop and mobile Reddit clients.

What's next for Prism Path

Weekly subreddit-vs-subreddit optical tournaments, community puzzle editor posts, RGB color-mixing crystal filters, and automated daily scheduled posting.

Built With

Share this project:

Updates

Submission history