jose
A strong pick. 2nd of 10 authentication libraries.
jose is a zero-dependency library that covers the JOSE standards: JWT, JWS, JWE, JWK and JWKS. It runs on Node.js, browsers, Deno, Bun and edge runtimes. It is the best current choice for signing and checking tokens, but it is a building block. It does not handle sign-in flows or user management.
Best for: Developers who need to sign, verify or encrypt JWTs, or to check tokens against an identity provider's JWKS, on any runtime, including edge.
Scores
Overall8.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
It is clearly the best pick in this category for the token-checking part of the job, and it is better than jsonwebtoken for new code. It is very well maintained and has a small attack surface. It is not a full authentication solution, so most apps that need sign-in and sessions will pick Better Auth or Auth.js, which run jose underneath. That keeps it out of the 9 range for this category.
- pkgpulse.com/guides/jose-vs-jsonwebtoken-vs-fast-jwt-jwt-libraries-nodejs-2026: Recommended for new projects
- npm downloads ratio: About 10.3x a year ago, against a median of 4.1
- peers: Better Auth and Auth.js cover the full sign-in job
GPT-6.2 Sol: 8.5, likely 7.3 to 9.3
jose is my first pick among these peers for JWT handling in a new project that needs portable verification, remote key sets, or encrypted tokens. Its broader token support and release activity give it an edge over jsonwebtoken for that job. Better Auth is the stronger starting point for built-in sign-in and sessions. Older module tooling and reliance on one release maintainer account for most of the remaining uncertainty.
- github.com/panva/jose: Documents portable verification, key sets, and encryption.
- better-auth.com/docs/introduction: Better Auth provides built-in sign-in, account management, and sessions.
- github.com/auth0/node-jsonwebtoken: Shows the peer's narrower Node.js token API.
- github.releasesLastYear and peers: jose shipped 20 releases in the past year, with substantially more recent activity than jsonwebtoken.
- github.com/panva/jose/actions/workflows/release.yml: Release history shows frequent patches and concentrated release activity.
- github.com/vercel/vercel/pull/17794: A downstream upgrade illustrates CommonJS compatibility work.
Needed by many5.6
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Checking and issuing tokens is common in web apps and APIs, and jose works on every major runtime. It covers only the token part of the authentication job, not sign-in or sessions. Many developers use it only indirectly, through an auth framework.
- github description: Covers JWA, JWS, JWE, JWT, JWK and JWKS on many runtimes
- pkgpulse.com/guides/jose-vs-jsonwebtoken-vs-fast-jwt-jwt-libraries-nodejs-2026: Recommended as the default JWT library for new Node.js projects
GPT-6.2 Sol: 5.2, likely 4.0 to 6.4
Token verification applies to web apps, APIs, and edge services, and jose works across several runtimes. Its direct audience is smaller than that of a full auth framework because many teams get token handling through their framework or identity SDK. The React survey shows demand for authentication tools but gives little insight into how many projects need a standalone token library.
- github.com/panva/jose/security: Defines the library's token and cryptography scope.
- github.com/panva/jose: Lists runtime support and the JOSE operations available.
- 2025.stateofreact.com/en-US/other-tools/#authentication: Measures use of authentication libraries and services among React respondents.
Helps a lot8.9
How well does it do the job for those who need it?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
For token work it is the most complete and correct library in JavaScript. It covers the full JOSE suite, ships its own types, has secure defaults and handles remote JWKS sets. Its limits are the async-only API, a lack of caching and worker threads (fast-jwt has both), and some setup friction for people moving from jsonwebtoken.
- pkgpulse.com/guides/jose-vs-jsonwebtoken-vs-fast-jwt-jwt-libraries-nodejs-2026: Strengths: JWE, JWKS and universal runtimes; weaknesses: async only, no default algorithm
- dev.to/silentwatcher_95/why-you-should-delete-jsonwebtoken-in-2025-1o7n: Praises its algorithm coverage, native types and ESM support compared with jsonwebtoken
- npm hasTypes: Ships its own TypeScript types
- github.com/panva/jose/releases: Recent releases add steady hardening and spec-alignment fixes
GPT-6.2 Sol: 8.7, likely 7.6 to 9.6
Version 6.2.18 covers JWT claim validation, signed and encrypted tokens, and remote key lookup, with typed APIs, dedicated errors, and tests based on published standards. That gives it more token capabilities than jsonwebtoken, though Nearform measured slower HS256 operations on Node.js. Typed signatures and examples help with routine AI-generated code, but Vercel's own guide labels a signing example as encryption, and agent accuracy has no direct measurement here. Algorithm availability and ESM tooling also vary by environment.
- github.com/panva/jose: Documents JOSE coverage, typed errors, runtime differences, and standards test vectors.
- github.com/panva/jose/releases/tag/v6.2.18: Confirms the stable release and its token and JWKS fixes.
- github.com/auth0/node-jsonwebtoken: Documents a narrower Node.js API for signing and verifying JWTs.
- github.com/nearform/fast-jwt/blob/master/benchmarks/README.md: A competing project's Node.js benchmark shows slower HS256 operations for jose.
- nextjs.org/docs/app/guides/authentication#encrypting-and-decrypting-sessions: The session example calls SignJWT from a function named encrypt.
Holds up over time8.1
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It is very active: 291 commits and 20 releases in the last year, the latest on 2026-11-18, and no open issues or pull requests. Auth.js, Better Auth and openid-client build on it, which ties it into the ecosystem. The main risk is that one maintainer carries most of the work, which keeps the score below 9.
- github commitsLastYear: 291 commits in the last year
- github openIssues/openPullRequests: 0 open issues and 0 open pull requests
- npm versionsLastYear: 20 versions in the last year
- github.com/panva/jose/releases: Frequent patch releases, none marked as breaking
GPT-6.2 Sol: 8.1, likely 6.7 to 9.0
The project shipped 20 releases and made 291 commits in the past year, and one recent error-reporting issue received a patch in two days. Auth0 by Okta is listed as a sponsor, while recent releases show the same maintainer triggering the workflow. That concentration and the CommonJS and Jest friction reported after the v6 upgrade make two-year continuity less certain.
- github.commitsLastYear and github.releasesLastYear: 291 commits and 20 releases in the past year.
- github.com/panva/jose/discussions/920: A November 6 report received a patch on November 8.
- github.com/panva/jose: Lists Auth0 by Okta as a sponsor.
- github.com/panva/jose/actions/workflows/release.yml: Recent stable releases were triggered by the same maintainer.
- github.com/auth0/node-jwks-rsa/issues/533: A downstream team reports Jest failures at the CommonJS-to-ESM boundary.
Used widely7.5
How many use it, and is that growing?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
Downloads reached 914M in the last 4 weeks, up from 89M a year before. That is a ratio of about 10.3, well above the median of 4.1, and the highest volume in its category. Most of these downloads come through other auth packages that install it. Its 54,898 dependent repos are far fewer than jsonwebtoken's 719k, but they still show strong direct choice.
- npm downloadsLast4Weeks: 914,508,203 downloads, against 88,789,903 a year earlier
- dependents: 54,898 repos and 1,109 packages
- peers jsonwebtoken: 328M downloads and 718,942 dependent repos, with a smaller growth ratio
GPT-6.2 Sol: 6.4, likely 5.1 to 7.6
ecosyste.ms found about 55,000 dependent repositories, ahead of Auth.js and openid-client in this sample and well behind jsonwebtoken. Four-week npm downloads rose from 88.8 million to 914.5 million, or 10.3 times, above the catalog median of 4.1 times and below Better Auth's 41.7 times. Framework installs account for an unknown share of that growth, and 7,891 stars with three Bluesky posts offer only a limited read on how many new projects choose jose directly.
- dependents.repos and dependents.packages: ecosyste.ms found 54,898 repositories and 1,109 packages.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo and medianDownloadsRatio: Downloads grew 10.3 times against a 4.1 times catalog median.
- peers: jsonwebtoken had 718,942 indexed dependent repositories, and Better Auth had faster download growth.
- github.stars and bluesky.posts: 7,891 stars and three Bluesky posts linking to the repository.
- github.com/better-auth/better-auth/blob/main/packages/better-auth/src/crypto/jwt.ts: Better Auth installs jose for token operations.
Vouched for8.3
Who stands behind it being good?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Major auth frameworks and identity vendors build on it or recommend it for edge JWT checks, and independent guides call it the modern default. It does not appear in surveys or Hacker News stories, and the Bluesky signal is small. The case rests on adoption by frameworks and on several independent write-ups.
- Auth.js, Better Auth and openid-client dependencies: Major auth libraries build on jose
- workos.com/blog/how-to-verify-jwts-in-nextjs-app-router: Identity vendor guide uses jose for Next.js JWT checks
- kinde.com/blog/engineering/verifying-jwts-in-cloudflare-workers: Vendor guide on JWT checks in Cloudflare Workers that covers jose
- hackerNews/bluesky: 0 HN stories and 3 Bluesky posts
GPT-6.2 Sol: 8.6, likely 7.4 to 9.4
Better Auth and Auth.js use jose in their token code, and the Supabase server SDK uses it to verify JWTs. Next.js also recommends it for stateless sessions. Those integrations show that other projects trust it with token handling, although they give limited evidence about satisfaction among teams that use it directly.
- github.com/better-auth/better-auth/blob/main/packages/better-auth/src/crypto/jwt.ts: Uses jose for signing, verifying, and encrypting tokens.
- github.com/nextauthjs/next-auth/blob/main/packages/core/src/jwt.ts: Uses jose to encrypt and decrypt JWT sessions.
- github.com/supabase/server/blob/main/docs/security.md: Documents jose verification in the Supabase server SDK.
- nextjs.org/docs/app/guides/authentication#session-management: Names jose as an option for stateless sessions.
Safe8.7
How safe is it to depend on?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
It has no dependencies, an MIT licence and only three moderate advisories, all fixed and none in the last 24 months. The Scorecard score is 7.9, with strong marks on fuzzing, SAST, pinned dependencies and signed releases. The weak checks are Code-Review at 0 and Branch-Protection at 3, which reflect a single-maintainer release path.
- npm dependencies: 0 runtime dependencies
- advisories: 3 moderate advisories, 2021 to 2024, all fixed; none in the last 24 months
- scorecard: Score 7.9; Code-Review 0, Branch-Protection 3, Fuzzing 10, Signed-Releases 8
- github license: MIT
GPT-6.2 Sol: 8.3, likely 7.1 to 9.3
The MIT-licensed package ships with zero runtime dependencies, and its GitHub Actions workflow uses identity tokens for publishing and artifact attestations. The three advisories in the bundle were patched, with the 2024 fix released on disclosure day. Aikido separately reports a low-severity issue through 6.2.4, outside the current release. Fuzzing and static analysis scored well, while weak branch protection, a zero code-review score, and releases concentrated under one maintainer keep the score below the top tier.
- npm.dependencies, npm.license and advisories: Zero runtime dependencies, MIT license, and three OSV advisories.
- scorecard: 7.9 overall, with fuzzing and SAST at 10, code review at 0, and branch protection at 3.
- raw.githubusercontent.com/panva/jose/v6.2.18/.github/workflows/release.yml: Tag-triggered workflow grants identity-token and artifact-attestation permissions.
- github.com/panva/jose/actions/workflows/release.yml: Recent release runs were triggered by the same maintainer.
- github.com/panva/jose/security/advisories: Project advisory history lists the published issues and affected packages.
- github.com/panva/jose/releases/tag/v4.15.5: The 2024 fix shipped on the disclosure date.
- intel.aikido.dev/packages/npm/jose: Reports a separate low-severity finding through 6.2.4.
Good
- It has no dependencies and uses Web Crypto, so the same code runs on Node.js, browsers, Deno, Bun, Cloudflare Workers and Vercel Edge.
- It covers JWS, JWE, JWK and JWKS, and createRemoteJWKSet handles key fetching and caching on its own.
- It is secure by default: it never accepts the 'none' algorithm and it requires explicit algorithms.
- Maintenance is very active: 20 releases in the last year and no open issues or pull requests.
Bad
- It is only a token primitive: there are no sessions, OAuth flows or user management, so you need Auth.js, Better Auth or your own code on top.
- The API is async only, and SignJWT has no default algorithm, which trips up developers coming from jsonwebtoken.
- One maintainer does most of the work and publishes the releases, and the Scorecard gives Code-Review a 0.
- Frequent patch releases tighten input checks, which can sometimes reject input that older versions accepted.
The numbers
- npm downloads, 4 weeks
- 915M ×10 in a year
- GitHub stars
- 7.9k
- Commits, 12 months
- 291
- npm version
- 6.2.18 Nov 2026
- Versions, 12 months
- 20
- Advisories, 24 months
- 0 of 3 ever
- OpenSSF Scorecard
- 7.9 out of 10, Nov 2026
- Licence
- MIT
Many downloads come from other packages that install it.
Read on 21 November 2026 from GitHub (panva/jose), npm (jose), OSV and the OpenSSF Scorecard.
Authentication libraries
- 8.5Better Auth
- 8.3jose
- 7.9openid-client
- 6.8iron-session
- 6.3SuperTokens
- 5.2jsonwebtoken
- 4.9Passport
- 4.0Auth.js
- 1.6Arctic
- 1.6Lucia