Thanks for contributing and its great that there is a starting point. I normally use python so Iām not sure how long it will be until I can contribute meaningfully.
If Python is your cup of tea you could build something like that using aw-client.
There are some examples in the examples/ directory which could be reworked to something basic like what you want, like this one:
For your two examples:
Example 1: Weekly achievement/progress bar: spend 10 hours total coding in SQL!
Query how much time was spent on the task today, and send email notifications with updates (new week, first hour of the week, first 5 hours, first 10 hours, etc)
Example 2: Streak: spent <10 minutes on reddit each day for 5 days in a row!
Query how much time was spent in a āredditā cartegory for in the last 5 days, and send an email with how youāre doing.
I might throw something like that together myselfā¦