{"repo":"yeojz/otplib","free":true,"listed":false,"github":"https://github.com/yeojz/otplib","clone":"git clone https://github.com/yeojz/otplib.git","description":"One Time Password (OTP) / 2FA for Node.js and Browser - Supports HOTP, TOTP and Google Authenticator","language":"TypeScript","stars":2284,"topics":["hotp","hmac","otp","authenticator","2fa","one-time-passwords","two-factor-authentication","two-factor","google-authenticator","nodejs"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"otplib-repo TypeScript-first library for HOTP and TOTP / Authenticator with multi-runtime (Node, Bun, Deno, Browser) support via plugins. [!TIP] A web based demo is available at https://otplib.yeojz.dev. You can scan and test the TOTP / HOTP QR Code samples with your chosen authenticator app. Features - Zero Configuration - Works out of the box with sensible defaults - RFC Compliant - RFC 6238 (TOTP) and RFC 4226 (HOTP) + Google Authenticator Compatible - TypeScript-First - Full type definitions - Plugin Interface - Flexible plugin system for customising your cryptographic and base32 requirements (if you want to deviate from the defaults) - Cross-platform - Tested against Node.js, Bun, Deno, and browsers - Security-audited plugins — Default crypto uses @noble/hashes and @scure/base , both independently audited - Async-first API — All operations are async by default; sync variants available for compatible plugins [!IMPORTANT] v13 is a complete rewrite with breaking changes. For example: - (Removed) Separate authenticator package — TOTP now covers all authenticator functionality with default plugins - (Removed) Outdated plugins — Legacy crypto adapters removed in favor of modern, audited alternatives See Migration Guide for details. Quick Start Packages Package Version Downloads :-------------------------------------------------------------- :-------------------------------------------------------------------------------------------------------------------------------- :-------","default_branch":null,"files":null,"tree":[],"storefront":"/r/yeojz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yeojz/otplib/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}