Skip to content
DeepDive

DeepDive

Deep Focus Made Effortless with AI

Created on 30th November 2025

•

DeepDive

DeepDive

Deep Focus Made Effortless with AI

The problem DeepDive solves

🌟 Overview

DeepDive is a comprehensive productivity platform that combines AI-powered webcam monitoring, gamification mechanics, and social features to help students stay focused during study sessions. Built with the MERN stack and powered by computer vision, it provides real-time feedback on concentration levels while making studying engaging through points, leaderboards, and clan competitions.

🎯 Problem It Solves

  • Distraction Management: AI monitors your focus and alerts you when distracted
  • Procrastination: Gamification and social pressure keep you motivated
  • Habit Building: Streak tracking and daily goals build consistent study habits
  • Accountability: Real-time monitoring and clan competitions provide social accountability

Challenges we ran into

🐛 Key Problems Encountered

1. Authentication Token Error

Method _generateTokens had incorrect class binding - renamed to generateTokens and fixed this context. Blocked all user login/register attempts.

2. WebSocket Connection Failures

Missing HMR config in vite.config.js caused constant WS errors. Added proper host, strictPort, and Socket.IO proxy settings.

3. ML Vision API Cold Starts

Render.com free tier spin-up caused 5-8s delays. Implemented retry logic, reduced frame frequency to 3s, added loading UI.

4. Incomplete Frontend Pages

Dashboard, Leaderboard, Clans, Settings were placeholders. Built fully functional pages with API integration (~1,500 lines).

5. Redis Crashes

App crashed without Redis. Added if (redisClient) checks throughout for graceful degradation.

6. Browser Extension Communication

Extension couldn't receive blocked site lists. Implemented Chrome runtime messaging API and event emitters.

7. Token Refresh Race Conditions

Multiple concurrent token refreshes caused auth chaos. Added request queue with _retry flag.

8. MongoDB Nested Updates

Partial setting updates overwrote entire objects. Used $set operator with dot notation.

9. Negative Points Bug (45 min)

Short sessions caused negative points. Added Math.max(0, points) guards and minimum duration checks.

10. Webcam Permission Errors (1 hour)

Denied permissions flooded console. Added try-catch blocks and permission UI with fallback mode.

Discussion

Builders also viewed

See more projects on Devfolio