Skip to content
JS
Package

hashids

Generate YouTube-like ids from numbers. Use Hashids when you do not want to expose your database ids to the user.

v2.3.0, 24 May 2023MITESM + CommonJSTypes: BundledCryptography and hashing
$ npm install hashids

Key numbers

As of 25 Sept 2026
Weekly downloads
343k
+49% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 years ago
v2.3.0
GitHub stars
4.3k
204 forks
Open issues / PRs
4 / 7
Contributors
-
Commits, last 52 weeks
5

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 562.8k (18 Aug 2026)Low 132k (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.

343,026 downloads last week, 1,717,213 in the last month. The 12-month change of +49% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
036 in total
Latest version
2.3.0, 24 May 20233 years ago
First published
8 May 2012
Last push to GitHub
12 Feb 2026224 days before the snapshot
Repository archived
No
Open issues
4
Open pull requests
7
Commits, last 52 weeks
5
Dependents on npm
476

Major versions

  1. v2 first release 2.0.0, 31 Aug 2019
  2. v1 first release 1.0.0, 10 Sept 2014
  3. v0 first release 0.1.0, 8 May 2012

Recent releases

VersionPublished
2.3.024 May 2023
2.2.1116 Feb 2023
2.2.1020 Nov 2021
2.2.97 Nov 2021
2.2.818 Dec 2020
2.2.718 Dec 2020
2.2.618 Dec 2020
2.2.518 Dec 2020
2.2.418 Dec 2020
2.2.313 Dec 2020
2.2.27 Nov 2020
2.2.14 Feb 2020
2.2.03 Feb 2020
2.1.09 Nov 2019
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
134 kB
Dependencies (0)
None
npm install hashids

CDN

jsDelivr: 101.2k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/hashids@2.3.0/
  • unpkghttps://unpkg.com/hashids@2.3.0/
  • esm.shhttps://esm.sh/hashids@2.3.0
PackageWeekly downloadsGzipLast releaseModuleComparison
node-object-hash1m-1 year agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.