Identifier guides
Practical help for choosing and using identifiers.
Choosing an identifier
Compare CUID2, UUID, and database integers through worked decisions.
CUID2 in JavaScript and TypeScript
Generate and validate IDs, with a downloadable verification example.
Understanding collision probability
Work through the birthday estimate and two example calculations.
CUID v1 anatomy and migration
Read legacy fields and change generators while preserving existing IDs.
For release analysis and runnable database and migration examples, read the articles & updates.