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

Passport.js

Modular authentication middleware for Node.js supporting OAuth, JWT and local strategies.

Auth and security libraries npm MIT

Used in agent projects
61
0.5% of 12,697 public repos built with AI coding agents
Rank in auth and security libraries
#18 of 47
by use in those projects
Downloads
8.2M
npm, last 7 days, passport
GitHub stars
23.5K
last push Aug 16, 2024

How Passport.js is used

Passport.js is a dependency in 61 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.5%), #18 of 47 in auth and security libraries. The most used alternative there is NextAuth.js. Projects that use it most often also use Express (77.0%), express-session (68.9%), passport-local (63.9%).

Often used with Passport.js

Express77.0% of Passport.js projects · 11.9× more than average
express-session68.9% of Passport.js projects · 161.9× more than average
passport-local63.9% of Passport.js projects · 208.1× more than average
tsx62.3% of Passport.js projects · 6.3× more than average
ws62.3% of Passport.js projects · 27.6× more than average
Zod62.3% of Passport.js projects · 3.7× more than average
esbuild57.4% of Passport.js projects · 21.3× more than average
Recharts57.4% of Passport.js projects · 7.0× more than average

By coding agent

Claude Code0.6% of projects set up for it
GitHub Copilot0.6% of projects set up for it
Cursor0.7% of projects set up for it
Devin Desktop2.2% of projects set up for it
Gemini CLI1.1% of projects set up for it

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

Install

Packagenpm install passport
Main stacksTypeScript / JavaScript (52), Python (7), Next.js (1), Other (1)
Example projectsalkem-io/server, gopaljilab/Clinical-Insight-Engine, Hackbyrd/orbital-express

Alternatives to Passport.js

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
bcryptjs npm
Pure JavaScript bcrypt implementation for secure password hashing without dependencies.
256 (2.0%) 14.7M 3,797 BSD-3-Clause
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
Is Passport.js right for your project? Ask AgentGid →