Hacker GitHub

← All repos

paralleldrive/cuid2

View on GitHub ↗ ★ 3,413 JavaScript

The most secure, collision-resistant ids optimized for horizontal scaling and performance.

16 mentions on Hacker News by 12 people: 6 stories, 10 comments · first 2023-01-06 · latest 2026-10-23

Mentions per year 16 mentions · busiest year 2023 (8)
20082026
  1. If you really need monotonic, secure/unguessable IDs, there are options like CUID2 (github.com/paralleldrive/cuid2). Older designs like ULIDs ( https://github.com/ulid/spec ) and Snowflake IDs ( https://en.wikipedia.org/wiki/Snowflake_ID )…
  2. …some vindication that choosing CUID2[1] for one of my projects was actually a good idea. 1. https://github.com/paralleldrive/cuid2
  3. …fast". It's also secure, collision resistant, and has everything I would need from a UUID. [1]: https://github.com/paralleldrive/cuid2 [2]: https://github.com/nrednav/cuid2
  4. Or, just use cuid2 [1] + prefix. [1] https://github.com/paralleldrive/cuid2
    comment by kodisha · 2024-06-05 · in You'll regret using natural keys
  5. The CUID readme [1] explains that there's no real point to K-sortable on modern hardware: [1] https://github.com/paralleldrive/cuid2?tab=readme-ov-file#no...
    comment by medstrom · 2024-04-11 · in The UX of UUIDs
  6. There's a comparison in the README of the project: https://github.com/paralleldrive/cuid2#the-contenders Some of the arguments mentioned are explained elsewhere in the README, others are assumed. One argument standing out for me is the…
    comment by pfix · 2023-10-02 · in Goodbye integers, hello UUIDv7
  7. …integers and created_at/updated_at timestamps for internal use, and Cuid2 IDs externally. [1]: https://github.com/paralleldrive/cuid2
    comment by imiric · 2023-10-02 · in Goodbye integers, hello UUIDv7
  8. …you would want to use a GUID for, but none of the drawbacks of existing implementations.[1] [1]: https://github.com/paralleldrive/cuid2#comparisons
    comment by imiric · 2023-09-11 · in You Don't Need UUID
  9. …answer in any of these dimensions to a plain old UUID maybe I'm just being cynical, I dunno [0] https://github.com/paralleldrive/cuid2/blob/fb07094487ba5ad0... [1] https://github.com/paralleldrive/cuid2/issues/7
    comment by kiitos · 2023-09-11 · in You Don't Need UUID
  10. …being recommended here. I like cuid2 based on input from its README [0] and discussion [1] [0] https://github.com/paralleldrive/cuid2 [1] https://github.com/paralleldrive/cuid2/issues/7
    comment by fuzzythinker · 2023-09-11 · in You Don't Need UUID