# jwt/ruby-jwt

A ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.

Repository: https://github.com/jwt/ruby-jwt
Canonical: https://ross.abutalabs.com/products/ruby-jwt
Homepage: http://ruby-jwt.org
Language: Ruby
License: MIT
License Family: permissive
Topics: jwt, ruby-jwt, oauth-json-web, ruby, jwt-token, jwk
Last push: 2026-08-03T15:06:40+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 85, longevity 100
- inputs: {"age_days": 5670, "days_push": 30, "days_rel": 103, "gap_med": 8.0, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3687, forks 376 (observed 2026-08-28T04:08:14.670217+00:00)

## What it is
A Ruby gem implementing the RFC 7519 OAuth JSON Web Token (JWT) standard, supporting encoding and decoding of signed tokens with HMAC, RSASSA, ECDSA, RSASSA-PSS, and none algorithms via OpenSSL, plus JWK support and extension gems like jwt-eddsa. It is the de facto standard JWT library for Ruby applications.

## Use cases
- encode and decode JWT tokens in a Ruby app
- sign tokens with HMAC or RSA in Rails
- verify JWTs from an auth provider
- handle JWK key sets for token verification
- implement token-based authentication in Ruby APIs

## When to choose
- you need standards-compliant JWT handling in Ruby or Rails
- you need broad algorithm support including RSASSA-PSS and JWK
- you want a mature, widely used, MIT-licensed library

## When to avoid
- you need JWT support in a non-Ruby language
- you need session management or full OAuth flows rather than just token encoding/decoding

## Facets
- artifact type: library
- maturity: stable
- function: auth, cryptography, security, serialization
- domain: security, web-development, backend, apis
- platform: ruby
- tags: jwt, jwk, oauth, token-signing, rfc7519, jws, jwa

## Member repositories
- jwt/ruby-jwt (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:14.670217+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-29T18:31:09.311468+00:00, confidence not recorded.
  - readme: https://github.com/jwt/ruby-jwt (fetched 2026-08-28T04:08:14.670217+00:00, sha 57533501b756)
  - homepage: http://ruby-jwt.org (fetched 2026-08-29T09:24:53.389258+00:00, sha f6a5df08611e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
