Is there a way to create a countdown like a pomodoro timer as part of the widget in the touchbar?

I would like to have a button widget where I can customize the time and when I press down on it, it does a count down. Is this possible and if so how can I include it in part of my already customized touchbar?