The open source plugin for productivity metrics, goals, leaderboards, and automatic time tracking.
Search for wakatime in the HBuilder X plug-in store.
Install the WakaTime plugin.
Enter your API Key when prompted.
Use HBuilder X like normal and your stats will automatically show on your WakaTime Dashboard.