Personal Project · Full-Stack Web App
TaskMaster v2 · Flask · SQLite

TaskMaster
Deep Work OS

A full-stack productivity platform built around deep focus — Eisenhower matrix, Pomodoro timer, streak tracking, group collaboration with SSE real-time messaging, and a data-rich schema designed for behavioral analytics.

14+
DB Tables
SSE
Real-time
Multi-user
Nguyen Hong Son · 2025–2026
today · deep_work_os
Write AdaIN math formula
90m
Method — Object Segmentation
crit
Read: Attention Is All You Need
90m
Gym — Chest & Triceps
75m
24:00
deep focus · pomodoro
streak
5 days 🔥

Data Flow

System Pipeline

deep_work_session(user, task, timer, log, analytics)
01
🔐
Auth
Argon2 · session
02
🗂️
Goals / Tasks
Eisenhower · priority
03
⏱️
Focus Timer
time_logs · deep_work
04
📡
SSE Push
real-time · groups
05
📊
Analytics
streak · heatmap

DS / AI Relevance

Built for
Behavioral Analytics

Data Science · AI Engineer Perspective

TaskMaster is not just a to-do app — it's a behavioral data collection engine. Every task carries difficulty score, impact score, energy level, Eisenhower quadrant, estimated vs. actual time, and procrastination score. The time_logs table logs every focus session with is_deep_work flag — directly queryable for productivity pattern modeling.

⏱ Time-Series Focus Logs
time_logs: start_time, end_time, duration_minutes, is_deep_work per task/subtask. Direct input to productivity forecasting or burnout detection models.
🧠 Multi-dimensional Task Features
difficulty_score [1–5], impact_score [1–5], procrastination_score, energy_level, eisenhower quadrant — rich feature matrix for task completion prediction.
🔥 Streak & Habit Modeling
streak_days, longest_streak, last_streak_date tracked per user. Enables reinforcement-based habit models and engagement churn prediction.
👥 Group Collaboration Graph
friendships, group_members, pair_sessions, group_task_votes — social graph data ready for influence analysis or collaborative filtering.

What It Does

Core
Features

🎯
Goal → Project → Task Hierarchy
3-level structure: Goals (yearly) → Projects (with deadline & color) → Tasks with subtasks, Eisenhower matrix, priority, energy level, and scoring.
⏱️
Deep Work Timer
Pomodoro-style focus sessions logged to time_logs. Tracks estimated vs. actual minutes, deep work flag, and per-subtask work time.
📡
Real-time SSE Messaging
Server-Sent Events push live notifications — task shares, group invites, pair focus sessions, streak accountability alerts, and chat messages.
👥
Groups & Pair Sessions
Group goals, projects, tasks with democratic voting (accept/reject). Pair focus sessions with shared timers and check-ins between accountability partners.
🔥
Streak & Habit Engine
Auto-calculates daily streak, longest streak, last activity date. Streak accountability notifications pushed via SSE when partners hit milestones.
📊
Analytics & Progress Reports
Personal + group analytics: completion rates, deep work hours, heatmap, per-goal breakdown. Exportable Progress Reports via shareable URLs with 24h expiry.

System Design

Architecture

┌──────────────────────────────────────────────────────────────────┐ BROWSER (Vanilla JS) Task Board · Focus Timer · Group Chat · Analytics EventSource('/api/sse/connect') ← live push notifications └────────────────────────────┬─────────────────────────────────────┘ │ HTTP/REST + SSE · session cookie ┌────────────────────────────▼─────────────────────────────────────┐ FLASK (Python) ┌────────────────────────────────┐ ┌──────────────────────┐ │ SSE Engine (threading.Queue) │ │ Auth · Argon2/SHA256│ │ sse_pub → per-user queues │ │ streak · session │ └────────────────────────────────┘ └──────────────────────┘ ┌─────────────────────────────────────────────────────────┐ │ SQLite (3 isolated DBs) │ │ │ │ users.db users · friendships · messages · pairs │ groups.db groups · tasks · votes · pending · logs │ data_{account}.db goals · projects · tasks · time_logs └─────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────┘ ┌──────────────────────────────────────────────────────────────────┐ Linux VPS · Gunicorn · Nginx └──────────────────────────────────────────────────────────────────┘

Technology

Full Stack

Python · Flask
REST API · session · SSE streaming · threading
SQLite (3-DB architecture)
users.db · groups.db · per-user data_{account}.db
Server-Sent Events (SSE)
threading.Queue · real-time push · live notifications
Argon2 / SHA-256
Adaptive password hashing · fallback to SHA-256
Eisenhower Matrix Engine
urgent_important / not_urgent_important classification
Time Log & Deep Work Tracker
Pomodoro sessions · estimated vs actual · is_deep_work
Group Collaboration System
Democratic voting · pair sessions · group analytics
Vanilla JS · HTML / CSS
Single-page frontend · zero build step · WebSocket-less