- Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Hi! I've written a full TypeScript rewrite of zxcvbn called zxcvbn-ts in case anyone is looking for a type-safe alternative.
It includes:
- Strict TypeScript with a discriminated-union
Matchtype for exhaustive pattern narrowing - Dual CJS/ESM output
- All 93,855 dictionary words bundled
- Optional AI-powered feedback via
zxcvbnAI()— returns a plain-English explanation of exactly why a password is weak, powered by Claude (bring your own API key) - A few bug fixes over the original (notably a lazy-init bug that silently disabled all dictionary matching when
setUserInputDictionarywas called first)
Available on npm: bun add zxcvbn-ts / npm install zxcvbn-ts
Happy to take feedback or PRs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels