hectorm/otpauth
One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers. observed · 2026-08-28
Health v2 · maintenance only
86/100
- Activity 94
- Release rhythm 69
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 79
- age_days: 3529
- days_rel: 130
- days_push: 39
- n_releases_24m: 8
Adoption not part of the score
1471 stars · 82 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript One-Time Password library implementing HOTP (RFC 4226) and TOTP (RFC 6238) for generating and validating 2FA tokens. It runs in Node.js, Deno, Bun, and browsers, and supports secret generation, token validation, and otpauth:// URI handling.
Use cases
- add TOTP two-factor authentication to a web app
- generate and validate HOTP/TOTP tokens in Node.js
- implement 2FA compatible with Google Authenticator
- generate otpauth:// URIs for authenticator apps
- generate cryptographically secure OTP secrets in the browser
When to choose
- you need a dependency-light, cross-runtime (Node/Deno/Bun/browser) OTP library
- you need standards-compliant HOTP/TOTP with RFC 4226/6238 support
- you want to interoperate with Google Authenticator and similar apps
When to avoid
- you need full MFA infrastructure with SMS or push-based factors
- you need a server-side identity platform with user management, not just OTP generation
- your stack is not JavaScript-based
Facets
library · maturity stable
auth cryptography security security web-development developer-tools bun browser cross-platform otp hotp totp two-factor-authentication 2fa google-authenticator rfc-4226 rfc-6238 mfa nodejs deno javascript
3 sources
- readme: https://github.com/hectorm/otpauth · fetched 2026-08-28 · 25c495478e87
- homepage: https://hectorm.github.io/otpauth/ · fetched 2026-08-29 · a375b3022e7e
- registry_npm: https://registry.npmjs.org/otpauth · fetched 2026-08-29 · ccac0cbf4a99
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hectorm/otpauth | main | 86 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem