ulid
Reasonable, with limits. 3rd of 9 ID generators.
ulid is the reference JavaScript library for ULIDs: 26-character IDs that sort by creation time. It is small, has no dependencies and works well. But it has one maintainer who releases slowly, and for new database keys the standard UUIDv7 (from uuid or uuidv7) is now often the better pick.
Best for: Projects that want short, time-sortable, case-insensitive string IDs and prefer the ULID format.
Scores
Overall6.5
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
ulid is a sound, small, dependency-free library for a format that is still popular, and its use is growing. Thin maintenance, open bug reports without answers, and the rise of standard UUIDv7 keep it below uuid and Nano ID. It is a reasonable pick when you want the ULID format in particular.
- peers: uuid and Nano ID are far more active and widely used
- mintlify.com/jkomyno/uniku/guides/choosing-an-id: UUIDv7 is often recommended for database keys
- github commitsLastYear: Low activity
GPT-6.2 Sol: 7.0, likely 5.9 to 8.0
ulid is a strong pick when the 26-character ULID format is a requirement, especially when one generator must preserve order within a millisecond. For a new database schema, uuid v7 is the better default when standard UUID support matters, and Nano ID is a stronger fit for short random strings. Slow maintenance and an open validation bug limit confidence in future fixes, even as downloads gain ground.
- github.com/ulid/javascript: Documents the 26-character format, monotonic factory, and small API.
- github.com/ulid/javascript/pull/133: The latest stable validator still accepts some out-of-range IDs.
- github.com/uuidjs/uuid: The uuid peer implements the standardized sortable UUIDv7 format.
- github.com/ai/nanoid: Nano ID defaults to 21-character random IDs and supports custom lengths.
- github commitsLastYear, npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Sparse maintenance alongside above-baseline download growth.
Needed by many5.7
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Most apps that store records need IDs, so the category is broad. ULID's take, time-sortable string IDs, mainly serves database keys and logs, and it competes there with UUIDv7. It runs on every major JS runtime.
- github.com/ulid/javascript: Runs in Node 18+, browsers, React Native and Web Workers
- mintlify.com/jkomyno/uniku/guides/choosing-an-id: Sortable IDs are one main use case beside random IDs
GPT-6.2 Sol: 5.3, likely 4.1 to 6.6
Generating IDs is common across web apps, services, and tools. ulid serves the narrower group that benefits from compact text IDs that sort by time, across Node.js, browsers, and other supported runtimes. Built-in UUID generation covers many projects, and the survey gives little direct evidence about how many teams need ULID specifically.
- github.com/ulid/javascript: Compact sortable format and support across several runtimes.
- 2025.stateofjs.com/en-US/other-tools: Node.js and browsers lead runtime use. No dedicated ID-generator result.
- nodejs.org/download/release/v26.10.0/docs/api/crypto.html#cryptorandomuuidv7options: Node.js offers built-in random UUIDs and added UUIDv7 in 26.1.
Helps a lot6.6
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It does one job correctly: secure random IDs, monotonic generation, time decoding, and types. It is missing binary and UUID conversion. One open report of a malformed ID and one of slow non-monotonic generation have no answer. UUIDv7 libraries give the same ordering in a standard format that databases and AI agents know better.
- github.com/ulid/javascript/releases: v3 rewrite based on ulidx; fixes for random bias and a PRNG edge case
- github.com/ulid/javascript/issues: Open issues: malformed ULID, slow ulid(), byte-array conversion, UUIDv7 option
- dev.to/snappy_tools/uuid-v4-vs-uuid-v7-vs-ulid-vs-nanoid-which-should-you-use-4k9i: Independent comparison of ULID with UUIDv7 and Nano ID
- npm hasTypes: Ships its own types
GPT-6.2 Sol: 7.2, likely 6.1 to 8.3
Version 3.0.2 has a small, documented TypeScript API for generation, per-factory monotonic ordering, timestamp decoding, and UUID conversion. The examples make the common calls straightforward for developers and coding agents. The validator misses a timestamp bound, and outside benchmarks put default generation well behind UUIDv7 in bulk. The size of that speed gap depends on the runtime and workload.
- github.com/ulid/javascript: Usage examples, timestamp helpers, and documented runtime support.
- github.com/ulid/javascript/blob/v3.0.2/source/index.ts: Stable public exports include conversion helpers and typed errors.
- github.com/ulid/javascript/pull/133: Open fix for disagreement between validation and timestamp decoding.
- github.com/ulid/javascript/issues/126: User benchmark found the default path much slower than monotonic ulid and uuidv7.
- github.com/thomastheyoung/nexid#performance: A separate Node.js benchmark also put default ulid behind uuid v7.
Holds up over time5.1
Will it still be a good choice in two years?
Claude Opus 5.5: 5.0, likely 3.0 to 6.0
The maintainer of ulidx took over in 2025 and shipped v3 and two patch releases. Since then there have been only 3 commits in a year, the last push was in February 2026, and the Scorecard Maintained check is 0. The spec is stable, so little work is needed, but there is one releaser and no known funding.
- github commitsLastYear: 3 commits, 1 release in last year
- scorecard Maintained: Score 0
- github.com/ulid/javascript/releases: All recent releases published by perry-mitchell
GPT-6.2 Sol: 5.2, likely 3.8 to 6.6
The repository recorded three commits and one release in the past year, and fixes for validation and performance are still waiting. Version 3 removed legacy entry points, and one account handled the recent releases. A small, established format can stay useful with few changes. Faster-moving peers and built-in UUIDv7 support make the outlook less certain.
- github commitsLastYear, releasesLastYear, latestRelease: Three commits and one release. The latest release was November 30, 2025.
- github.com/ulid/javascript/pulls: Validation and performance fixes are still open.
- github.com/ulid/javascript/releases: Recent releases came from one account. V3 removed AMD support and two exports.
- peers: uuid and Nano ID committed and published more recently.
- postgresql.org/docs/18/functions-uuid.html: PostgreSQL 18 can generate sortable UUIDv7 keys directly.
Used widely5.9
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Downloads rose from 10.2M to 69.9M per 4 weeks. That ratio of 6.9 beats the 4.1 median, but part of the jump is probably installs through other tools. ecosyste.ms counts 12k dependent repositories: far below Nano ID and uuid (over 1M each), but above Hashids and short-uuid.
- npm downloadsLast4Weeks: 69.9M vs 10.2M a year ago
- dependents: 12,027 repos, 482 packages
- github stars: 3,447 stars
GPT-6.2 Sol: 5.8, likely 4.6 to 7.0
Four-week downloads rose from 10.2 million to 69.9 million, about 6.9× year over year against the catalog median of 4.1×. ecosyste.ms found 12,027 dependent repositories and 482 packages, well below uuid and Nano ID in tracked repositories. The growth signals rising use, while automated and transitive installs make it hard to tell how many new projects chose ulid directly.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Download growth was above the catalog baseline.
- dependents, peers: Around 12,000 tracked repos, compared with over a million each for uuid and Nano ID.
- github stars, hackerNews stories, bluesky posts: 3,447 stars and no matched Hacker News stories or Bluesky repository links.
- github.com/inngest/inngest-js/blob/main/packages/inngest/package.json: The Inngest SDK brings in ulid as a runtime dependency.
Vouched for5.7
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 3.0 to 6.0
ULID is a widely known format, and independent comparisons and an arXiv paper discuss it. None of them endorse this library in particular. No surveys, benchmarks, or named production users vouch for it, and there were no Hacker News or Bluesky posts.
- arxiv.org/pdf/2509.08969: Academic comparison of UUIDv4, UUIDv7 and ULID
- hackerNews/bluesky: 0 stories, 0 posts
- dev.to/_d7eb1c1703182e3ce1782/uuid-vs-ulid-vs-cuid-which-should-you-use-4n73: Comparisons treat ULID as a common sortable option
GPT-6.2 Sol: 6.4, likely 5.2 to 7.6
Netlify CLI ships with ulid v3, and the Inngest SDK still depends on v2. The Lasterm maintainers documented their upgrade to 3.0.2 and verified their Windows builds. These are concrete examples of downstream use, with little survey evidence on satisfaction or retention for this specific package.
- github.com/netlify/cli/blob/main/package.json: Netlify CLI declares ulid v3 as a runtime dependency.
- github.com/inngest/inngest-js/blob/main/packages/inngest/package.json: The Inngest SDK declares ulid v2 as a runtime dependency.
- github.com/khiops/lasterm/pull/335: Downstream maintainers documented and tested a September 2026 upgrade to 3.0.2.
- 2025.stateofjs.com/en-US/other-tools: The survey does not report ulid satisfaction or retention.
Safe6.7
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It has zero dependencies, no advisories, and an MIT licence. A low-severity randomness bias was fixed in v3.0.2. The Scorecard is 3, with no branch protection, no security policy, and unpinned dependencies, and one person publishes releases.
- npm dependencies: 0 dependencies
- advisories total: 0 advisories
- scorecard score: 3/10; Branch-Protection, Security-Policy, Token-Permissions at 0
- github.com/ulid/javascript/releases: v3.0.2 fixed biased random generation
GPT-6.2 Sol: 6.3, likely 5.1 to 7.6
The MIT license is permissive, and zero runtime dependencies limit exposure. The OSV snapshot is clear, and Aikido records a low-severity randomness bias fixed in 3.0.2 nine days after the public report, following an earlier private report. OpenSSF scores the project 3 out of 10, with weak code review and zero scores for branch protection, workflow token permissions, pinned dependencies, and a security policy. npm lists two collaborators, recent releases came from one account, and publishing provenance remains unverified.
- npm dependencies, npm license, advisories total: Zero runtime dependencies, MIT license, and zero OSV entries.
- intel.aikido.dev/cve/AIKIDO-2025-10882: Independent advisory identifies v3.0.0 and v3.0.1 as affected and v3.0.2 as fixed.
- github.com/ulid/javascript/pull/128: Public report on November 21, 2025, mentions earlier private disclosure.
- github.com/ulid/javascript/releases/tag/v3.0.2: The November 30 release shipped the randomness fix.
- scorecard score, scorecard checks: Score of 3. Packaging and signed releases were unscored.
- npmjs.com/package/ulid?activeTab=versions: npm lists two package collaborators.
Good
- It has zero dependencies, ships TypeScript types and offers both ESM and CommonJS entry points.
- monotonicFactory keeps IDs strictly ordered within the same millisecond.
- It uses a cryptographically secure random source by default, and v3.0.2 fixed a bias in random generation.
- v3 runs in Node 18+, browsers, React Native and Web Workers.
Bad
- Maintenance is thin: 3 commits and one release in the last year, and open issues such as a malformed-ID report have no visible reply.
- ULID is not an IETF standard, while UUIDv7 (RFC 9562) gives the same time ordering and databases support it natively.
- The v3 rewrite removed factory, detectPrng, AMD and script-tag use, which broke older code.
- It has no built-in conversion to 16-byte arrays or UUIDs, which users have asked for.
The numbers
- npm downloads, 4 weeks
- 70M ×6.9 in a year
- GitHub stars
- 3.4k
- Commits, 12 months
- 3
- npm version
- 3.0.2 Nov 2025
- Versions, 12 months
- 1
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.0 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (ulid/javascript), npm (ulid), OSV and the OpenSSF Scorecard.