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
| dotenv | 67.2% of jsonwebtoken projects · 4.3× more than average |
|---|---|
| Express | 53.9% of jsonwebtoken projects · 8.3× more than average |
| cors | 47.3% of jsonwebtoken projects · 14.2× more than average |
| bcryptjs | 38.6% of jsonwebtoken projects · 19.1× more than average |
| Zod | 50.2% of jsonwebtoken projects · 3.0× more than average |
| Axios | 36.9% of jsonwebtoken projects · 3.7× more than average |
| Helmet | 27.8% of jsonwebtoken projects · 28.2× more than average |
| uuid | 27.8% of jsonwebtoken projects · 7.8× more than average |
By coding agent
| Cursor | 3.3% of projects set up for it |
|---|---|
| Claude Code | 2.3% of projects set up for it |
| GitHub Copilot | 2.0% of projects set up for it |
| Devin Desktop | 9.1% of projects set up for it |
| Kiro | 7.5% of projects set up for it |
| Gemini CLI | 1.8% of projects set up for it |
| OpenAI Codex | 1.6% of projects set up for it |
| Roo Code | 6.2% of projects set up for it |
Share of public repos configured for each agent that list jsonwebtoken as a dependency.
Install
| Package | npm install jsonwebtoken |
|---|---|
| Main stacks | TypeScript / JavaScript (135), Next.js (91), Python (10), Rust (2) |
| Example projects | 5pyj29s7cm-tech/LumiCore, sigp/siren, fountain-ink/app, WhalesIsland/Nextheon, Giveth/notification-center |
Alternatives to jsonwebtoken
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| 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 |