You are browsing as a guest. Sign up (or log in) to start making projects!

Focus Blocker

  • 1 Devlogs
  • 0 Total hours

A CLI tool called Focus Blocker that blocks distracting websites (YouTube, Instagram, TikTok, etc.) for a set number of minutes by editing /etc/hosts, then automatically unblocks itself when time is up — no need to remember to turn it back on.

Ship #1 Pending review

Rewrote Focus Blocker with 3 major QoL improvements: named presets (multiple blocklists for different contexts like study/gaming, not just one global list), a stats command showing total sessions and focus time, and an interactive setup wizard so you don’t have to manually edit text files. Also added a remove command for presets and a help command. The trickiest part was debugging subtle bash issues — a missing space inside [[ ]] that silently broke number validation every time, and a case statement where the wildcard pattern was catching commands before they could match their real cases. To test: run ./focus setup to configure it interactively, then ./focus to block a named preset, and ./focus stats to see your history.

Try project → See source code →

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…