Skip to content

Repository files navigation

⚑ RapidFocus β€” AI-Powered Productivity Companion

RapidFocus Logo

PLAN SMART. FOCUS FAST. MISS NOTHING.

Live Demo Built With Firebase

Built for Vibe2Ship Hackathon 2026 β€” Problem Statement 1: The Last-Minute Life Saver


πŸ“Œ What is RapidFocus?

RapidFocus is an AI-powered productivity companion that helps students, professionals, and entrepreneurs stop missing deadlines, build better habits, and stay focused β€” all in one beautiful dark-themed web app.

Unlike traditional to-do apps that just remind you, RapidFocus proactively helps you take action using Google's Gemini AI to prioritize tasks, schedule your day based on your mood, and coach you through completions.


🌐 Live App

πŸ‘‰ https://rapidfocus-564585755298.asia-southeast1.run.app
πŸ‘‰ https://rapid-focus.vercel.app/


✨ Features

🧠 AI-Powered Core

Feature Description
Smart Task Prioritization Gemini AI ranks your tasks using Eisenhower Matrix logic β€” Critical, High, Medium, Low
Daily Briefing AI scans your tasks every morning and gives you a 3-bullet personalized briefing
AI Scheduling Assistant Chat with your AI coach about tasks, time blocks, and productivity tips
Mood-Based Scheduling Tell AI how you feel about each task β†’ it schedules your day around your energy
Resizable Coach Panel Drag the left border to resize the AI Coach panel on desktop. Your custom width persists using localStorage!
Ergonomic Mobile Layout The AI Coach transitions into a gorgeous bottom-drawer overlay on mobile screens

⏱️ Focus Timer

  • Stopwatch Mode β€” track how long you spend on any task
  • Countdown Timer β€” set a time limit and focus
  • Exam-Style Notifications β€” alerts every 30 mins, special alerts at 20, 10, and 5 mins remaining
  • Beep sounds via Web Audio API β€” just like an exam hall!

πŸ“Š Dashboard & Analytics

  • Urgency Meter β€” see Late / Due Within 24H / On Track tasks at a glance
  • Overall Progress β€” completion percentage across all tasks
  • Weekly Stats β€” bar chart of tasks completed per day
  • On-Time vs Late β€” donut chart of your completion quality
  • Peak Productivity Hours β€” AI detects when you work best and schedules hard tasks then

🎯 Goals & Habits

  • Add daily habits and long-term goals
  • Track streaks with πŸ”₯ fire emoji counter
  • Mark habits complete daily to maintain streaks

πŸ”” Smart Reminders

  • Browser push notifications even when you're on another tab
  • Critical task alerts 2 hours before deadline
  • Overdue task alerts

🎬 Cinematic Experience

  • Hotstar-style splash screen on first load β€” logo zoom, letter-by-letter animation
  • Custom cyan cursor with golden hover effect
  • Hover animations β€” cards lift on hover throughout the app
  • Dark navy theme with teal/cyan accents

πŸ› οΈ Tech Stack

Layer Technology Purpose
Frontend React + TypeScript UI components and pages
Styling Tailwind CSS Utility-first responsive design
Backend Node.js + Express API server and Gemini AI calls
Database Firebase Firestore Real-time data storage
Auth Firebase Auth Google Sign-In + Email/Password
AI Gemini 2.0 Flash Prioritization, chat, scheduling
Charts Recharts Analytics and stats visualization
Icons Lucide React Clean icon library
Deploy Google Cloud Run Live hosting and auto-scaling
Build Vite Fast frontend bundler

πŸ“ Project Structure

RapidFocus/
β”œβ”€β”€ client/                          # React Frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ Components/              # UI Components
β”‚   β”‚   β”‚   β”œβ”€β”€ Sidebar.tsx          # Navigation + logout
β”‚   β”‚   β”‚   β”œβ”€β”€ TaskCard.tsx         # Individual task display
β”‚   β”‚   β”‚   β”œβ”€β”€ AddTaskModal.tsx     # Add task form with mood picker
β”‚   β”‚   β”‚   β”œβ”€β”€ UrgencyMeter.tsx     # Late/Due Soon/On Track meter
β”‚   β”‚   β”‚   β”œβ”€β”€ DailyBriefing.tsx    # AI daily briefing banner
β”‚   β”‚   β”‚   β”œβ”€β”€ FocusTimer.tsx       # Stopwatch + countdown timer
β”‚   β”‚   β”‚   β”œβ”€β”€ ChatPanel.tsx        # AI chat assistant panel
β”‚   β”‚   β”‚   β”œβ”€β”€ GoalsTab.tsx         # Goals and habits tracker
β”‚   β”‚   β”‚   β”œβ”€β”€ StatsTab.tsx         # Analytics and charts
β”‚   β”‚   β”‚   └── SplashScreen.tsx     # Hotstar-style intro animation
β”‚   β”‚   β”œβ”€β”€ hooks/
β”‚   β”‚   β”‚   └── useAuth.ts           # Firebase auth hook
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”‚   β”œβ”€β”€ Login.tsx            # Login page
β”‚   β”‚   β”‚   └── Dashboard.tsx        # Main dashboard
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   β”œβ”€β”€ firebase.ts          # Firebase config
β”‚   β”‚   β”‚   β”œβ”€β”€ taskService.ts       # Firestore CRUD operations
β”‚   β”‚   β”‚   └── geminiService.ts     # Gemini API calls
β”‚   β”‚   └── App.tsx                  # Root component + routing
β”œβ”€β”€ server/
β”‚   └── server.ts                    # Express server + all API routes
β”œβ”€β”€ Dockerfile                       # Cloud Run deployment config
└── README.md

