Inspiration

Every student struggles with staying focused while studying online. Timers and to-do apps only track time, not attention. We wanted to build something smarter — a tool that actually understands when your mind drifts and helps you refocus using real data and AI. That’s how FocusFlow was born.

What it does

FocusFlow measures real concentration using typing speed, tab switches, and idle time. It calculates a real-time Focus Score and gives AI-generated motivational feedback when attention drops. The app also uses machine learning to predict a student’s most productive hours and Gemini API to summarize weekly focus trends. Auth0 secures each user’s data, making the experience both private and personalized.

How we built it

Frontend: React (interactive dashboard and live Focus Score UI) Backend: Node.js + Express for APIs and data flow Database: MongoDB for user sessions and metrics ML Models: Linear & Logistic Regression (Python) to predict focus patterns Auth: Auth0 for secure login AI Services: OpenRouter for motivational feedback, Gemini API for insights

Challenges we ran into

Handling real-time data streaming for live Focus Scores Integrating multiple APIs and syncing their responses Getting the ML model tuned to output meaningful focus predictions Balancing time between model accuracy and UI polish under hackathon deadlines.

Accomplishments that we're proud of

Built a full-stack AI productivity app that works end-to-end Integrated Auth0, OpenRouter, and Gemini APIs successfully Designed a clean, intuitive UI that clearly demonstrates AI behavior Achieved real-time Focus Score tracking with live AI feedback.

What we learned

We learned how to connect machine learning models with live web data, manage multi-API workflows, and optimize real-time focus analytics. We also learned how to turn human behavior signals into measurable insights that can actually help people improve.

What's next for FocusFlow

Add webcam-based blink tracking for better focus detection Create AI-driven study planners using Gemini insights Launch gamified streaks and rewards for consistent focus Expand to mobile platforms and Chrome extensions for daily use

Share this project:

Updates