Elestia Open Source Ratings
6.5

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.

GitHubnpm

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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