Elestia Open Source Ratings
7.9

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.

GitHubnpm

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

ID generators

  1. 8.5Nano ID
  2. 7.9uuid
  3. 6.5ulid
  4. 6.4uuidv7
  5. 6.2cuid2
  6. 6.1Sqids
  7. 5.6short-uuid
  8. 5.4TypeID
  9. 4.1Hashids
Compare all 9 on six scores