Skip to content

jxdai2007/FocusLock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 FocusLock

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.

How It Works

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.

Features

  • 🔥 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

Tech Stack

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

Run Locally

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

Built Solo at HOTH 12 — UCLA ACM Hack

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors