UUID.rocks | Generating UUID's with a Stream Deck Button

submited by
Style Pass
2021-06-24 14:30:04

I built uuid.rocks to learn how to build an API in TypeScript on Cloudflare Workers. However, I’ve found myself using it surprisingly often to grab a UUID. Whether it’s to give something a unique ID, or for an API key in another API, it’s come in handy many times.

However, going to a website (or even using curl) to get a UUID just isn’t fast enough. So with my recently acquired Stream Deck, I set off to build a button that would do it for me!

Instead of going through the trouble of building a Stream Deck plugin, I used a Multi Action button that utilizes multiple existing plugins/actions.

There is an amazing Stream Deck plugin made by BarRaider called API Ninja which lets you make web requests. In this case, we’ll have it request the uuid.rocks JSON API and write the UUID to a .txt file.

For some reason, if you click the button too fast it may send the same UUID multiple times. Probably because the Super Macro plugin is meant to be able to spam macros without waiting on network calls.

Leave a Comment