ulid

Generate Universally Unique 'Lexicographically' 'Sortable' Identifiers

CRAN Package

Universally unique identifiers ('UUIDs') can be sub-optimal for many uses-cases because they are not the most character efficient way of encoding 128 bits of randomness; v1/v2 versions are impractical in many environments, as they require access to a unique, stable MAC address; v3/v5 versions require a unique seed and produce randomly distributed IDs, which can cause fragmentation in many data structures; v4 provides no other information than randomness which can cause fragmentation in many data structures. Providing an alternative, 'ULIDs' () have 128-bit compatibility with 'UUID', 1.21e+24 unique 'ULIDs' per millisecond, support standard (text) sorting, canonically encoded as a 26 character string, as opposed to the 36 character 'UUID', use 'base32' encoding for better efficiency and readability (5 bits per character), are case insensitive, have no special characters (i.e. are 'URL' safe) and have a monotonic sort order (correctly detects and handles the same millisecond).


Documentation


Team


Insights

Last 30 days

This package has been downloaded 1,122 times in the last 30 days. That's enough downloads to impress a room full of undergrads. A commendable achievement indeed. The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 33 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsFeb 9, 2025
0 downloadsFeb 10, 2025
69 downloadsFeb 11, 2025
27 downloadsFeb 12, 2025
50 downloadsFeb 13, 2025
77 downloadsFeb 14, 2025
7 downloadsFeb 15, 2025
16 downloadsFeb 16, 2025
66 downloadsFeb 17, 2025
33 downloadsFeb 18, 2025
29 downloadsFeb 19, 2025
86 downloadsFeb 20, 2025
27 downloadsFeb 21, 2025
12 downloadsFeb 22, 2025
54 downloadsFeb 23, 2025
22 downloadsFeb 24, 2025
25 downloadsFeb 25, 2025
67 downloadsFeb 26, 2025
50 downloadsFeb 27, 2025
24 downloadsFeb 28, 2025
49 downloadsMar 1, 2025
26 downloadsMar 2, 2025
22 downloadsMar 3, 2025
61 downloadsMar 4, 2025
32 downloadsMar 5, 2025
36 downloadsMar 6, 2025
18 downloadsMar 7, 2025
55 downloadsMar 8, 2025
13 downloadsMar 9, 2025
14 downloadsMar 10, 2025
22 downloadsMar 11, 2025
33 downloadsMar 12, 2025
0 downloadsMar 13, 2025
0 downloadsMar 14, 2025
0 downloadsMar 15, 2025
7
86

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 8,159 times in the last 365 days. That's a lot of interest! Someone might even write a blog post about it. The day with the most downloads was Feb 20, 2025 with 86 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports1 package
  • Suggests1 package
  • Linking To1 package
  • Reverse Suggests1 package