uuidv7
Reasonable, with limits. 4th of 9 ID generators.
uuidv7 is a small, zero-dependency library from a single author that generates RFC 9562 UUIDv7 (and v4) IDs, with a careful monotonic counter design. It is a sound choice, but the uuid package now ships v7 too and has more maintainers, so most new projects have little reason to add this one.
Best for: Projects that need only time-ordered UUIDv7 keys and want a tiny, zero-dependency generator with strong ordering inside one process.
Scores
Overall6.4
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
It is a well-built UUIDv7 generator that works, is safe in footprint and is growing. The uuid package now covers v7 with far wider trust and more maintainers. That makes this package a reasonable but secondary pick: choose it for its counter design or its small size, and otherwise use uuid.
- github.com/LiosK/uuidv7: Solid RFC 9562 implementation
- npm-compare.com/uuid,uuidv4,uuidv7: uuid recommended as the default for v7
- peers uuid: uuid has 1.59B downloads and 1M dependent repos
GPT-6.2 Sol: 7.2, likely 6.0 to 8.3
Choose uuidv7 when sortable UUIDs and configurable clock rollback behavior matter to your application. The broader uuid package is the better general-purpose UUID choice, and Nano ID is a better fit for compact links. A small maintainer base and the delay in shipping a known fix make the two-year outlook less certain than the core generator's performance.
- tensorust.com/articles/uuidv7-libraries-tested: Independent tests show where uuidv7's clock behavior stands out.
- github.com/uuidjs/uuid: Offers UUIDv7 alongside broader version support, validation, and parsing.
- github.com/ai/nanoid: Offers shorter URL-friendly IDs with configurable length and alphabet.
- github.com/LiosK/uuidv7/blob/main/CHANGELOG.md: Stable 1.2.1 dates to March and the fallback fix is pending release.
- github contributors, peers: Two contributors and a much smaller indexed footprint than the leading peers.
Needed by many5.1
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Many backend and full-stack developers want time-sortable IDs for database keys. This package only makes UUIDv7 and v4 IDs, so it is narrower than the whole ID-generator category, which also covers short URL IDs and other formats.
- cdn.jsdelivr.net/npm/uuidv7@1.2.1/README.md: Makes only UUIDv7 and v4 IDs
- UUIDv7 adoption for DB primary keys: Postgres and other databases now favour v7 for primary keys
GPT-6.2 Sol: 5.1, likely 3.8 to 6.4
Sortable UUIDs are useful for database keys and event IDs, and this package works across Node.js, browsers, and Deno. Many projects can generate IDs in the database or use shorter strings for links. The available survey measures runtime use, so the share of developers who need application-generated sortable UUIDs remains uncertain.
- raw.githubusercontent.com/LiosK/uuidv7/v1.2.1/README.md: Documents Node.js, browser, and Deno usage.
- 2025.stateofjs.com/en-US/other-tools/#js_runtimes: Node.js and browsers led reported runtime use.
- postgresql.org/docs/18/functions-uuid.html: PostgreSQL 18 can generate UUIDv7 in the database.
- github.com/ai/nanoid: Nano ID defaults to 21-character URL-friendly strings.
Helps a lot7.8
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 implements RFC 9562 with a well-documented 42-bit counter, handles clock rollbacks, and offers a fallible generateOrAbort() method. It has types, a byte-level object API and a CLI. Its scope is narrow, and uuid's v7() covers the same need with nearly the same quality.
- github.com/LiosK/uuidv7: Documents the counter design, rollback threshold and V7Generator
- npm hasTypes / dependencies: Ships types and has zero dependencies
- npm-compare.com/uuid,uuidv4,uuidv7: uuid package also offers v7
GPT-6.2 Sol: 8.0, likely 6.9 to 9.0
The typed one-call API is easy to use, and separate generator instances expose clear controls for clock rollback. In an independent Node.js test, version 1.2.1 produced one million ordered IDs with no duplicates, ran about 8% faster than uuid, and resumed using the current time immediately after a simulated one-hour rollback. The default reset breaks order at that jump. Performance evidence comes from one test setup, and a downstream Hermes report exposed a fallback bug whose fix remains unreleased upstream.
- raw.githubusercontent.com/LiosK/uuidv7/v1.2.1/README.md: Documents string and byte-array APIs and rollback behavior.
- npm hasTypes: TypeScript declarations ship with the package.
- tensorust.com/articles/uuidv7-libraries-tested: Independent test compared ordering and clock rollback against uuid.
- huggingface.co/datasets/tensorust/uuidv7-library-test: Test recorded about 560,000 IDs per second versus 521,000 for uuid.
- github.com/PostHog/posthog-js/pull/4616: Reports a production Hermes crash in a vendored copy.
- github.com/LiosK/uuidv7/blob/main/CHANGELOG.md: Lists the matching fallback fix under unreleased 1.3.0.
Holds up over time5.7
Will it still be a good choice in two years?
Claude Opus 5.5: 5.5, likely 4.0 to 7.0
The repository had 25 commits and four npm versions in the past year, and it has no open issues. It depends on one unpaid author, though, and has only two contributors. Because uuid offers v7, the ecosystem may move away from a separate package. The code is small and stable, which lowers the risk if work slows.
- github commitsLastYear / contributors: 25 commits, 2 contributors
- npm versionsLastYear / latestPublishedAt: 4 versions, last published 2026-03
- scorecard Maintained: Maintained check scores 2
GPT-6.2 Sol: 5.8, likely 4.4 to 7.2
The project recorded 25 commits and four npm versions over the past year, with the last publish in March 2026. The upstream fallback fix merged the day it was proposed in August, but it still has no npm release. The project has one identified npm maintainer and no visible funding, and newer versions of Node.js can generate UUIDv7 directly.
- github commitsLastYear, contributors, openIssues, openPullRequests: 25 commits, two contributors, and no open issues or pull requests in the snapshot.
- npm versionsLastYear, latestPublishedAt: Four publishes in a year, with the latest on March 22, 2026.
- github.com/LiosK/uuidv7/pull/17: The downstream fix was merged upstream the same day.
- github.com/LiosK/uuidv7/blob/main/CHANGELOG.md: The fix is still listed under unreleased 1.3.0.
- security.snyk.io/package/npm/uuidv7: Lists one maintainer and no funding.
- nodejs.org/download/release/v26.10.0/docs/api/crypto.html#cryptorandomuuidv7options: Node.js 26 includes a built-in UUIDv7 generator.
Used widely4.1
How many use it, and is that growing?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
It had 16.9M downloads in the last 4 weeks, up from 2.8M a year ago. That ratio of about 6.0 is above the 4.1 median, so the package is gaining ground. ecosyste.ms finds only 2 dependent repos and 8 dependent packages, and the repo has 272 stars. That suggests most installs come through other packages, and that a few thousand projects choose it directly.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 16.9M vs 2.8M, ratio ~6.0
- dependents: 2 repos, 8 packages
- github stars: 272 stars, far below uuid and Nano ID
GPT-6.2 Sol: 3.6, likely 2.1 to 5.3
Four-week installs rose from 2.79 million to 16.87 million, about 6.0 times the prior year and above the catalog median of 4.1 times. The tracked dependent footprint is far behind uuid, Nano ID, and ulid, and the bundle found no matching Hacker News or Bluesky posts. Heavy traffic on old releases and confirmed transitive installs make the number of projects choosing it directly hard to estimate.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Installs grew about 6.0 times against the 4.1 times catalog median.
- dependents, github stars, peers: Two indexed repos, eight indexed packages, and 272 stars.
- hackerNews stories, bluesky posts: Neither source returned a match in the collection window.
- npmjs.com/package/uuidv7?activeTab=versions: The old 0.4.4 build still draws substantial weekly installs.
- github.com/docker/docs/blob/main/package-lock.json: Docker Docs pulls uuidv7 in through Docker's Marlin SDK.
Vouched for4.8
Who stands behind it being good?
Claude Opus 5.5: 3.0, likely 2.0 to 4.5
I found no survey data, no independent benchmark and no named company that endorses it. Some smaller libraries, such as puidv7, build on it. A third-party comparison site recommends uuid instead for new projects.
- npm-compare.com/uuid,uuidv4,uuidv7: Recommends uuid's v7 for new projects
- hackerNews / bluesky: 0 stories, 0 posts
- depscope.dev/pkg/npm/uuidv7: Health 77/100, no known vulnerabilities
GPT-6.2 Sol: 6.5, likely 5.2 to 7.7
PostHog ships copied uuidv7 code in its SDK, and Docker's Marlin web SDK depends on the npm package. An independent benchmark tested the current release and favored its clock rollback behavior for applications that care about the embedded time. These are concrete signs of trust, though package-level satisfaction and retention data are scarce.
- github.com/PostHog/posthog-js/blob/main/LICENSE: Credits uuidv7 code in PostHog core and its compiled distributions.
- github.com/PostHog/posthog-js/pull/4616: Documents the vendored generator running in a production app.
- github.com/docker/docs/blob/main/package-lock.json: Docker's Marlin web SDK pins uuidv7 1.1.0.
- tensorust.com/articles/uuidv7-libraries-tested: Independent comparison tested 1.2.1 and favored its timestamp recovery.
Safe6.5
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
It has zero dependencies, no advisories ever, and a permissive Apache-2.0 licence, so the attack surface is small. The OpenSSF Scorecard is 2.3: there is no branch protection, no code review, no security policy and no signed releases, and one person publishes it.
- advisories total: 0 advisories
- scorecard score: 2.3; Code-Review, Branch-Protection and Security-Policy all score 0
- npm dependencies / license: 0 dependencies, Apache-2.0
GPT-6.2 Sol: 6.4, likely 5.1 to 7.7
The permissive Apache-2.0 licence, zero runtime dependencies, and zero recorded OSV advisories keep the dependency risk down. The OpenSSF Scorecard is 2.3 out of 10, with zero scores for code review, branch protection, and security policy. One npm maintainer is identified, and the available checks leave the publishing process and release signing unverified. The default Math.random fallback adds risk in environments without Web Crypto.
- npm dependencies, npm license, advisories: Zero runtime dependencies, Apache-2.0, and zero recorded advisories.
- scorecard: 2.3 overall, with packaging and signed releases unscored.
- security.snyk.io/package/npm/uuidv7: Identifies one maintainer and no known direct vulnerabilities.
- github.com/LiosK/uuidv7/blob/v1.2.1/src/index.ts: Uses Web Crypto when available and otherwise allows a Math.random fallback.
Good
- It has no dependencies, ships its own types and runs in Node, browsers and Deno.
- A 42-bit counter plus clock-rollback handling keeps IDs from one process in order.
- The API is small and clear: uuidv7(), uuidv7obj() for raw bytes, V7Generator, and a CLI.
- Downloads grew about sixfold in a year, faster than the median project.
Bad
- The uuid package now offers v7() too, which takes away most of the reason to add a separate package.
- One maintainer, no GitHub releases, and an OpenSSF Scorecard of 2.3 with no branch protection or code review.
- Very few direct dependents, so most downloads come in through other packages.
- The CommonJS entry point is deprecated and no longer tested.
The numbers
- npm downloads, 4 weeks
- 17M ×6.0 in a year
- GitHub stars
- 272
- Commits, 12 months
- 25
- npm version
- 1.2.1 Mar 2026
- Versions, 12 months
- 4
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 2.3 out of 10, Nov 2026
- Licence
- Apache-2.0
Read on 21 November 2026 from GitHub (LiosK/uuidv7), npm (uuidv7), OSV and the OpenSSF Scorecard.