# ViraStack Password > Headless password hook for React: show/hide, NIST-style strength, password confirmation, server validation and an optional leaked password check. npm: `@virastack/password` (1.2.x). Zero runtime dependencies, ~2 KB for the hook. Install: `npm install @virastack/password`. Peers: `react`, `react-dom` (≥ 18.2); `react-hook-form` (≥ 7.55, optional, for `useViraPassword(form, schema)`). One hook, `useViraPassword()`; strength and confirmation are options of the same hook. Errors are keys (`password.tooShort`), not messages. Not a strength bar or generator component. For inline API + examples, prefer [llms-full.txt](https://virastack.com/password/llms-full.txt). ## Docs - [Introduction](https://virastack.com/password/docs): Install, entry points, requirements - [useViraPassword()](https://virastack.com/password/docs/use-vira-password): Every option, return value, prop merging - [React Hook Form](https://virastack.com/password/docs/react-hook-form): `useViraPassword(form, schema)`, `register`, `useWatch`, Controller, Zod, ViraStack Mask - [Strength](https://virastack.com/password/docs/strength): `definePolicy`, `evaluate`, presets (`nist`, `mfa`), whole-password `forbidden`, normalization - [Confirm password](https://virastack.com/password/docs/confirm): `matchWith`, `matches`, `rule` - [Accessibility](https://virastack.com/password/docs/accessibility): ARIA, focus, live region, Caps Lock - [Customization](https://virastack.com/password/docs/customization): Icons, props, automatic hiding, autoComplete - [UI libraries](https://virastack.com/password/docs/ui-libraries): shadcn, Ant Design, Chakra - [Server validation](https://virastack.com/password/docs/server): `validatePassword`, the `pwned` option, what to hash, Next.js - [Leaked passwords](https://virastack.com/password/docs/pwned): `checkPwned`, k-anonymity, fail open - [Helpers](https://virastack.com/password/docs/helpers): `mergeProps`, `composeRefs`, core helpers, icons - [Types](https://virastack.com/password/docs/types): All exported types - [Examples](https://virastack.com/password/examples): Live demos index ## Notable examples - [Strength meter](https://virastack.com/password/examples/strength-meter): Your own bar on `score`, `level` and issue keys - [Confirm password](https://virastack.com/password/examples/confirm): `matchWith` - [React Hook Form binding](https://virastack.com/password/examples/form-binding): `useViraPassword(form, schema)` with password, confirm and `forbidden` fields - [React Hook Form + Zod](https://virastack.com/password/examples/react-hook-form-zod): Same policy in a Zod schema - [Server Action](https://virastack.com/password/examples/server-action): `validatePassword` with FormData - [Personal info](https://virastack.com/password/examples/forbidden): `forbidden: [email, name]` - [Leaked passwords](https://virastack.com/password/examples/pwned): `checkPwned` from a Server Action - [Sign-up with Mask](https://virastack.com/password/examples/mask-signup): Phone + password + confirm in one form ## Product - [Password overview](https://virastack.com/password): Marketing page - [npm `@virastack/password`](https://www.npmjs.com/package/@virastack/password): Package registry - [GitHub](https://github.com/virastack/form/tree/main/packages/password): Source (form monorepo) ## Related - [ViraStack llms.txt](https://virastack.com/llms.txt): Ecosystem map - [Mask docs](https://virastack.com/mask/docs): Input masks for React Hook Form - [Start docs](https://virastack.com/start/docs): Scaffold CLI that can install Password