We value Open Source and make a point to release all our plugins on GitHub under a BSD License.
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.