Skip to content
JS
Package

shortid

Amazingly short non-sequential url-friendly unique id generator.

v2.2.17, 23 Jan 2025MITCommonJSTypes: NoneCryptography and hashing
$ npm install shortid

Key numbers

As of 25 Sept 2026
Weekly downloads
803.3k
+7% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
1 year ago
v2.2.17
GitHub stars
5.7k
252 forks
Open issues / PRs
15 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.1m (12 May 2026)Low 447k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

803,280 downloads last week, 3,826,709 in the last month. The 12-month change of +7% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
032 in total
Latest version
2.2.17, 23 Jan 20251 year ago
First published
19 Dec 2011
Last push to GitHub
23 Jan 2025609 days before the snapshot
Repository archived
No
Open issues
15
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v2 first release 2.0.0, 21 Jul 2013
  2. v1 first release 1.0.0, 19 Dec 2011

Recent releases

VersionPublished
2.2.1723 Jan 2025
2.2.1621 Oct 2020
2.2.156 Sept 2019
2.2.144 Nov 2018
2.2.1316 Aug 2018
2.2.1212 Jul 2018
2.2.119 Jul 2018
2.2.108 Jul 2018
2.2.98 Jul 2018
2.2.85 Mar 2017
2.2.75 Mar 2017
2.2.63 Apr 2016
2.2.53 Apr 2016
2.2.417 Oct 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
21 kB
Dependencies (1)
nanoid
npm install shortid
  • jsDelivrhttps://cdn.jsdelivr.net/npm/shortid@2.2.17/
  • unpkghttps://unpkg.com/shortid@2.2.17/
  • esm.shhttps://esm.sh/shortid@2.2.17
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.