otplib
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password library
otpauth
One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers
speakeasy
Two-factor authentication for Node.js. One-time passcode generator (HOTP/TOTP) with support for Google Authenticator.
authenticator-cli
A commandline Authenticator App (for Authy, Google Authenticator, Microsoft Authenticator, TOTP / 2FA / MFA / OTP, etc)