That's really cool, I've been building ActivityWatch (https://activitywatch.net) that shares similar goals.
It's an open-source "screen time" that stores everything locally, and supports (optionally) using a browser extension to gather browsing data.