bcryptjs
Pure JavaScript bcrypt implementation for secure password hashing without dependencies.
Auth and security libraries npm BSD-3-Clause
Used in agent projects
256
2.0% of 12,697 public repos built with AI coding agents
Rank in auth and security libraries
#2 of 47
by use in those projects
Downloads
14.7M
npm, last 7 days, bcryptjs
GitHub stars
3,797
last push Oct 1, 2026
How bcryptjs is used
bcryptjs is a dependency in 256 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (2.0%), #2 of 47 in auth and security libraries. The most used alternative there is NextAuth.js. Projects that use it most often also use Zod (62.1%), Next.js (68.4%), Lucide React (64.1%).
Often used with bcryptjs
| Zod | 62.1% of bcryptjs projects · 3.7× more than average |
|---|---|
| Next.js | 68.4% of bcryptjs projects · 3.0× more than average |
| Lucide React | 64.1% of bcryptjs projects · 3.2× more than average |
| dotenv | 56.6% of bcryptjs projects · 3.6× more than average |
| clsx | 57.8% of bcryptjs projects · 3.3× more than average |
| Tailwind Merge | 55.5% of bcryptjs projects · 3.3× more than average |
| Tailwind CSS | 78.9% of bcryptjs projects · 2.3× more than average |
| Class Variance Authority | 50.4% of bcryptjs projects · 3.6× more than average |
By coding agent
| Claude Code | 3.0% of projects set up for it |
|---|---|
| GitHub Copilot | 3.2% of projects set up for it |
| Cursor | 3.3% of projects set up for it |
| OpenAI Codex | 3.3% of projects set up for it |
| Gemini CLI | 3.0% of projects set up for it |
| Devin Desktop | 3.6% of projects set up for it |
| OpenCode | 2.2% of projects set up for it |
Share of public repos configured for each agent that list bcryptjs as a dependency.
Install
| Package | npm install bcryptjs |
|---|---|
| Main stacks | Next.js (173), TypeScript / JavaScript (76), React Native / Expo (3), Python (2) |
| Example projects | 5pyj29s7cm-tech/LumiCore, nirholas/three.ws, EricTechPro/match-me, Ranork/remnus-app, Mebius1916/NextTalk_web |
Alternatives to bcryptjs
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| NextAuth.js npm Complete open-source authentication solution designed for Next.js applications. |
266 (2.1%) | 6.7M | 28.4K | ISC |
| jsonwebtoken npm Create, verify and decode JSON Web Tokens for authentication and secure data transmission. |
241 (1.9%) | 59.3M | 18.2K | MIT |
| cryptography pypi Python library providing cryptographic recipes and primitives for secure applications. |
213 (1.7%) | 281M | 7,803 | — |
| jose npm Comprehensive JWT and JWK handling for Node.js and web runtimes. |
141 (1.1%) | 151M | 7,824 | MIT |
| PyJWT pypi Python library for encoding and decoding JSON Web Tokens. |
128 (1.0%) | 154M | 5,714 | — |
| Better Auth npm Comprehensive authentication framework for TypeScript with multiple strategies. |
126 (1.0%) | 11.4M | 30.2K | MIT |
| Helmet npm Express middleware that sets HTTP security headers to prevent vulnerabilities. |
125 (1.0%) | 16.2M | 10.7K | MIT |
| Privy Auth npm React authentication SDK enabling Web2 and Web3 logins with embedded wallets. |
107 (0.8%) | 430K | — | Apache-2.0 |