Making Beautiful API Keys
· 13 min read
tl;dr - Since developers are our customers, we wanted them to have beautiful API keys. We couldn't find a suitable standard solution so we made our own package - uuidkey - that you can use to encode & format UUIDs into human-readable keys. If you use UUIDv7, you can also decode the keys to store them as sortable, indexable IDs in your database.
An example API key generated by github.com/gofrs/uuid and encoded with github.com/agentstation/uuidkey.