Hacker GitHub

← All repos

ulid/javascript

View on GitHub ↗ ★ 3,448 TypeScript

Universally Unique Lexicographically Sortable Identifier

15 mentions on Hacker News by 15 people: 3 stories, 12 comments · first 2016-08-01 · latest 2025-12-10

Mentions per year 15 mentions · busiest year 2017 (9)
20082026
  1. > I hope that's not literally incrementing a sequence It's literally incrementing it by one: https://github.com/ulid/javascript/blob/11c2067821ee19e4dc78... https://github.com/ulid/javascript/blob/11c2067821ee19e4dc78...
  2. …ter-within-the-same-millisecond-behavior only happens if you explicitly specify a "monotonicFactory", https://github.com/ulid/javascript#monotonic-ulids . The default behavior (just using the ulid() function) doesn't do that, it generates…
  3. …in multiple languages. there are 2 listed for js. https://github.com/aarondcohen/id128 and https://github.com/ulid/javascript
  4. …caused by index page splitting (I wrote a ULID implementation for MSSQL that handles this). https://github.com/alizain/ulid
    comment by tatersolid · 2017-11-30 · in Auto increment is a terrible idea
  5. Does anyone use ULIDs [1] instead of UUIDs for stuff like this? I like that they're sortable. [1] https://github.com/alizain/ulid
    comment by gjem97 · 2017-11-30 · in Auto increment is a terrible idea
  6. …so this is my go-to when I'm making nonces if I am not worried about super-double-secure prngs. https://github.com/alizain/ulid
  7. …in the process. The simplest way to do that is to just throw UUID at all problems from the start. ( https://github.com/alizain/ulid s are better, but there aren't libraries to generate them in literally every language + RDBMS.)
  8. …I need IDs that are time-sortable while still retaining the advantages of a UUID. Read more here: https://github.com/alizain/ulid The ultra-quick summary: 48 bits of timestamp followed by 80 bits of randomness. Also, when representing as…
  9. …to yours has a list that includes the one you mentioned and several others in various languages :) https://github.com/alizain/ulid#implementations-in-other-lan...
    comment by eriknstr · 2017-06-08 · in A Brief History of the UUID
  10. There's also "ULID" in this neo-UUID space: https://github.com/alizain/ulid 48-bit timestamp plus 80 bits randomness, base32 encoding (no hyphens), and lexicographic sort order.
    comment by mappu · 2017-06-07 · in A Brief History of the UUID
  11. …with using ulid identifiers, which won't face timestamp issues until around 10900 AD. Source here: https://github.com/alizain/ulid/
    comment by grawlinson · 2017-06-07 · in A Brief History of the UUID
  12. My guess is that the README was mostly copied from here: https://github.com/alizain/ulid Which has a similar list, but presents them as features/facts, not advantages. Edit: Perhaps it was noted to specifically call out that it maintains…