Skip to content

About

Turn a folder of video courses into a day-by-day study plan and track real watch time. Desktop app (Qt + mpv) and single-file web app.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Study Tracker

Turn a folder of video courses into a day-by-day study plan, and track how much you really watched.

Today screen: today's goal, what to play next, streak, lessons done, catch-up list


The problem

I had two video courses on my laptop: a machine learning course and a generative AI course. Together they had 335 videos and about 60 hours of content, spread over 63 sections.

Having the videos was not the hard part. Getting through them was:

  • No plan. A folder of 335 files doesn't tell you what to watch today. I either watched too much one day and nothing the next, or kept rewatching the beginning.
  • Messy folders. The two courses were organized completely differently. One used .ts video files with notes inside a 20 MB zip archive. The other used .mp4 files with separate subtitle files and lesson resources as .html links. Finding the notebook for a lesson meant searching through folders by hand.
  • "Watched" was a lie. A video player only remembers where you stopped. It can't tell real watching from skipping to the end. So I had no honest idea of my progress.
  • One missed day ruined the plan. Every study plan I made on paper fell apart the first time I skipped a day, and I had to redo it from scratch.

I wanted something that answers one question every morning: "What exactly do I study today, and am I on track?" I couldn't find a tool that worked with my own offline course folders, so I built one.

The solution

Study Tracker reads your course folders, figures out the lesson order, and builds a calendar plan. It then measures real watching time and keeps the plan honest when life gets in the way.

30-day plan calendar Courses with sections and progress
Plan: a 30-day calendar with done, partly done, missed and upcoming days. Rebalance spreads missed videos over the days that are left. Courses: every section and lesson in the right order, with its notebooks, PDFs, links and subtitles attached.

Stats: total watched, days studied, 30-day chart, heatmap, course completion

What it does

  • Scans any course folder. Finds videos, subtitles and resources in lesson order, including files inside .zip archives. It handles different layouts (one wrapper folder, flat folders, loose files) and ignores junk like .venv, caches and download notes.
  • Builds a plan. Pick a start date and a plan length or a number of minutes per day. Set weekly days off or single days off, and keep project days at the end.
  • Tracks real watching time. An mpv add-on records seconds actually played. Pauses aren't counted, and seeking forward doesn't count as watching. A lesson counts as done only after 85% of it has really been played. You can still mark lessons by hand.
  • Rebalances. When you fall behind, one click moves the unfinished videos onto the remaining days without losing your history.
  • Keeps you going. A streak counter, a daily goal ring, a 20-week heatmap, and an evening desktop reminder if today's goal isn't reached yet.
  • Works in two ways from one code base:
    • Desktop app (Linux): a Qt window with a local API server. Videos open in mpv with English subtitles loaded automatically.
    • Any browser: open web/dist/index.html, pick a course folder, and watch in the built-in player. Progress is saved in the browser (IndexedDB). Nothing is uploaded.
  • Cheatsheets. Optional per-section notes (summary, key points, code, common mistakes) shown next to each day's lessons. See examples/cheatsheet.example.json for the format.
  • Ctrl+K search across every lesson and resource.

Results

I used it on my own two courses, starting 19 October 2026:

  • Finished the whole machine learning course: 130 of 130 lessons, in the first week of the plan.
  • 155 of 335 lessons done overall, with 11 h 38 min of real watching time over 10 study days.
  • When I missed days, the plan showed it ("40 behind") and rebalanced, instead of the plan quietly breaking.

How it works

course folders ──► scanner ──► catalog (sections, videos, resources)
                                   │
settings (start, pace, days off) ──┴─► scheduler ──► day-by-day plan
                                                         │
mpv add-on ──► watch-log.jsonl ──► progress rules ───────┴─► Today / Plan / Stats
Path What it is
web/src/core/ Platform-independent logic: folder scanner, plan scheduler (days off, rebalance), progress rules (done threshold, streaks, daily goal)
web/src/backends/ local.ts talks to the desktop server. browser.ts uses the folder picker, IndexedDB and the built-in player
web/src/ui/ React screens: Today, Plan, Courses, Cheatsheets, Stats, Settings, player, Ctrl+K palette
desktop/study_server.py Local API on 127.0.0.1, protected by a random per-run token. Only serves files inside your course folders
desktop/study_app.py Qt WebEngine window (PySide6), single instance
desktop/remind.py Evening reminder, run by a systemd user timer
mpv/study-tracker.lua mpv add-on: logs real watching time, resumes position, loads subtitles
web/test/ Tests for the core logic, run against an anonymized listing of two real course folders

Tech: TypeScript, React 18, Tailwind CSS, esbuild · Python 3, PySide6 (Qt WebEngine) · Lua (mpv) · systemd user timers.

Design decisions

  • The watch log is the source of truth. The plan and all statistics are recomputed from an append-only watch-log.jsonl. A bad saved state can always be repaired from it, and a test covers exactly that case.
  • One core, two backends. All scheduling and progress logic is plain TypeScript with no browser or server dependencies. That's why the same app runs on the desktop and as a single HTML file.
  • No npm needed at build time. The build uses the standalone esbuild and Tailwind binaries. The few runtime libraries are fetched from jsDelivr by web/.tools/vendor.py.

Getting started

Use it in a browser (no install)

Download web/dist/index.html, open it in any modern browser, and choose your course folder. In Chrome and Edge the folder is opened directly; other browsers use a regular folder upload. Either way, nothing leaves your computer.

Install the desktop app (Linux)

Requirements: Python 3, PySide6, mpv, Node.js (for tests only).

git clone https://github.com/Muktaditbf/study-tracker.git
cd study-tracker
web/.tools/setup.sh   # downloads esbuild, Tailwind and the vendored libraries
./install.sh          # builds the app and installs the launcher, mpv add-on and reminder
study                 # open it (also in the app menu: Education → Study Tracker)

./uninstall.sh removes it. Add --purge to also delete your progress in ~/.local/share/study-tracker.

Run the tests

cd web && ./test.sh

License

MIT

About

Turn a folder of video courses into a day-by-day study plan and track real watch time. Desktop app (Qt + mpv) and single-file web app.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages