How to create a widget with your Claude Code Stats

How can you build a widget that shows how much you actually use Claude Code?