uuid
A strong pick. 2nd of 9 ID generators.
uuid is the standard JavaScript library for RFC 9562 UUIDs: v1, v3, v4, v5, v6 and v7, plus validate and parse. It has zero dependencies and is actively maintained. It is a strong pick when you need v7, name-based v5 or UUID utilities, but for plain random v4 IDs the built-in crypto.randomUUID() now does the job with no dependency.
Best for: Projects that need standard UUIDs, especially time-ordered v7 or deterministic v5, for databases and external systems.
Scores
Overall7.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.5, likely 6.5 to 8.0
It is the clear pick when you need real RFC UUIDs beyond v4, especially v7 primary keys. It is correct, typed, dependency-free and maintained. It falls short of the category default because crypto.randomUUID() covers the common v4 case, Nano ID is gaining faster for short IDs, and frequent ESM-only majors add friction.
- peers Nano ID downloads: Nano ID grew 5.3x, against uuid's 2.26x.
- pkgpulse.com/guides/nanoid-vs-uuid-2026: Splits the recommendation: uuid for standard UUIDs, nanoid for compact IDs, randomUUID for plain v4.
- github.com/uuidjs/uuid/blob/main/CHANGELOG.md: Active releases, with three breaking majors in a short span.
GPT-6.2 Sol: 8.2, likely 7.0 to 9.1
Uuid is a strong choice for new projects that need standard UUIDs across runtimes, especially when they also need deterministic generation or validation. Built-in APIs cover common v4 and some v7 use cases, and Nano ID is a better fit for compact links when UUID compatibility is optional. Active maintenance supports the recommendation, while breaking upgrades and below-median install growth limit confidence in broader adoption.
- github.com/uuidjs/uuid: Multiple UUID formats and helpers across runtimes
- nodejs.org/docs/latest-v24.x/api/crypto.html: Native v4 and v7 APIs available on Node.js 24 LTS
- github.com/ai/nanoid: Peer offers compact 21-character URL-friendly IDs
- github.com/uuidjs/uuid/blob/main/CHANGELOG.md: Recent fixes alongside CommonJS and Node.js support changes
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Install growth trailed the catalog median
Needed by many6.9
How many developers need a tool for this job?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Most apps that store records need unique IDs, and UUIDs are the format databases and APIs expect. Still, many developers need only v4, which crypto.randomUUID() now covers natively. That leaves the package's own value to people who need v7, v5 or the utilities.
- pkgpulse.com/guides/nanoid-vs-uuid-2026: Recommends uuid when you need the standard format for Postgres or APIs, and randomUUID when you need only v4.
- dependents: About 1.0M dependent repos and 41k packages show very broad need.
GPT-6.2 Sol: 6.8, likely 5.6 to 8.0
Records, links, and files commonly need IDs, and UUIDs work across browsers, servers, and databases. Built-in v4 generation covers many simple cases, and format requirements determine how many teams need a separate library.
- rfc-editor.org/rfc/rfc9562: Standard UUID formats for interoperable identifiers
- github.com/uuidjs/uuid: Documents browser, Node.js, and React Native support
- developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID: Widely available browser API for v4 IDs
Helps a lot8.1
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
It has full RFC 9562 coverage, including v7 and v6, plus validate, parse and version helpers, ships types and has zero dependencies. Recent patches fixed v1 and v7 correctness edge cases. It is limited by ESM-only packaging, which breaks some Jest and CommonJS setups, and it adds little over the native randomUUID for v4.
- github.com/uuidjs/uuid: README lists v1 to v7 generators and says CommonJS has not been supported since v12.
- github.com/uuidjs/uuid/blob/main/CHANGELOG.md: 14.0.2 fixed v1 nsecs overflow and the v7 seq formula, and 12.0.0 improved v4 performance.
- github.com/parse-community/Parse-SDK-JS/pull/2804: uuid v13 ESM broke Jest until transformIgnorePatterns was changed.
- npm hasTypes: Ships its own TypeScript types.
GPT-6.2 Sol: 8.6, likely 7.5 to 9.5
Version 14.0.3 covers the main UUID generation modes and includes validation, version detection, and byte conversion. Named exports and typed examples make common calls straightforward for developers and coding agents. The default v4 path uses native generation when available, while the independent benchmark covers an older release and leaves current performance across runtimes less certain.
- github.com/uuidjs/uuid: API examples, supported versions, and runtime requirements
- npm hasTypes, latestVersion: Version 14.0.3 ships its own types
- github.com/uuidjs/uuid/blob/v14.0.3/src/v4.ts: Default v4 call delegates to native randomUUID when available
- github.com/2fd/benchmark-uuid: Independent benchmark found uuid v9 close to native v4
Holds up over time7.3
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
The project is actively maintained, with 36 commits and 8 releases in the last year, zero open issues and a 15-year history. A small volunteer team does the work, with no visible funding. Majors v12, v13 and v14 shipped within about seven months, which forces upgrade churn. Native randomUUID also shrinks the package's role over time.
- github commitsLastYear / releasesLastYear: 36 commits and 8 releases in the last year, latest on 2026-10-10.
- github.com/uuidjs/uuid/blob/main/CHANGELOG.md: v12 (2025-09), v13 (2025-09) and v14 (2026-04) were all breaking.
- github openIssues: 0 open issues and 445 closed, so issues get handled.
GPT-6.2 Sol: 7.6, likely 6.4 to 8.6
Eight releases and 36 commits in the last year show ongoing maintenance, and the October release addressed a Node.js compatibility test report within eight days. Dropping the CommonJS build broke some downstream setups, and Node.js 24 LTS now includes native v7 generation. Long-term funding and the number of people who can publish remain unclear.
- github commitsLastYear, releasesLastYear, latestRelease: 36 commits and eight releases, with a stable October release
- github.com/nodejs/citgm/issues/1154: Compatibility test report opened October 2 and closed October 10
- github.com/pipeshub-ai/pipeshub-ai/issues/2500: Downstream project reported a CommonJS import failure
- nodejs.org/en/blog/release/v24.16.0: Node.js 24 LTS added built-in v7 generation
Used widely8.6
How many use it, and is that growing?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
It has about 1.6B downloads every 4 weeks and about 1.0M dependent repos, one of the most-used packages on npm. Most downloads are transitive. Its year-over-year ratio of 2.26 is well below the 4.1 median and below Nano ID's 5.3, so its share of new choices is falling.
- npm downloadsLast4Weeks: 1.59B now, against 703M a year ago, a ratio of 2.26 against a median of 4.1.
- dependents repos: 1,006,437 repos, behind Nano ID's 1.6M and far ahead of the other peers.
- bluesky posts: Only 1 post, so little fresh attention.
GPT-6.2 Sol: 8.1, likely 6.9 to 9.1
The collector found about one million dependent repositories and 41,000 dependent npm packages, behind Nano ID on tracked repositories and well ahead of most peers. Four-week installs grew 2.26× year over year, below the 4.1× catalog median and Nano ID's 5.30×. Transitive installs inflate the total, and the dependent counts alone cannot show how many new projects choose uuid.
- dependents repos, packages: 1,006,437 tracked repositories and 41,299 tracked packages
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 1.59 billion versus 703 million installs, below median growth
- peers Nano ID: 1.62 million tracked repositories and 5.30× install growth
- project note: Many installs come through other packages
Vouched for6.8
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
Countless major projects and SDKs depend on it, and independent 2026 guides name it the choice for standard UUIDs. No developer survey measures it, and the same guides increasingly point v4 users to the native API. Most of the trust comes from long use, not from current, independent evaluation.
- pkgpulse.com/guides/nanoid-vs-uuid-2026: Independent guide recommends uuid for RFC UUIDs and v7 keys.
- medium.com/@matynelawani/uuid-vs-crypto-randomuuid-vs-nanoid-313e18144d8c: Comparison that positions randomUUID as the default for v4.
- dependents packages: 41,299 npm packages build on it.
GPT-6.2 Sol: 7.1, likely 5.9 to 8.2
Temporal's TypeScript client and n8n's core package still depend on uuid, with their manifests pointing to the v11 line. Firebase Admin moved to native crypto, and AWS SDK clients switched to their own UUID package. Evidence for v14 in production is thinner, and the State of JavaScript survey provides no package-specific satisfaction measure.
- github.com/temporalio/sdk-typescript/blob/main/packages/client/package.json: Temporal's client declares uuid v11 as a runtime dependency
- github.com/n8n-io/n8n/blob/master/packages/core/package.json: n8n core declares uuid as a runtime dependency
- github.com/n8n-io/n8n/blob/master/pnpm-workspace.yaml: n8n's workspace pins uuid 11.1.1
- firebase.google.com/support/release-notes/admin/node: Firebase Admin replaced uuid with native crypto in May 2026
- github.com/aws/aws-sdk-js-v3/pull/7372: AWS SDK clients switched to @smithy/uuid
- 2025.stateofjs.com/en-US/other-tools: Utility survey offers no uuid-specific satisfaction data
Safe7.0
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It has zero dependencies and an MIT licence. Its only advisory, a moderate buffer bounds bug from 2026, was fixed and backported to three major lines. The Scorecard of 4.4 is weak: Dangerous-Workflow, Token-Permissions and Security-Policy all score 0. Because the package is so widely installed, it would be a high-value target for a supply-chain attack.
- github.com/advisories/GHSA-w5hq-g745-h8pq: Moderate out-of-bounds write, patched in 11.1.1, 12.0.1 and 13.0.1.
- scorecard: Score 4.4, with several CI hardening checks at 0.
- npm dependencies: 0 runtime dependencies.
GPT-6.2 Sol: 7.0, likely 5.8 to 8.2
The MIT license and zero runtime dependencies keep dependency risk small. The moderate buffer-handling advisory was fixed in v14.0.0, with patches for three older release lines. Releases publish with npm provenance using a stored token, while weak workflow, token-permission, and code-review scores leave uncertainty about the release controls.
- npm license, dependencies: MIT license and zero runtime dependencies
- github.com/uuidjs/uuid/security/advisories/GHSA-w5hq-g745-h8pq: Moderate advisory with fixes on the v11, v12, and v13 lines
- github.com/uuidjs/uuid/releases: Fix in v14.0.0 and backports released in April
- github.com/uuidjs/uuid/blob/v14.0.3/.github/workflows/release-please.yml: Automated npm publishing with provenance and a stored release token
- scorecard score, checks: 4.4 overall, with weak workflow and review checks
Good
- It covers every RFC 9562 version you are likely to need: v1, v3, v4, v5, v6 and v7, plus validate, parse, stringify and version.
- It has zero runtime dependencies and ships TypeScript types.
- It is actively maintained: 8 releases in the last year, and the 2026 security fix was backported to the v11, v12 and v13 lines.
- Almost every database, API and AI coding agent knows the API well.
Bad
- For random v4 IDs, the built-in crypto.randomUUID() makes the package unneeded.
- Since v12 it ships ESM only, and three majors in about seven months caused Jest and CommonJS friction for users.
- The OpenSSF Scorecard is 4.4, with 0 on Dangerous-Workflow, Token-Permissions and Security-Policy.
- Its downloads grew more slowly than the median and than Nano ID, so it is losing share.
The numbers
- npm downloads, 4 weeks
- 1.6B ×2.3 in a year
- GitHub stars
- 15k
- Commits, 12 months
- 36
- npm version
- 14.0.3 Oct 2026
- Versions, 12 months
- 8
- Advisories, 24 months
- 1 of 1 ever
- OpenSSF Scorecard
- 4.4 out of 10, Nov 2026
- Licence
- MIT
Many packages install it, so most downloads are not a direct choice.
Read on 21 November 2026 from GitHub (uuidjs/uuid), npm (uuid), OSV and the OpenSSF Scorecard.