Skip to content
JS
Package

nanoid

A tiny (118 bytes), secure URL-friendly unique string ID generator

v6.0.1, 3 Aug 2026MITESM onlyTypes: BundledCryptography and hashing
$ npm install nanoid

Key numbers

As of 25 Sept 2026
Weekly downloads
186.2m
+221% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 month ago
v6.0.1
GitHub stars
27k
876 forks
Open issues / PRs
0 / 0
Contributors
154
Commits, last 52 weeks
127

Downloads

Last week 2026-09-15 to 2026-09-21
0100m200m300mSept 2025Mar 2026Sept 2026High 240.5m (18 Aug 2026)Low 41m (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.

186,224,764 downloads last week, 864,424,119 in the last month. The 12-month change of +221% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
20133 in total
Latest version
6.0.1, 3 Aug 20261 month ago
First published
6 Aug 2017
Last push to GitHub
23 Sept 20261 day before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
127
Dependents on npm
17,636

Major versions

  1. v6 first release 6.0.0, 12 Jul 2026
  2. v5 first release 5.0.0, 12 Sept 2023
  3. v4 first release 4.0.0, 8 Jun 2022
  4. v3 first release 3.0.0, 26 Mar 2020
  5. v2 first release 2.0.0, 4 Nov 2018
  6. v1 first release 1.0.0, 22 Oct 2017
  7. v0 first release 0.1.0, 6 Aug 2017

Recent releases

VersionPublished
3.3.1910 Sept 2026
3.3.187 Aug 2026
6.0.13 Aug 2026
3.3.173 Aug 2026
6.0.012 Jul 2026
3.3.1612 Jul 2026
5.1.1624 Jun 2026
3.3.1521 Jun 2026
5.1.1520 Jun 2026
3.3.1420 Jun 2026
5.1.1418 Jun 2026
5.1.1318 Jun 2026
5.1.1218 Jun 2026
3.3.1318 Jun 2026
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
^22 || ^24 || >=26
Runtimes
-
Unpacked size (npm)
14 kB
Dependencies (0)
None
npm install nanoid

CDN

jsDelivr: 17.2m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/nanoid@6.0.1/
  • unpkghttps://unpkg.com/nanoid@6.0.1/
  • esm.shhttps://esm.sh/nanoid@6.0.1

Related

Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.