Back to work

Flow

A focus and break app for Windows that makes sure breaks actually happen.

My role
Everything: design, code and testing
Timeline
Started October 2026, now on version 0.49
Built with
Python, pywebview, HTML/CSS/JS, WebGL, Win32 API
Status
In daily use

The problem

Long study sessions meant hours in the chair.

Most break reminders have a "dismiss" button, so they get ignored. Flow is built so a break can't be skipped.

Flow in use.

The main idea

The break timer only counts down while the keyboard and mouse are untouched. Touching either one pauses it, so the only way to finish a break is to get up.

This came from the first version, called Stand Up, and is still the core of Flow.

Flow's break screen counting down while the user is away
The break screen.

Changes along the way

Asking instead of guessing

Early on, five idle minutes on the PC counted as a break and restarted the session, even during study on an iPad. Now Flow asks: "Away 7 min. Was that a break?" A keep-running mode also ignores the keyboard and mouse.

Stand-up reminders

Every 30 minutes, a card asks for a minute or two of standing. The session keeps running.

Moving to web pages

Flow started as one Python file using Tkinter. Since version 0.27, its windows are web pages using pywebview. That made the design easier and makes the demo on this site possible.

Flow's welcome card asking for your one focus for the session
The welcome card.

Bugs fixed

High CPU use

Flow used about 15% of a CPU core. Most of it came from the animated tray icon: the library saved each frame to a file and read it back. Building the icon in memory with CreateIconFromResourceEx fixed it.

8.5% → 2.6%CPU for the tray animation
7 ms → 0.5 msper tray icon update
±0.5 stimer accuracy

Windows stuck off-screen

Windows sometimes opened off-screen and never moved into place. A test that logged where each window first appeared found the cause. Now every window is placed before it's shown.

Instant break after sleep

In keep-running mode, sleep time counted as work. So opening the laptop in the morning started a break right away. Now a long sleep starts a fresh session.

Where it is now

Flow is in daily use. It has focus sessions, stand-up reminders, a break screen on every monitor, water tracking, weekly stats, and ten colour themes. Automated tests run the real app with fake idle time.

Flow's weekly stats: focus time, stand-ups and water
Weekly stats.

Lessons

  1. Daily use finds the problems.Most improvements came from using Flow every day.
  2. Measure before fixing.The CPU problem had an unexpected cause.
  3. Don't assume.Most bugs came from Flow assuming things that weren't true.