Human-friendly numeric pattern codes for OTP, SMS, 2FA, etc.
npm install patcodePatcode is a generator of short, structured, human-friendly numeric codes designed for high usability and strong memorability.
The library produces predictable, readable patterns suitable for authentication flows such as OTP, SMS verification, 2FA, PIN codes, and onboarding confirmation steps.
The full documentation is available in the /docs directory:
- Introduction
- Generation Strategies
- Code Analysis
- RNG System
- Configuration Options
- Custom Strategies
This project is licensed under the MIT License.