FocusWatch
A focus app and browser extension I built to stop losing my days to YouTube.
Seven weeks before vs six weeks after daily use, from my own ActivityWatch data. How I measured.
I kept "working" for hours and finishing nothing. FocusWatch blocks distracting sites during a focus session, then asks one honest question at the end: did you actually finish what you planned? It runs entirely on your own computer.
The problem
I was tracking my time with ActivityWatch, and the data was brutal. In my worst week (late August 2026) I spent 57 hours at my computer, and 14 of them were on YouTube. Across my first seven weeks of tracking, a quarter of my active screen time went to distracting sites, and only 7% went to the tools I actually build things with.
Time trackers showed me where the hours went. None of them asked whether I'd got anything done, and none of them stopped me in the moment.
What I built
Three parts that run on your own machine:
- A desktop app. Start a session by writing what you'll deliver ("write the report intro, 45 minutes"). When the timer ends, answer honestly (Yes / Partly / No) and rate how hard it was. Also: a to-do list with categories, daily and weekly stats, a focus heatmap, streaks, and a floating always-on-top timer.
- A Chrome/Edge extension. Blocks distracting sites during a session and shows a block page reminding you what you're supposed to be doing. YouTube Music and YouTube Studio stay open, so music and creator work aren't collateral damage. Save all open tabs to your to-dos (
Alt+S), screenshot your work as proof (Alt+Shift+C), open a notepad on any page (Alt+N). - A small local connector so the app and extension talk to each other: start a session in the app and blocking turns on in the browser instantly.
It builds on ActivityWatch for app and website tracking instead of reinventing it. No account, no cloud, no analytics: nothing leaves the computer.
Results: my own data
I compared the seven weeks before FocusWatch became part of my daily routine with the six weeks after I gave it a one-click desktop launcher (4 October 2026).
| BeforeAug 2 – Sep 19 | AfterOct 4 – Nov 10 | Change | |
|---|---|---|---|
| YouTube per week | 4.6 h | 0.7 h | −85% |
| Distracting sites per week | 5.0 h | 1.1 h | −77% |
| Share of screen time on distractions | 23.8% | 6.2% | −74% |
| Share in work tools terminal, VS Code, Claude | 7.0% | 17.5% | 2.5× |
| Worst week for YouTube | 14.3 h | 2.6 h |
The block page was hit 57 times, every one of them YouTube: 57 times I reached for a video mid-session and got sent back to work instead.
What changed day to day:
- Opening YouTube stopped being automatic. The block page shows what I'm meant to be doing, and getting past it means typing a reason and waiting. Most of the time, that pause was enough.
- Writing down the output before starting turned vague "work time" into a concrete goal. Answering Yes/Partly/No made it obvious when a long session had produced nothing.
- Keeping YouTube Music open meant I didn't have to choose between focus and music, which is why I kept the blocker on.
- Making it one click mattered more than any feature. Usage only became consistent once a desktop shortcut started everything at once.
How it works
- Plan: write what you'll finish, pick a duration, choose whether to block sites.
- Block: the app tells the connector a session started; the extension picks it up within seconds and blocks your list.
- Check in: when time's up, a notification asks whether you finished, partly finished, or didn't.
- Review: stats show real focus time against distraction, attempts blocked, streaks and patterns.
Engineering highlights
- Monorepo (pnpm workspaces): a React 19 + TypeScript + Vite desktop UI, a Manifest V3 extension, and four shared packages (site classification, focus scoring, ActivityWatch event processing, shared types). About 15,000 lines of TypeScript, plus a Rust/Tauri shell for a native build.
- Blocking uses Chrome's
declarativeNetRequestrules with navigation-level fallbacks so blocked sites can't slip through, plus time-limited unlocks that re-block automatically, even in tabs already open. - Session sync goes through a zero-dependency Node.js connector on localhost, with state saved to disk so a running session survives restarts.
- 84 automated tests (Vitest) covering session sync, pausing, reflections, categories, scoring and unlocks.
- Open-source ready: plain-English README with diagrams, a copy-paste prompt that lets an AI coding agent install it, CI on every push, and secret scanning (gitleaks) before each commit and in CI.
- Landing page with a scroll-driven walkthrough and an interactive "try to procrastinate" demo, on GitHub Pages, and still fully usable with reduced-motion settings.
What I learned
- Friction beats willpower. A short, deliberate pause in front of a distraction worked better than trying to resist it.
- Measure output, not hours. The Yes/Partly/No check-in changed my behaviour more than any chart.
- Remove every step between you and the habit. The tool only worked once it was one click to start.
- Don't rebuild what already works. Building on ActivityWatch let me focus on the missing part: accountability.
- If I did it again, I'd keep a single version of the connector (it ended up in three places), use a real database from day one instead of browser storage, and ship the core loop before the extras.
About the numbers
- Source: my ActivityWatch history, 2 August – 10 November 2026. Time counts only when I wasn't away from the keyboard, and a website counts only while the browser window was in front, so background tabs playing audio aren't included.
- "Distracting sites" means YouTube (excluding Music and Studio), Instagram, Reddit, X/Twitter, Facebook, LinkedIn, TikTok and Netflix.
- 20 September – 3 October is excluded: almost no tracked activity in those two weeks.
- "Work tools" counts only desktop apps (terminal, VS Code, Claude, Python), so it understates real work time; a lot of my work happens in the browser.
- This is one person's before/after comparison, not a controlled study. Other things changed in my life too, but the drop lines up with when FocusWatch became part of my daily routine.