Flowstate
AI Tab Manager for Focused Work
The problem Flowstate solves
Modern digital environments are built for distraction. Even when starting with clear goals — studying, coding, writing, or working — users are easily pulled into social media, short-form videos, or entertainment platforms.
Traditional website blockers are either too rigid or too easy to bypass. They block domains, but they don’t understand intent.
As a result, users lose focus, waste time, and struggle to complete meaningful work.
Challenges we ran into
One of the biggest challenges was handling redirection logic correctly when a website was blocked.
Initially, when a restricted page loaded and the user clicked “Take me somewhere safe,” the extension was either opening a new tab, redirecting to a blank page, or failing to return to the last allowed site. The issue was caused by improper state management — specifically not tracking the lastAllowedUrl reliably and accidentally overwriting it when the blocked page itself loaded.
To fix this, I redesigned the state flow:
Tracked the last allowed URL only when a non-blocked page was fully loaded.
Ensured extension pages were excluded from being stored as valid URLs.
Captured the active tab as the initial safe state when a focus session begins.
Used chrome.tabs.update() to replace the current tab instead of opening new ones.
Added loop-prevention checks to avoid re-triggering the block logic.
Tracks Applied (1)
Auth0
Major League Hacking
Technologies used

