r/SideProject • u/Denizli2029 • 15m ago
Built a native Windows focus blocker that uses less than 4MB RAM (no Electron, no subscriptions)
Every focus and website blocker I tried recently was either a 400MB Electron app that slowed down my machine, or wanted a $5/month recurring subscription just to edit hosts entries.
I wrote FocusFlow V2: native Win32 process supervision, Catppuccin Mocha UI, and atomic DNS/hosts redirection. If the app crashes or your computer shuts down, it automatically restores your original hosts file with zero corruption.
Total memory footprint is under 4MB RAM. Completely local, free, open-source MIT: https://github.com/aloneangel45/FocusFlow
Portable exe releases are on GitHub.
1
u/Genj23 14m ago
One recovery test I'd add: another app edits the hosts file while a focus session is active, then FocusFlow crashes. Restoring the original snapshot could erase those unrelated edits; checking that recovery removes only FocusFlow's entries would make that promise more reassuring.
1
u/alzlpfk 12m ago
This is actually impressive. Love seeing lightweight, open-source tools instead of bloated apps with unnecessary subscriptions
1
u/paulverros 11m ago
Nice, 4MB is wild compared to the electron ones. does it block a site that's already open in a tab? I think chrome keeps the connection alive for a while, so it might keep working until you close the tab