How are balena device names generated?

Balena device names are presumably generated from the UUID using some sort of name generator like the below:

Is this open source? Reason being we want to have these names in our custom device dashboard without having to grab them from the balena API

Hi @shawaj the names come from this repo and it is open source: open-balena-api/index.ts at master · balena-io/open-balena-api · GitHub
However, there isn’t a way to reliably generate the same name more than once based on the UUID since they are randomly generated, and since the device names could change on the cloud with them being editable we recommend keeping the API as the source of truth for your device names