yeojz/otplib — One Time Password (OTP) / 2FA for Node.js and Browser - Supports HOTP, TOTP and Google Authenticator
Description and use
Yeojz/otplib is a lightweight, open‑source library that generates and validates one‑time passwords for both Node.js and browser environments. It implements HOTP, TOTP, and Google Authenticator‑compatible algorithms, making it easy to add robust two‑factor authentication to any web or server application.
Problem
yeojz/otplib helps engineers save time in daily development and review loops.
Outcome
Medium: useful for prototypes or internal workflows, with dependency and maintenance checks before production.
Workflow
- speed up developer workflows
- automate local engineering tasks
- improve CI feedback
Evidence
One Time Password (OTP) / 2FA for Node.js and Browser - Supports HOTP, TOTP and Google Authenticator
- Record date: 2026-09-12T11:37:24.236Z