# Keats/jsonwebtoken

JWT lib in rust

Repository: https://github.com/Keats/jsonwebtoken
Canonical: https://ross.abutalabs.com/products/jsonwebtoken
Language: Rust
License: MIT
License Family: permissive
Topics: jwt, rust, jsonwebtoken
Last push: 2026-07-24T10:59:44+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 3958, "days_push": 40, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2089, forks 361 (observed 2026-08-28T04:06:12.252342+00:00)

## What it is
A Rust library for creating and decoding JSON Web Tokens (JWTs) in a strongly typed way, supporting HS256/384/512, RS256/384/512, PS256/384/512, ES256/384, and EdDSA algorithms. It offers pluggable crypto backends (aws_lc_rs or rust_crypto) and claim validation with serde-based typed claims.

## Use cases
- issue and verify JWTs in a Rust web API
- sign tokens with HS256 or RS256 in Rust
- validate JWT expiration and claims
- decode JWTs into typed structs with serde
- support EdDSA and ES256 token signing in Rust

## When to choose
- you need a mature, widely used JWT library in Rust with strong typing
- you need broad algorithm coverage including EdDSA and RSA-PSS
- you want pluggable crypto providers or custom JWT headers

## When to avoid
- you need a full auth server or session management, not just token encoding/decoding
- your project is not in Rust

## Facets
- artifact type: library
- maturity: active
- function: auth, serialization, cryptography
- domain: security, web-development, apis
- platform: rust
- tags: jwt, jsonwebtoken, token-validation, jwk, serde

## Member repositories
- Keats/jsonwebtoken (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:12.252342+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:55:37.585279+00:00, confidence not recorded.
  - readme: https://github.com/Keats/jsonwebtoken (fetched 2026-08-28T04:06:12.252342+00:00, sha e6481151103b)
  - registry_crates: https://crates.io/api/v1/crates/jsonwebtoken (fetched 2026-08-29T10:35:21.906388+00:00, sha 30a8ac518d6f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
