Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Passport.js

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

Auth and security librariesNPM

GitHubWebsite

1. License

License from npm.

github.com/jaredhanson/passport

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Passport.js does

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

Passport.js popularity

69 / 100
Gid Score, #431 overall
10.5M
downloads a week, npm
23.5K
GitHub stars
33
agent projects use it
Passport.js: downloads per weeknpm, passport 10,532,007
Passport.js: GitHub starsjaredhanson/passport 23,518

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Passport.js is used

  • Passport.js is a dependency in 33 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.7% of the 4,867 JavaScript/TypeScript ones), #19 of 141 in auth and security libraries.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 117; those are left out of every share on this page.
  • The most used alternative in our scan is NextAuth.js (150 projects).
  • Projects that use it most often also use dotenv (72.7%), Express (63.6%), pg (63.6%).

By coding agent

20 projects, 0.6%
17 projects, 0.7%
16 projects, 0.5%
6 projects, 2.2%
5 projects, 1.1%

Often used with

In 72.7% of its projects
In 63.6% of its projects
In 63.6% of its projects
In 51.5% of its projects
In 51.5% of its projects
In 51.5% of its projects
In 54.5% of its projects
In 45.5% of its projects

More about Passport.js

Funding
  • GitHub Sponsors: https://github.com/jaredhanson
  • Patreon: https://patreon.com/jaredhanson
  • Ko-fi: https://ko-fi.com/jaredhanson
  • 7 GitHub sponsors

See all

More in Auth and security libraries

Alternatives

Passport.js This page

MITGid 6910.5M/wk

NextAuth.js

Complete open-source authentication solution designed for Next.js applications.

ISCGid 759.4M/wk

Better Auth

Comprehensive authentication framework for TypeScript with multiple strategies.

MITGid 7921.1M/wk

Clerk

Modern authentication and user management SDK for Next.js and React.

MITGid 624.1M/wk

Compare Passport.js with another tool

Get started

Install it.

npm install passport

No step-by-step start for Passport.js yet: we have not written its hand-checked card.