tl;dr; Check out Budgets, Calm. The macOS version is free until March 7th!
This is just an announcement for the macOS version. You can read the original announcement for iOS.
It's free until March 7th, and the source code is available in GitHub.
Thank you for your attention and kindness. I appreciate it!