Inspiration In an era defined by constant notifications and digital noise, true focus has become a rare superpower. We wanted to build something that wasn't just another distraction, but a tool to test and train the human internal clock. FOOCOS was born from a simple question: Can you feel exactly when 5.000 seconds have passed?
What it does FOOCOS is a high-precision timing game built natively for Reddit using the Devvit platform. The premise is deceptively simple:
- The Target: A timer counts up from 0.000s. Your goal is to stop it exactly at the target time (default: 5.000s).
- The Challenge: Users can toggle "Blind Mode", where the timer visually disappears after 50% of the duration. The player must rely entirely on their internal rhythm to stop the clock.
- God Mode: If a player stops the timer within 0.010s of the target, the game triggers a special "God Mode" visual effect and Reddit Toast notification, celebrating perfect synchronization.
How we built it We utilized the new Reddit Devvit (Web View) capability to bring a full React application directly into a Reddit post.
- Core Logic: We avoided standard
setIntervalloops, which are prone to drift. Instead, we built a custom game loop usingrequestAnimationFrameandperformance.now()to ensure millisecond-level accuracy (). - UI/UX: We designed a custom "Dark Zen" aesthetic using pure CSS variables (
--primary-cyan,--danger-red), ensuring the app looks native in Dark Mode while feeling distinct and futuristic. - Feedback: We integrated
@devvit/web/clientto use native Reddit UI features likeshowToastfor instant feedback on wins.
Challenges we ran into The biggest challenge was React State vs. High-Frequency Updates. Updating the DOM every single millisecond can cause "jitter" on lower-end devices. We optimized this by decoupling the visual render loop from the internal logic calculator, ensuring that even if a frame is dropped, the final time calculation remains mathematically precise.
Accomplishments that we're proud of We are particularly proud of the "Blind Mode" implementation. It turns a simple reaction game into a genuine mental challenge. Seeing the "God Mode" badge pop up after a blind guess feels incredibly rewarding.
What's next for FOOCOS We plan to add a Daily Leaderboard using Redis, allowing users to compete for the "Most Focused Redditor" of the day, and "Focus Duels" where two users can compete head-to-head in real-time.
Built With
- css3
- devvit
- node.js
- react
- typescript
- vite
Log in or sign up for Devpost to join the conversation.