Inspiration
As students, we constantly battle with distractions, procrastination, and the pressure to stay productive. Existing focus tools feel passive, they track your behaviour, but they don’t help you improve it. We wanted something fun, competitive, and intelligent. Something that doesn’t just tell you you're unfocused, but nudges you back, visualizes your progress, and turns your attention into skill.
We were inspired by emerging computer-vision tools, real-time analysis, and the idea of “training your brain” like a game. We wanted to create a platform that makes focus social, gamified and actually enjoyable to maintain. Instead of betting for fun, take it one step further and bet on yourself. Compete with your friends to see who can be the most locked in.
What it does
Focus Royale is a web platform that lets users:
1. Track Cognitive & Physical Engagement
- Using a webcam pipeline
- eye direction & blink rate
- facial engagement
- focus/distracted states
- From these signals, we compute a “Focus Score”
2. Solana Integration for “Proof-of-Focus”
- You connect a Solana wallet and stake tokens on your ability to stay focused.
- If you get distracted → you lose part of your stake
- It gamifies productivity using crypto incentives.
3. Competition With Friends
- You can invite friends, compare scores and share sessions.
- Focus becomes a multiplayer game
How we built it
We divided the system into four components:
1. Frontend
- Drives the game (lobby → staking → playing → results), bots for opponents, live biometrics HUD, leaderboard
- Real-time score visualization
- Wallet connection (Solana Wallet Adapter)
2. Backend
-Routes for session creation -Emits biometric updates to the frontend
- Scoring formula computation
- Secure communication with Solana RPC
3. Solana
- Wallets using Solana Playground -User stakes -Session validation -Escrow account per player; penalty pool for forfeits. -Instructions: initialize escrow, deposit stake, update focus score, complete session, claim reward, forfeit stake. -Winner can claim stake + 50% of the penalty pool
Challenges we ran into
- Combining multiple CV signals into a single focus score
- Understanding Solana transactions and PDA (program-derived addresses)
- Getting wallet → backend → blockchain logic fully connected
- Syncing live webcam data with blockchain session logic
- Handling cross-origin requests between frontend and backend
Accomplishments that we're proud of
- Built a working end-to-end staking system on Solana
- Created a unified engagement score from CV signals
- Gamified productivity in a way that feels fun and social
- Completed a full pipeline
- Webcam → CV → Score → Blockchain → Leaderboard
What we learned
- How Solana transactions, blockhashes, and instructions work
- How to build and deploy Solana programs using the Playground
- Real-time ML pipelines using MediaPipe
- Securely managing environment variables + wallet adapters
- Designing behavioral metrics that are fair and stable
- How to communicate state between frontend, backend, and chain
What's next for Focus Royale
- Personalized difficulty settings and adaptive focus scoring
- Support for group study rooms and tournaments
- Mobile version
- Integration with Discord or Slack bots
- AI-based posture correction coaching


Log in or sign up for Devpost to join the conversation.