Elestia Open Source Ratings
5.6

short-uuid

Reasonable, with limits. 7th of 9 ID generators.

short-uuid is a small, focused library. It turns standard UUIDs into shorter strings, such as 22-character Base58, and back. It does that job well, but it is a niche tool that is losing ground to its peers. Nano ID or a UUIDv7 generator is a better default unless you need a reversible link to UUIDs stored in your database.

Best for: Teams that store standard UUIDs in their database and want short, reversible IDs in URLs and APIs.

GitHubnpm

Scores

Overall5.6

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

It is a sound, focused tool for one need: short, reversible encodings of UUIDs. For most new projects that need IDs, Nano ID, uuid with v7, or ulid are better maintained and growing faster. Maintenance in bursts by one person, and growth below the median, keep it in the reasonable-but-limited band.

  • peers: Nano ID and uuid have far more use and activity; ulid and uuidv7 are growing faster.
  • github.com/oculus42/short-uuid: v6 modernised the codebase, so it remains usable today.
  • npm downloadsSame4WeeksYearAgo: Growth of 2.06x, below the 4.1x median.

GPT-6.2 Sol: 6.1, likely 4.9 to 7.2

Pick short-uuid when a public ID needs to round-trip to a stored UUID without another lookup. For most new projects, Nano ID is the simpler choice for compact opaque IDs, and uuid covers more standard UUID versions. The decoder defect and nearly year-long release gap limit the recommendation, and the timing of a fix remains uncertain.

Needed by many4.1

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Many developers need unique IDs, but only some need short IDs that convert back to UUIDs. Most people who want short IDs use Nano ID instead. That makes this a clear niche within a broad category.

GPT-6.2 Sol: 4.2, likely 3.1 to 5.4

Unique IDs are common, but short-uuid is most useful when an app needs both a standard UUID and a compact string it can decode. Developers report using it to keep UUIDs in PostgreSQL and shorten public links. The size of that group is hard to estimate because the developer survey does not measure reversible UUID encoding.

Helps a lot6.3

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 its narrow job correctly. It supports custom alphabets, pads to a consistent length, validates IDs, accepts pluggable generators such as uuidv7, and has TypeScript types since v6. Its limits: it only does UUID translation, a v6.0.3 patch was needed to fix the types, and an issue asks whether it is still CommonJS-only. For plain short-ID generation, Nano ID is simpler and smaller.

GPT-6.2 Sol: 6.6, likely 5.5 to 7.8

Version 6.0.3 has a small, documented API with TypeScript declarations, configurable alphabets, and support for converting existing UUIDs or generating new ones. The stable decoder can silently truncate out-of-range values. A reproducible benchmark by another Base58 library found slower conversions on Node 22, and performance across other runtimes is less clear.

Holds up over time4.9

Will it still be a good choice in two years?

Claude Opus 5.5: 5.0, likely 3.0 to 6.0

One maintainer has kept the project alive for ten years and closes issues. Work comes in bursts, though, and there has been no push since December 2025, so the Scorecard's Maintained check is 0. The scope is small and stable, so slow work is less risky here, but the project depends on a single unpaid person.

  • github pushedAt: Last push 2025-12-01, almost a year before the read date.
  • scorecard Maintained: Score 0, meaning no recent activity.
  • github commitsLastYear: 15 commits and 3 releases, all in late 2025.
  • github.com/oculus42/short-uuid/releases: Release history shows bursts in 2022, 2024 and 2025.

GPT-6.2 Sol: 4.8, likely 3.5 to 6.3

The three releases in the past year landed within two days around the breaking v6 upgrade, followed by nearly a year without another release. The decoder and packaging changes have waited months for review, and npm lists one collaborator. The small API should be straightforward to maintain, but the recent release history makes it hard to predict when fixes will ship.

Used widely3.9

How many use it, and is that growing?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

