Cuid2: Next Generation GUIDs

3 rane 4 5/12/2025, 2:31:27 PM github.com ↗

Comments (4)

taylodl · 32m ago
> Need unique ids in your app? Forget UUIDs and GUIDs which often collide in large apps. Use Cuid2, instead.

This is misleading. In fact, Cuid2 IDs are more likely to collide than a UUID, but both are negligible. Cuid2 IDs are URL-friendly, that's their biggest advantage.

selfhoster11 · 2h ago
UUIDs do 99% of what this does, even though Base 36 is much better than Base 16 as UUIDs use.
stop50 · 2h ago
When did someone ran into an collision with uuids?!
taylodl · 21m ago
The creator of Cuid, Eric Elliot, claims to have run into collisions with UUIDs. I'm extremely skeptical of that claim. It's far more likely that the site he was working on had an implementation issue. Anyway, here's the article where he explains his motivation for Cuid.

https://medium.com/javascript-scene/identity-crisis-how-mode...