Generate a 27-character KSUID with an approximate creation-time sort order.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
A KSUID stores a custom-epoch four-byte timestamp plus 16 random bytes, then encodes the 20 bytes as base62. The timestamp prefix makes values roughly sortable.
1
3IPMnFOOj9keDZsC1hXTXGUoHyZ
Event IDs, microservice resources, and non-sequential database keys use KSUIDs.