ulid

ulid-0.0.2 by tobyink

Universally Unique Lexicographically Sortable Identifiers

Download .tar.gz
This is not the latest stable release of ulid.
View 0.1.0

Package

Name
ulid
Version
0.0.2
Uploaded
2026-07-30 00:49:32
Repository
https://github.com/tobyink/zuzu-ulid
Dependencies
Metadata
zuzu-distribution.json
Archive
Download .tar.gz
JSON-LD-logo-88

ulid

Generate Universally Unique Lexicographically Sortable Identifiers in ZuzuScript.

from ulid import create_ulid, create_ulid_binary;

say create_ulid();
let raw := create_ulid_binary();

create_ulid() returns the canonical 26-character uppercase Crockford Base32 form. create_ulid_binary() returns the same 128-bit layout as a 16-byte BinaryString.

Each identifier contains a 48-bit Unix timestamp in milliseconds and an 80-bit random component generated by std/secure. Identifiers generated within the same millisecond use monotonic randomness so that later identifiers continue to sort after earlier ones.

Installation

If you have zuzuzoo installed, you can install the latest release of ulid using this command:

zuzuzoo install ulid

Documentation