dylang/shortid
Short id generator. Url-friendly. Non-predictable. Cluster-compatible. observed · 2026-08-28
Health v2 · maintenance only
34/100
- Activity 3
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5371
- days_rel: n/a
- days_push: 587
- n_releases_24m: 0
Adoption not part of the score
5712 stars · 252 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
shortid is a JavaScript library for generating short, non-sequential, URL-friendly unique IDs suitable for URL shorteners, MongoDB/Mongoose documents, and Redis keys. It is officially deprecated due to an unsafe architecture, with Nano ID recommended as the replacement.
Use cases
- generate short url-friendly unique ids in node.js
- generate ids for mongoose documents
- create non-guessable ids for url shorteners
- generate unique ids across clustered node processes
- generate ids for game sessions that are hard to guess
- replace mongo objectids with shorter string ids
When to choose
- maintaining a legacy codebase that already depends on shortid
- you need cluster-compatible, restart-safe short ids and accept the known architectural weaknesses
When to avoid
- starting a new project - use Nano ID instead
- you need cryptographically secure or unguessable ids
- you need a maintained library with active support
Facets
library · maturity abandoned
developer-tools developer-tools web-development databases browser cross-platform id-generation unique-ids url-friendly deprecated javascript npm nodejs
3 sources
- readme: https://github.com/dylang/shortid · fetched 2026-08-28 · fcce15acd3bb
- homepage: https://www.npmjs.org/package/shortid · fetched 2026-08-29 · 9ebb230ae06e
- registry_npm: https://registry.npmjs.org/shortid · fetched 2026-08-29 · b9eacd5750ca
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dylang/shortid | main | 34 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem