Skip to main content

Module ulid

Module ulid 

Source
Expand description

A dependency-free ULID (Universally Unique Lexicographically Sortable Identifier): 48-bit ms timestamp + 80 random bits, Crockford base32, 26 chars, monotonic within one process for the same millisecond. Used for inbox events, runs, artifacts, audit records — sortable by time in the store’s list and stable across restarts.

Functions§

new
A new ULID for now.
timestamp_ms
The timestamp (ms) encoded in a ULID, if it parses.