bcryptjs vs bcrypt (JavaScript)
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, bcryptjs is a dependency in 195 (4.0%) and bcrypt (JavaScript) in 64 (1.3%): bcryptjs is 3.0× as common. Among repos created in the last 90 days that use a auth and security libraries tool, bcryptjs is in 22.9% and bcrypt (JavaScript) in 2.9%, against 21.6% and 7.3% of older ones. 9 projects list both, often a sign of a migration or of a monorepo with several apps.
Auth and security libraries npm Updated Nov 17, 2026
| bcryptjs | 4.0% | |
|---|---|---|
| bcrypt (JavaScript) | 1.3% |
Share of 4,864 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.
Side by side
| bcryptjs | bcrypt (JavaScript) | |
|---|---|---|
| Agent projects that use it | 195 | 64 |
| Rank in auth and security libraries | #1 | #10 |
| In new repos with a auth and security libraries tool (last 90 days) | 22.9% | 2.9% |
| In older repos with one | 21.6% | 7.3% |
| Downloads, last 7 days | 20M | 8.7M |
| GitHub stars | 3,794 | 7,807 |
| Last push to its repo | Oct 1, 2026 | Apr 14, 2026 |
| License | BSD-3-Clause | MIT |
| Funding | — | — |
| Projects that list both | 9 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | bcryptjs | bcrypt (JavaScript) |
|---|---|---|---|
| Claude Code | 2,617 | 4.3% | 1.4% |
| GitHub Copilot | 2,350 | 4.5% | 1.7% |
| Cursor | 1,990 | 4.0% | 1.5% |
| Gemini CLI | 422 | 4.5% | 1.4% |
| OpenAI Codex | 409 | 3.2% | 0% |
| OpenCode | 304 | 3.3% | 0% |
| OpenClaw | 241 | 4.1% | 0% |
| Devin Desktop | 231 | 4.8% | 4.8% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
bcryptjs
Pure JavaScript bcrypt implementation for secure password hashing without dependencies.
Most often used with it:
| Next.js | 70.8% of its projects |
|---|---|
| Lucide React | 68.7% of its projects |
| React | 84.6% of its projects |
| Tailwind CSS | 81.5% of its projects |
| clsx | 62.6% of its projects |
npm install bcryptjs
bcrypt (JavaScript)
Password hashing library for secure credential storage in Node.js applications.
Most often used with it:
| dotenv | 62.5% of its projects |
|---|---|
| pg | 50.0% of its projects |
| jsonwebtoken | 46.9% of its projects |
| ESLint | 76.6% of its projects |
| Jest | 39.1% of its projects |
npm install bcrypt
More matchups
jsonwebtoken vs joseNextAuth.js vs Better AuthBetter Auth vs ClerkNextAuth.js vs ClerkPyJWT vs python-josepasslib vs bcrypt (Python)
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.