Skip to content
JS
Package

otplib

TypeScript-first library for TOTP and HOTP with multi-runtime and plugin support

v13.5.0, 21 Aug 2026MITESM + CommonJSTypes: BundledSecurityNode.js utilities
$ npm install otplib

Key numbers

As of 25 Sept 2026
Weekly downloads
2.4m
+275% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
6
Direct, from package.json
Last release
1 month ago
v13.5.0
GitHub stars
2.3k
145 forks
Open issues / PRs
0 / 13
Contributors
-
Commits, last 52 weeks
189

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.5m (18 Aug 2026)Low 628.1k (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.

2,413,524 downloads last week, 12,610,296 in the last month. The 12-month change of +275% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
1145 in total
Latest version
13.5.0, 21 Aug 20261 month ago
First published
14 Apr 2014
Last push to GitHub
23 Sept 20261 day before the snapshot
Repository archived
No
Open issues
0
Open pull requests
13
Commits, last 52 weeks
189
Dependents on npm
627

Major versions

  1. v13 first release 13.0.0, 10 Jan 2026
  2. v12 first release 12.0.0, 30 Dec 2019
  3. v11 first release 11.0.0, 9 Mar 2019
  4. v10 first release 10.0.0, 17 Jun 2018
  5. v9 first release 9.0.0, 22 Apr 2018
  6. v8 first release 8.0.0, 27 Mar 2018
  7. v7 first release 7.0.0, 22 Oct 2017
  8. v6 first release 6.0.0, 2 Sept 2017
  9. v5 first release 5.0.0, 29 Jul 2017
  10. v4 first release 4.0.1, 15 Apr 2017
  11. v3 first release 3.0.0, 12 Sept 2015
  12. v2 first release 2.0.0, 21 Aug 2015
  13. v1 first release 1.0.0, 14 Apr 2014
  14. v0 first release 0.0.3, 14 Apr 2014

Recent releases

VersionPublished
13.5.021 Aug 2026
13.4.130 May 2026
13.4.019 Mar 2026
13.3.012 Feb 2026
13.2.126 Jan 2026
13.2.025 Jan 2026
13.1.114 Jan 2026
13.1.012 Jan 2026
13.0.211 Jan 2026
13.0.110 Jan 2026
13.0.010 Jan 2026
12.0.124 Jan 2020
12.0.030 Dec 2019
11.0.127 May 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)
597 kB
Dependencies (6)
@otplib/uri@otplib/core@otplib/hotp@otplib/totp@otplib/plugin-base32-scure@otplib/plugin-crypto-noble
npm install otplib
  • jsDelivrhttps://cdn.jsdelivr.net/npm/otplib@13.5.0/
  • unpkghttps://unpkg.com/otplib@13.5.0/
  • esm.shhttps://esm.sh/otplib@13.5.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.