Back to projects

CursoVisor

Windows desktop app that organises downloaded courses, plays them and remembers where you stopped in every video.

CursoVisor - Windows desktop app that organises downloaded courses, plays them and remembers where you stopped in every video.

CursoVisor turns a folder of downloaded courses into a library: each subfolder is a course with its own icon and progress, and inside you move through modules the way you would on an online platform. It plays video and opens PDF, EPUB, images, HTML and text without leaving the app. It came out of a problem of my own: hundreds of loose videos, no order and no way to pick up where I had left off.

The problem

A downloaded course is usually a folder tree with inconsistent names. The system player does not know which module comes next, does not remember the timestamp you stopped at, and cannot tell a watched video from a pending one.

CursoVisor turns that folder into a library. Every subfolder of cursos_videos is a course with its icon and progress bar; open one and the module tree sits on the left while the content opens on the right.

How it is built

Three programs split the work. An Express server reads the course folder, serves the files and stores progress in a local JSON file. The interface is a React app inside an Electron window, and it only talks to that server over HTTP. A launcher starts the server, waits for it to announce it is listening, opens the window and, once the window closes, shuts the server down.

    • Launcher

      app-launcher.exe

      starts and stops the other two

  1. opens
    • Interface

      frontend.exe

      React in an Electron window

  2. asks over HTTP
    • Server

      server.exe

      Express: reads the folder and stores progress

    • Disk

      cursos_videos

      courses_data.json

How CursoVisor starts
  • Electron and electron-builder for the window and the portable executable.
  • Express with TypeScript, packaged with pkg as server.exe.
  • React 18 with TypeScript and Tailwind CSS for the interface, with a dark mode.
  • chokidar to notice a new course folder without a restart.

A viewer for every file

A downloaded course is more than video. The server classifies each file by its extension and the interface picks the viewer: MP4, WebM and MKV video, PDF, EPUB, images with zoom and pan, HTML, plain text and Markdown, and .url shortcuts. ZIP, RAR and 7z archives are offered as downloads instead of being opened.

Progress is the point

While a video plays, its position is saved at most once a second in the interface and in localStorage, and every ten seconds it is sent to the server, which writes it to disk. The two speeds are deliberate: the progress bar reacts immediately and the file is not rewritten sixty times a minute. When the video ends it is marked as watched, and the checkboxes in the tree let you mark it by hand.

From those marks every folder and every course works out its percentage, the home screen offers to resume whatever you opened last, and a search box filters courses by name. A new folder inside cursos_videos shows up on its own: a directory watcher notices it and counts its files.

Shipped

Version 1.0.0 went out on GitHub Releases on 18 October 2024, two days after the first commit. Version 2.0.0, with the new home screen, dark mode and the EPUB and image viewers, followed on 18 November. It ships as a folder holding the three Windows executables.

What I learned

In July 2026 both the server and the interface moved from JavaScript to TypeScript, with the domain types (course, file, progress) written the same way on both sides. The migration came with a tooling lesson: react-scripts 5 loads TypeScript as a JavaScript module, and the native TypeScript 7 compiler does not expose one, so the build failed even though type checking passed. That is why the project pins TypeScript 5.

What comes next

The review that came with that migration left a plan: move the server into Electron's main process to go from three executables to one, isolate the window from Node with contextIsolation and a preload script, check that every requested path stays inside the course folder, and slim down a 2.2 MB bundle that loads thousands of icons just to offer an icon picker per course.