A smart task manager specifically designed for students that integrates assignment deadlines, exam schedules, and extracurricular activities. TaskFlow uses AI to suggest optimal study times based on your energy patterns and automatically breaks large projects into manageable steps.
- Unified Dashboard: Manage all your tasks in one place - assignments, exams, projects, and activities
- Smart Categorization: Filter and view tasks by type (assignments, exams, activities)
- Priority System: High, medium, and low priority levels with visual indicators
- Status Tracking: Track tasks as pending, in progress, or completed
- Subtask Breakdown: Large projects (>4 hours) are automatically broken into manageable subtasks
- Energy Pattern Learning: Log your energy levels throughout the day
- Smart Schedule Generation: AI creates optimized daily schedules based on your tasks, energy patterns, sleep schedule, and recurring events
- Sleep Schedule Optimization: Set your sleep schedule and choose to maximize sleep or maintain desired sleep duration
- Intelligent Task Prioritization: AI considers task urgency, priority level, estimated hours, and your energy patterns
- Optimal Study Time Suggestions: AI analyzes your energy patterns and suggests the best times to study
- Project Decomposition: Automatically breaks down large projects into 2-8 subtasks
- Workload Balance: AI monitors your task distribution and suggests balanced scheduling
- Recurring Events: Create daily or weekly repeating events for classes, work, or regular activities
- Manual Scheduling: Override AI suggestions and manually schedule tasks at specific times
- Schedule Timeline View: Visual timeline showing tasks, recurring events, and sleep periods with energy level indicators
- Google Calendar Integration: Import events from Google Calendar (requires API setup)
- Real-time Statistics: View total, pending, in-progress, completed, and overdue tasks
- Study Session Tracking: Record study sessions with duration, energy level, and productivity ratings
- Progress Visualization: Track completion progress on tasks with subtasks
- Energy Insights: Build a profile of your productive hours over time
- Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
- Intuitive UI: Clean, modern interface with easy navigation
- Visual Feedback: Color-coded priorities, status badges, and progress indicators
- Dark Mode Ready: Designed with accessibility in mind
- Node.js (v14 or higher)
- npm (comes with Node.js)
- Optional: Google Cloud Console account (for Google Calendar integration)
-
Clone the repository (if not already done):
git clone https://github.com/Awesome-XV/Task-Flow.git cd Task-Flow -
Install dependencies:
npm install
-
(Optional) Set up Google Calendar Integration:
- Go to Google Cloud Console
- Create a new project or select existing one
- Enable the Google Calendar API
- Create OAuth 2.0 credentials:
- Application type: Web application
- Authorized redirect URIs:
http://localhost:3000/api/google/callback
- Copy the Client ID and Client Secret
- Edit
server.jsand replace the placeholder values:const GOOGLE_CLIENT_ID = 'your-client-id-here'; const GOOGLE_CLIENT_SECRET = 'your-client-secret-here';
-
Start the server:
npm start
-
Open your browser and navigate to:
http://localhost:3000
For development with auto-restart on file changes:
npm run dev- Click the "+ New Task" button in the quick actions
- Fill in the task details:
- Title: Name of your task
- Description: Additional details (optional)
- Type: Assignment, Exam, Activity, Project, or Study Session
- Priority: High, Medium, or Low
- Due Date: When the task is due
- Estimated Hours: How long you think it will take
- Energy Level: Preferred energy level for this task (helps AI scheduling)
- Click "Save Task"
- Click "+ Recurring Event" in quick actions
- Enter event details:
- Name: Event title (e.g., "Math Class", "Work Shift")
- Start Time: When the event begins (HH:MM format)
- Duration: How long it lasts in hours
- Pattern: Daily or Weekly
- Days: For weekly events, select which days (Mon-Sun)
- Click "Add Event"
- Click "๐ค Sleep Schedule" in quick actions
- Set your schedule:
- Bedtime: When you go to sleep (HH:MM format)
- Wake Time: When you wake up (HH:MM format)
- Desired Hours: Target sleep duration
- Maximize Sleep: Check to use all available time for sleep
- Click "Save Schedule"
- Navigate to "Smart Schedule" view in the main navigation
- Click "Generate Schedule" button
- AI creates an optimized schedule considering:
- Your sleep schedule (blocks scheduling during sleep hours)
- Recurring events (classes, work, etc.)
- Task deadlines and priority
- Your energy patterns
- Available time slots
- View the timeline with color-coded blocks:
- ๐ Sleep periods (blue)
- ๐ Recurring events (green)
- ๐ Scheduled tasks with energy badges (high/medium/low)
- Click "๐ Manual Schedule" button
- Select a task from the dropdown
- Choose the date
- Select the time slot
- Click "Schedule Task" to override AI suggestion
- Click "๐ Google Calendar" in quick actions
- Click "Connect Google Calendar"
- Authorize the app in the popup window
- Click "Import Events" to sync calendar events
- Events will be added as recurring events in TaskFlow
- To disconnect, click "Disconnect"
To help the AI learn your energy patterns:
- Click "โก Log Energy" in quick actions
- Select your current energy level (Low, Medium, or High)
- The system records the time and day to build your energy profile
Track your study sessions to improve AI recommendations:
- Click "๐ Study Session" in quick actions
- Select the task you worked on
- Enter the duration in minutes
- Rate your energy level during the session
- Rate your productivity (1-10)
- Click "Save Session"
- Click "๐ค Recommendations" in the navigation menu
- View personalized recommendations including:
- Urgent Deadlines: Tasks due within 3 days
- Optimal Study Times: Best times to study based on your energy patterns
- Break Suggestions: Recommendations for long tasks
- Task Balance: Overview of your workload distribution
- Edit: Click the โ๏ธ icon on any task card
- Delete: Click the ๐๏ธ icon on any task card
- Complete Subtasks: Check off subtasks as you complete them
- Filter: Use the navigation to view tasks by category
- Node.js: JavaScript runtime
- Express: Web application framework
- googleapis: Google Calendar API integration
- open: OAuth flow helper
- UUID: Unique ID generation
- HTML5/CSS3: Modern web standards
- Vanilla JavaScript: No framework dependencies
- Responsive Design: Mobile-first approach
- JSON File Storage: Lightweight, portable data storage with:
- Tasks and subtasks
- Recurring events
- Energy patterns tracking
- Study sessions history
- Sleep schedule
- Scheduled tasks
- Google Calendar tokens
Task-Flow/
โโโ public/
โ โโโ index.html # Main HTML file with all views and modals
โ โโโ styles.css # All styles including new scheduling features
โ โโโ app.js # Frontend JavaScript with AI scheduling
โโโ server.js # Express server, API routes & AI algorithms
โโโ package.json # Dependencies and scripts
โโโ taskflow-data.json # JSON database (auto-created)
โโโ README.md # This file
GET /api/tasks- Get all tasksPOST /api/tasks- Create new task (auto-generates subtasks for >4hr tasks)DELETE /api/tasks/:id- Delete taskPATCH /api/tasks/:id/status- Update task status
GET /api/recurring-events- Get all recurring eventsPOST /api/recurring-events- Create recurring event (daily/weekly)DELETE /api/recurring-events/:id- Delete recurring event
POST /api/schedule/generate- Generate AI-optimized schedulePOST /api/schedule/manual- Manually schedule a taskGET /api/schedule- Get current scheduleDELETE /api/schedule/:id- Remove scheduled task
GET /api/sleep-schedule- Get sleep schedule configurationPOST /api/sleep-schedule- Update sleep schedule
POST /api/energy-patterns- Log energy levelPOST /api/study-sessions- Record study session
GET /api/stats- Get task statisticsGET /api/recommendations- Get AI recommendations
GET /api/google/auth- Initiate OAuth flowGET /api/google/callback- OAuth callback handlerPOST /api/google/import- Import calendar eventsGET /api/google/status- Check connection statusPOST /api/google/disconnect- Disconnect Google account
The AI scheduler considers multiple factors:
- Sleep Schedule: Blocks out sleep hours, respects maximize sleep preference
- Recurring Events: Reserves time for classes, work, and regular activities
- Energy Patterns: Schedules high-priority tasks during your peak energy hours
- Task Urgency: Prioritizes tasks with approaching deadlines
- Task Priority: High priority tasks get scheduled first
- Available Time: Finds optimal time slots that fit task duration
The system tracks:
- Day of week
- Hour of day
- Energy level (high/medium/low)
- Frequency of patterns
AI considers:
- Historical energy patterns
- Task urgency (days until due date)
- Task priority level
- Estimated effort required
- Your current energy level
Tasks estimated at >4 hours are automatically divided into:
- Research and planning
- Outline and structure
- Draft sections
- Review and edit
- Finalize and polish
(Up to 8 phases based on total estimated hours)
- Maximize Sleep Mode: Uses all time not occupied by tasks/events for sleep
- Desired Hours Mode: Maintains specific sleep duration while scheduling tasks
- Validates sleep schedule prevents task scheduling during sleep periods
- Multi-calendar integration (Outlook, iCal)
- Pomodoro timer built-in
- Team collaboration features
- Mobile app (iOS/Android)
- Advanced analytics dashboard with charts
- Export schedule (PDF, CSV, iCal)
- Push notifications and reminders
- Dark mode toggle
- Multiple user support with authentication
- Integration with learning management systems (Canvas, Blackboard)
- Voice input for tasks
- Habit tracking
- Weather-based scheduling adjustments
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
This project is licensed under the MIT License - see the LICENSE file for details.
Created with โค๏ธ for students who want to manage their time better and achieve more.
Server won't start
- Make sure port 3000 is not in use
- Check that all dependencies are installed:
npm install - Verify Node.js version is 14 or higher:
node --version
Google Calendar not working
- Ensure you've set up OAuth credentials correctly in Google Cloud Console
- Check that redirect URI matches exactly:
http://localhost:3000/api/google/callback - Verify Google Calendar API is enabled in Cloud Console
- Check that Client ID and Secret are correctly set in
server.js
Data not persisting
- Check file permissions on
taskflow-data.json - Ensure the server has write access to the project directory
- Verify the file is not locked by another process
Tasks not appearing in schedule
- Verify tasks have due dates set
- Check that sleep schedule is configured
- Ensure there are available time slots after sleep and recurring events
- Try regenerating the schedule
Schedule shows empty
- Click "Generate Schedule" button in Smart Schedule view
- Ensure you have tasks with future due dates
- Check that your sleep schedule leaves available time
- Verify recurring events aren't blocking all available time
If you encounter any issues or have questions:
- Check the existing issues on GitHub
- Create a new issue with detailed information
- Include steps to reproduce any bugs
Happy Studying! ๐โจ