Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

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

Zod62.1% of bcryptjs projects · 3.7× more than average
Next.js68.4% of bcryptjs projects · 3.0× more than average
Lucide React64.1% of bcryptjs projects · 3.2× more than average
dotenv56.6% of bcryptjs projects · 3.6× more than average
clsx57.8% of bcryptjs projects · 3.3× more than average
Tailwind Merge55.5% of bcryptjs projects · 3.3× more than average
Tailwind CSS78.9% of bcryptjs projects · 2.3× more than average
Class Variance Authority50.4% of bcryptjs projects · 3.6× more than average

By coding agent

Claude Code3.0% of projects set up for it
GitHub Copilot3.2% of projects set up for it
Cursor3.3% of projects set up for it
OpenAI Codex3.3% of projects set up for it
Gemini CLI3.0% of projects set up for it
Devin Desktop3.6% of projects set up for it
OpenCode2.2% of projects set up for it

Share of public repos configured for each agent that list bcryptjs as a dependency.

Install

Packagenpm install bcryptjs
Main stacksNext.js (173), TypeScript / JavaScript (76), React Native / Expo (3), Python (2)
Example projects5pyj29s7cm-tech/LumiCore, nirholas/three.ws, EricTechPro/match-me, Ranork/remnus-app, Mebius1916/NextTalk_web

Alternatives to bcryptjs

All auth and security libraries

Tool Used in agent projectsDownloads / wk GitHub starsLicense
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
Is bcryptjs right for your project? Ask AgentGid →