# short-uuid: 5.6 out of 10

Reasonable, with limits. 7th of 9 in [ID generators](https://elestia.ai/opensource/ids/index.md).

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.

## Scores

- **Overall: 5.6** (likely 4.5 to 6.6)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (6.1): 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 many: 4.1** (likely 3.1 to 5.2)
  - Claude Opus 5.5 (4.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): 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 lot: 6.3** (likely 5.3 to 7.4)
  - Claude Opus 5.5 (6.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): 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 time: 4.9** (likely 3.3 to 6.2)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (4.8): 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 widely: 3.9** (likely 2.9 to 5.0)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (3.7): 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.
- **Vouched for: 4.3** (likely 3.2 to 5.4)
  - Claude Opus 5.5 (3.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): 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.
- **Safe: 6.6** (likely 5.4 to 7.7)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (6.1): 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

- Downloads, 4 weeks: 3.8M
- In a year: ×2.1
- GitHub stars: 523
- Commits, 12 months: 15
- Last npm release: Dec 2025
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/oculus42/short-uuid
- npm: https://www.npmjs.com/package/short-uuid

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
