Elestia Open Source Ratings
6.1

Sqids

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

Sqids is the official JavaScript port of the Hashids successor. It turns integers, such as database keys, into short, URL-safe IDs that you can decode back, so it is not a random ID generator like Nano ID or uuid. It does that small job well, with no dependencies. But it is still at 0.3.0 from September 2023, the repository has had no commits in the last year, and pull requests are not being answered, so it is a reasonable but static choice.

Best for: Projects that want to show integer primary keys as short, reversible IDs in URLs.

WebsiteGitHubnpm

Scores

Overall6.1

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

Claude Opus 5.5: 5.5, likely 4.5 to 6.5

If you need reversible short IDs from integer keys, Sqids is the right family and a better choice than Hashids for new work. But the JavaScript port is idle at 0.x, has no BigInt support, and has little independent validation. For generating new unique IDs, Nano ID, uuid (v7) or cuid2 are the better choice. It ranks above Hashids but below the active, general-purpose peers.

  • github releasesLastYear: No releases in the last year
  • peers: Nano ID and uuid are active, with 139 and 36 commits last year
  • sqids.org: Official Hashids successor for new projects

GPT-6.2 Sol: 6.6, likely 5.5 to 7.7

Sqids is a good choice when a new project needs short, reversible URLs for existing numeric keys. Nano ID is a stronger default for new compact random IDs, and uuid is a stronger default when standards-based IDs matter. The long release gap and missing BigInt support cap the recommendation, while the small API and direct downstream use support its niche.

Needed by many3.9

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Sqids does a narrower job than the category: it encodes existing integers into short reversible strings, and it does not create new unique IDs. It fits apps with integer primary keys that want nice URLs, link shorteners and similar work. Most ID needs are met by random or time-ordered IDs instead.

  • sqids.org: Generates short IDs from non-negative numbers; poor fit for sensitive data or user IDs
  • github.com/sqids/sqids-javascript: README lists link shortening, public URLs and database lookups as the use cases

GPT-6.2 Sol: 3.7, likely 2.7 to 4.8

Many apps need IDs, but Sqids serves the smaller group that already has numeric keys and wants a short, reversible representation. It works in both server and browser code. The size of that audience is hard to measure directly.

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

For its niche it works well: a small, typed API that is consistent across languages, with a blocklist, padding and custom alphabets. Clear limits keep it out of the top band: inputs stop at Number.MAX_SAFE_INTEGER with no BigInt, decoding is not canonical without a re-encode check, and it gives no secrecy. The algorithm is simple and well documented, so AI agents usually write correct code for it.

GPT-6.2 Sol: 7.1, likely 6.0 to 8.1

Version 0.3.0 has a small typed API and clear examples that are easy to follow by hand or with a coding agent. It handles short, configurable encodings well, but callers need to check canonical IDs themselves. The released API lacks BigInt, which Hashids supports. Independent JavaScript performance evidence is limited.

Holds up over time4.3

Will it still be a good choice in two years?

Claude Opus 5.5: 4.0, likely 2.5 to 5.5

No commits and no releases in the last year, the latest version is 0.3.0 from September 2023, and Dependabot and feature PRs from as far back as 2025 sit unanswered. The algorithm is small and its cross-language spec is frozen, so the code does not age fast, and having no dependencies helps. Still, there is no sign of funding or active maintainers to fix bugs or add BigInt.

  • github commitsLastYear: 0 commits, 0 releases last year
  • npm latestPublishedAt: 0.3.0 published 2023-09-08
  • github.com/sqids/sqids-javascript/pulls: 4 open PRs from Oct 2025 to Aug 2026 with no review

GPT-6.2 Sol: 4.6, likely 3.2 to 6.1

The JavaScript port recorded zero commits or releases in the past year, while uuid and Nano ID continued shipping. BigInt support has been requested since 2023, and the August 2026 patch is still open. The small API and shared specification give the current release some staying power, though the timing of future fixes is uncertain.

Used widely4.1

How many use it, and is that growing?

Claude Opus 5.5: 4.0, likely 3.0 to 5.5

