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

jsonwebtoken

Create, verify and decode JSON Web Tokens for authentication and secure data transmission.

Auth and security libraries npm MIT

Used in agent projects
241
1.9% of 12,697 public repos built with AI coding agents
Rank in auth and security libraries
#3 of 47
by use in those projects
Downloads
59.3M
npm, last 7 days, jsonwebtoken
GitHub stars
18.2K
last push Jun 25, 2026

How jsonwebtoken is used

jsonwebtoken is a dependency in 241 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.9%), #3 of 47 in auth and security libraries. The most used alternative there is NextAuth.js. Projects that use it most often also use dotenv (67.2%), Express (53.9%), cors (47.3%). It is more common in projects set up for Devin Desktop (9.1%) than for OpenAI Codex (1.6%).

Often used with jsonwebtoken

dotenv67.2% of jsonwebtoken projects · 4.3× more than average
Express53.9% of jsonwebtoken projects · 8.3× more than average
cors47.3% of jsonwebtoken projects · 14.2× more than average
bcryptjs38.6% of jsonwebtoken projects · 19.1× more than average
Zod50.2% of jsonwebtoken projects · 3.0× more than average
Axios36.9% of jsonwebtoken projects · 3.7× more than average
Helmet27.8% of jsonwebtoken projects · 28.2× more than average
uuid27.8% of jsonwebtoken projects · 7.8× more than average

By coding agent

Cursor3.3% of projects set up for it
Claude Code2.3% of projects set up for it
GitHub Copilot2.0% of projects set up for it
Devin Desktop9.1% of projects set up for it
Kiro7.5% of projects set up for it
Gemini CLI1.8% of projects set up for it
OpenAI Codex1.6% of projects set up for it
Roo Code6.2% of projects set up for it

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

Install

Packagenpm install jsonwebtoken
Main stacksTypeScript / JavaScript (135), Next.js (91), Python (10), Rust (2)
Example projects5pyj29s7cm-tech/LumiCore, sigp/siren, fountain-ink/app, WhalesIsland/Nextheon, Giveth/notification-center

Alternatives to jsonwebtoken

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
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 jsonwebtoken right for your project? Ask AgentGid →