Skip to content
JS
Package

otpauth

One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers

v9.5.2, 3 Sept 2026MITESM + CommonJSTypes: BundledAuthentication and authorisation
$ npm install otpauth

Key numbers

As of 25 Sept 2026
Weekly downloads
1.9m
+198% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
21 days ago
v9.5.2
GitHub stars
1.5k
85 forks
Open issues / PRs
0 / 2
Contributors
-
Commits, last 52 weeks
49

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.2m (8 Sept 2026)Low 444.4k (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.

1,888,896 downloads last week, 8,582,529 in the last month. The 12-month change of +198% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
3109 in total
Latest version
9.5.2, 3 Sept 202621 days ago
First published
3 Jan 2017
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
2
Commits, last 52 weeks
49
Dependents on npm
373

Major versions

  1. v9 first release 9.0.0, 15 Oct 2022
  2. v8 first release 8.0.0, 27 Jun 2022
  3. v7 first release 7.0.0, 22 Apr 2021
  4. v6 first release 6.0.0, 5 Jun 2020
  5. v5 first release 5.0.0, 12 Aug 2019
  6. v4 first release 4.0.0, 4 Aug 2019
  7. v3 first release 3.0.0, 8 Jul 2017
  8. v2 first release 2.0.0, 6 Jan 2017
  9. v1 first release 1.0.0, 3 Jan 2017

Recent releases

VersionPublished
9.5.23 Sept 2026
9.5.125 Apr 2026
9.5.04 Feb 2026
9.4.112 Aug 2025
9.4.029 Mar 2025
9.3.614 Dec 2024
9.3.514 Nov 2024
9.3.428 Sept 2024
9.3.323 Sept 2024
9.3.222 Aug 2024
9.3.13 Jun 2024
9.3.02 Jun 2024
9.2.45 May 2024
9.2.39 Apr 2024
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
974 kB
Dependencies (1)
@noble/hashes
npm install otpauth

CDN

jsDelivr: 321.8k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/otpauth@9.5.2/
  • unpkghttps://unpkg.com/otpauth@9.5.2/
  • esm.shhttps://esm.sh/otpauth@9.5.2
PackageWeekly downloadsGzipLast releaseModuleComparison
speakeasy636.7k-10 years agoCommonJS-
@epic-web/totp47.5k-1 year agoESM only-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.