It has 3.8M downloads every 4 weeks and 4,300 dependent repos, a modest share compared with ulid (12k) and Hashids (6.5k). Downloads roughly doubled in a year, but that is below the 4.1x median, so it is losing share. It has no Hacker News or Bluesky attention.

  • npm downloadsLast4Weeks: 3.8M now, against 1.85M a year ago (2.06x, below the 4.1x median).
  • dependents repos: 4,300 repos and 386 packages.
  • bluesky posts: 0 posts and 0 Hacker News stories.

GPT-6.2 Sol: 3.7, likely 2.7 to 4.9

ecosyste.ms found 4,300 dependent repositories and 386 packages, well below uuid and Nano ID, and fewer repositories than ULID or Hashids. Four-week downloads rose from 1.85 million to 3.80 million, or 2.06×, against the catalog median of 4.1×. That suggests a loss of relative ground, with some uncertainty because installs include CI and transitive use and the repository count covers only part of GitHub.

  • dependents.repos and dependents.packages: 4,300 observed repositories and 386 observed packages.
  • npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Downloads grew 2.06× against the 4.1× catalog median.
  • peers: Observed repository use trails uuid, Nano ID, ULID, and Hashids.
  • github.stars, hackerNews.stories, and bluesky.posts: 523 stars and zero matched stories or posts in the supplied samples.
Vouched for4.3

Who stands behind it being good?

Claude Opus 5.5: 3.0, likely 2.0 to 4.0

No surveys, benchmarks or well-known adopters vouch for it. The best signals are its steady dependent count and ports in Rust and other languages that copy its design. Comparison sites list it, but only as a catalog entry.

GPT-6.2 Sol: 5.6, likely 4.3 to 6.8

PeerTube ships short-uuid 6.0.3 as a runtime dependency and exposes a short UUID in its video API. Developers independently report using it for compact links, and cal.diy still ships an older release. This shows practical adoption, though the reviewed surveys give no satisfaction or retention data for the package.

Safe6.6

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It has no advisories ever, one small dependency, an MIT licence and a tiny attack surface. Since v6 it uses native crypto for randomness. The OpenSSF Scorecard is weak (3.3): no code review, no security policy, no SAST and broad token permissions, and releases depend on one person.

  • advisories total: 0 advisories.
  • npm dependencies: One runtime dependency.
  • scorecard score: 3.3 overall, with Code-Review, Security-Policy and Token-Permissions all at 0.

GPT-6.2 Sol: 6.1, likely 4.7 to 7.4

The MIT-licensed package uses native cryptographic randomness, has one runtime dependency, and has no recorded OSV advisories. OpenSSF Scorecard gives it 3.3 out of 10, with zeroes for workflow token permissions, code review, and security policy. npm lists one collaborator, and the available checks leave release signing and the publishing process uncertain.

Good

  • It converts both ways between short IDs and real UUIDs, so the database can keep native UUID columns.
  • Since v6 it is written in TypeScript and uses native crypto.randomUUID. It also accepts other generators, such as uuidv7.
  • It ships several alphabets (flickrBase58, cookieBase90, uuid25 Base36), accepts custom ones, and has a validate() helper.
  • It is tiny, with one dependency, an MIT licence and no known advisories.

Bad

  • Development comes in bursts: releases in spring 2024 and late 2025, then no commits for about a year.
  • The v6 release removed the default export and the new() and uuid() methods, which breaks older import styles.
  • It has one maintainer and an OpenSSF Scorecard of 3.3, with no code review, security policy or SAST.
  • Its downloads grew about 2x in a year, below the 4.1x median, so peers such as Nano ID, ulid and uuidv7 are gaining faster.

The numbers

npm downloads, 4 weeks
3.8M ×2.1 in a year
GitHub stars
523
Commits, 12 months
15
npm version
6.0.3 Dec 2025
Versions, 12 months
3
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
3.3 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (oculus42/short-uuid), npm (short-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