Analysis updated 2026-06-24
Generate v4 random UUIDs for primary keys in a Node API
Create deterministic v5 UUIDs from a namespace plus a name
Produce time-ordered v7 UUIDs for sortable database rows
Validate and detect the version of an incoming UUID string
| uuidjs/uuid | ag-grid/ag-grid | redis/ioredis | |
|---|---|---|---|
| Stars | 15,282 | 15,299 | 15,264 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 3/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Version 12 dropped CommonJS, use ESM or pin an older version if you need require().
This is a JavaScript/TypeScript library for generating UUIDs (Universally Unique Identifiers). A UUID is a standardized 128-bit identifier formatted as a string of hexadecimal characters separated by dashes, like "b18794e8-5d0d-417c-b361-ba38e78411b4." They are used in software to give records, sessions, files, or any other entity a unique ID that is statistically guaranteed not to collide with others, even when generated independently across different systems. The library supports all versions of UUID defined in RFC9562 (the current standard, updating the older RFC4122). The most commonly used is v4, which is purely random. Version 1 and v6 are based on the current timestamp, version 3 and v5 are generated from a name and a namespace (using MD5 or SHA-1 respectively), and v7 is based on Unix Epoch time. The library also provides utilities to validate a UUID string, detect which version it is, and convert between binary and string representations. It is designed to be compact: it has zero dependencies and is tree-shakable, meaning a bundler can include only the specific UUID version functions your code actually uses. It uses the browser and Node.js "crypto" API for secure randomness. It works across Chrome, Safari, Firefox, Edge, Node.js, and React Native/Expo. Starting with version 12, the library no longer supports CommonJS module format. Installation is via npm install uuid.
Zero-dependency JavaScript and TypeScript library that generates and validates RFC9562 UUIDs (v1, v3, v4, v5, v6, v7) for Node, browsers, and React Native.
Mainly TypeScript. The stack also includes JavaScript, TypeScript, Node.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.