News for hackers. Stuff that matters.
Re: by BrunoVT1992 on Thursday March 12, 2026 @04:10AM (#47347831)
GUIDs are the most widely supported identifiers across databases, APIs and programming languages. However, many JavaScript/TypeScript systems use NanoID as an alternative to achieve smaller size, URL-safe encoding, customizable length and excellent performance in web applications.

For the safest, standards-based choice, use GUID / UUID v4 (fully random) or GUID / UUID v7 (time-ordered for databases). Consider NanoID when you need compact URL-safe identifiers for web applications and your ecosystem is primarily JavaScript/TypeScript.