I use a FOSS app on Android called DigiPaws and I love it. My use-case is pretty simple: I want any social media or games to be blocked from opening when I'm trying to go to bed.
I make a 'autofocus' rule for any apps in my list: web browsers, games, social media.. Anything I have been tempted to open when I lie down to sleep, and configure a set time period (I use midnight to 7am) and it just closes those apps whenever i try to run them, with a brief toast message like "Focus mode".
Super simple. No account or service. No judgement or streaks or any of that gamified shit to make you feel bad, just behaviour management.
It works so well for me that I looked into an option for my PC - but I can't find anything similar.
If anyone knows of an option on PC/Linux, let me know.