Downloads went from about 0.48M to 19.3M per 4 weeks, a ratio near 40 against a median of 4.1. A jump that large, while ecosyste.ms finds only 2 dependent repos and 1 package, points to a popular tool that now installs it, not to developers choosing it. Direct use is probably in the thousands to low tens of thousands of projects, below Hashids' 6,496 dependent repos and far below Nano ID and uuid.

  • npm downloadsLast4Weeks: 19.3M vs 0.48M a year ago
  • dependents: 2 repos, 1 package, versus Hashids 6,496 repos
  • github stars: 912 stars, versus 4,280 for Hashids
  • bluesky posts: 0 posts linking the repo

GPT-6.2 Sol: 4.2, likely 2.6 to 5.9

Four-week npm downloads rose from 477,000 to 19.35 million, about 41-fold against a catalog median of 4.1-fold. The popular tmcp package installs Sqids, so the spike overstates how many developers chose it directly. The small indexed dependent count, 912 stars, and quiet recent discussion suggest a smaller direct footprint than Hashids or ULID. The mix of direct installs, downstream installs, and CDN use is uncertain.

  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads grew about 40.6-fold, nearly ten times the catalog median ratio.
  • dependents, github stars, hackerNews, bluesky, peers: The index found two repositories and one npm package, with little recent discussion.
  • npmjs.com/package/tmcp?activeTab=dependencies: Lists Sqids as a dependency of the heavily downloaded tmcp package.
  • npmjs.com/search?q=keywords%3Asqids: npm lists about two dozen package dependents, indicating incomplete coverage in the supplied index.
  • jsdelivr.com/package/npm/sqids: Direct browser delivery is available outside npm install counts.
Vouched for4.3

Who stands behind it being good?

Claude Opus 5.5: 3.0, likely 2.0 to 4.5

Its main support is its lineage: it is the official rebrand of Hashids, with ports in 40+ languages. I found no surveys, independent benchmarks or named production users for the JavaScript port, and Hacker News stories got almost no attention. Only a few developer write-ups mention it.

  • sqids.org: Formerly Hashids; 40+ language ports
  • hackerNews: Two stories with 5 and 2 points and no comments
  • jsr.io/@denostack/bijector: A third-party package recommends sqids for short alphanumeric codes

GPT-6.2 Sol: 5.5, likely 4.3 to 6.8

Talo's game backend depends on the JavaScript package, and the trace.moe API uses it in server code. The tmcp SDK is another direct adopter, and ClickHouse ships its own implementation of the format. State of JavaScript provides no Sqids satisfaction result, and independent JavaScript benchmarks are scarce.

Safe7.5

How safe is it to depend on?

Claude Opus 5.5: 7.5, likely 6.0 to 8.5

It has zero runtime dependencies, an MIT licence and no known advisories, and the code is small and easy to audit. There is no OpenSSF Scorecard, the release process is not documented, and the project is idle, so a future issue might be fixed slowly. Misuse is also a risk, since users may treat its IDs as secret, but the docs warn against that.

  • npm dependencies: 0 dependencies
  • advisories total: No OSV advisories
  • scorecard: No Scorecard data
  • sqids.org: Docs warn that it is not encryption

GPT-6.2 Sol: 7.4, likely 6.1 to 8.6

Sqids has zero runtime dependencies, a permissive MIT license, and no recorded OSV advisories. GitHub shows recent automated code scanning and attributes the latest release to GitHub Actions. The repository lacks a published security policy, and the available evidence leaves npm publishing access and provenance uncertain.

Good

  • Zero dependencies, TypeScript types included, and a tiny API: encode and decode arrays of numbers.
  • The spec is shared across 40+ language ports, so the same IDs decode correctly in backends written in other languages.
  • It has a built-in profanity blocklist, custom alphabets and minimum-length padding.
  • It is the official successor to Hashids and the clear upgrade path for new work of that kind.

Bad

  • There has been no release since 0.3.0 in September 2023 and no commits in the last year, and open PRs (including one for BigInt support) have no maintainer reply.
  • Inputs are limited to Number.MAX_SAFE_INTEGER, so 64-bit or Snowflake IDs need another tool.
  • It is not encryption: anyone who learns the alphabet can decode IDs and see record counts.
  • Several IDs can decode to the same numbers, so you must re-encode and compare to get canonical IDs.

The numbers

npm downloads, 4 weeks
19M ×41 in a year
GitHub stars
912
Commits, 12 months
0
npm version
0.3.0 Sept 2023
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

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