AI-powered study accountability that watches you study, roasts you when you slack off, and gamifies your focus with lives, streaks, coins, achievements, and multiplayer study rooms.
Start a session, set your task, and lock in. FocusLock uses Gemini AI vision to analyze your webcam and detect distractions. Lose focus, lose a life. Lose all lives, game over. Earn coins, unlock flame skins, and compete with friends in real-time study rooms.
- 🔥 AI vision detects phones, sleeping, zoning out with context-aware analysis
- ❤️ Lives system with escalating cinematic consequences
- 🪙 Coins, 15 achievements, shop with gameplay items (extra lives, shields, streak freezes)
- 🎨 8 unlockable flame themes (Frozen, Void, Cosmic, Divine, and more)
- 👥 Real-time multiplayer study rooms with live leaderboards and crown animations
- 📸 "Caught in the act" — captures your distracted moments as shareable photo cards
- 🎬 Unique grade reveal animations: S-rank meteor impact, A-rank level up, B-rank forge, C-rank system error
- 📊 Full analytics dashboard with focus trends, distraction breakdown, study calendar
- 🔥 Canvas particle system and ambient mood lighting that reacts to focus state
- 💬 Typewriter AI roasts with escalating sass
Next.js 14 · TypeScript · Tailwind CSS · Framer Motion · Gemini 2.0 Flash · Firebase Realtime DB · Zustand · Recharts · Lottie · Howler.js · Canvas API · Web Audio API
git clone https://github.com/YOUR_USERNAME/focuslock
cd focuslock
npm install
cp .env.example .env.local
# Fill in your API keys
npm run dev