πŸš€ Getting Started

Prerequisites

1. Clone the repository

git clone https://github.com/Kalpana0107/RapidFocus.git
cd RapidFocus

2. Setup Frontend

cd client
npm install

Create client/.env:

VITE_FIREBASE_API_KEY=your_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
VITE_FIREBASE_APP_ID=your_app_id
VITE_API_URL=http://localhost:3001

3. Setup Backend

cd ../server
npm install

Create server/.env:

GEMINI_API_KEY=your_gemini_api_key
PORT=3001

4. Run the app

Open two terminals:

Terminal 1 β€” Backend:

cd server
npx ts-node server.ts

Terminal 2 β€” Frontend:

cd client
npm run dev

Open http://localhost:5173 πŸŽ‰


πŸ”₯ How AI Works in RapidFocus

1. Task Prioritization

User adds task
      ↓
All tasks sent to Gemini 2.0 Flash
      ↓
Gemini ranks using Eisenhower Matrix
      ↓
Returns: priorityScore (1-10), label, reasoning
      ↓
Badges appear on task cards instantly

2. Mood-Based Scheduling

User clicks AI Schedule
      ↓
Quiz asks mood for each task
(πŸ˜„ Excited / πŸ™‚ Good / 😐 Neutral / 😩 Tired / 😰 Anxious)
      ↓
User enters free time slots ("9am-11am, 3pm-6pm")
      ↓
Gemini generates hour-by-hour schedule
      ↓
Excited tasks scheduled first
Tired tasks get shorter blocks with breaks

3. Exam-Style Timer Notifications

User sets 2 hour timer for assignment
      ↓
⏰ At 90 mins remaining  β†’ "90 minutes remaining β€” keep going!"
⏰ At 60 mins remaining  β†’ "1 hour remaining β€” stay focused!"
πŸ”” At 30 mins remaining  β†’ "Only 30 minutes left!"
⚑ At 20 mins remaining  β†’ "20 minutes left β€” wrap up!"
🚨 At 10 mins remaining  β†’ "Only 10 minutes left!"
🚨 At 5 mins remaining   β†’ "5 minutes! Finish now!"
🎯 At 0                  β†’ "Time's up!"

πŸ“± Screenshots

Screen Description
Splash Screen Hotstar-style cinematic intro on app load
Login Page Google Sign-In + Email/Password auth
Dashboard Urgency meter + task list + daily AI briefing
Focus Timer Stopwatch and countdown with exam notifications
AI Chat Conversational AI coach with task context
Goals & Habits Streak tracker with fire emoji
Stats Weekly charts + peak productivity hours

🧠 AI Features Summary

  • βœ… Intelligent task prioritization (Eisenhower Matrix)
  • βœ… AI-powered scheduling based on mood and free time
  • βœ… Personalized daily briefing every morning
  • βœ… Conversational AI coach (context-aware chat)
  • βœ… Context-aware reminders (due soon, overdue alerts)
  • βœ… Best time predictor from completion patterns
  • βœ… Weekly AI productivity insights

πŸ† Hackathon Details

Field Details
Event Vibe2Ship Hackathon 2026
Problem Statement PS1 β€” The Last-Minute Life Saver
Timeline 22nd June 3PM β€” 29th June 2PM
Core Tool Google AI Studio + Gemini API
Deployed Google Cloud Run

πŸ‘©πŸ’» Built By

Kalpana Naikodi

  • πŸŽ“ B.Tech AI & Data Science β€” VESIT Mumbai (2025-2029)
  • πŸ’Ό Full-stack developer | AI enthusiast
  • πŸ™ GitHub: @Kalpana0107

πŸ“„ License

This project was built for the Vibe2Ship Hackathon 2026. Feel free to use it as a reference for learning purposes.


⚑ RapidFocus β€” Because deadlines wait for no one.

Made with πŸ’™ using Google AI Studio + Gemini API

About

AI Powered Last-Minute Life Saver

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages