# lestrrat-go/jwx

Complete implementation of JWx (Javascript Object Signing and Encryption/JOSE) technologies for Go. #golang #jwt #jws #jwk #jwe

Repository: https://github.com/lestrrat-go/jwx
Canonical: https://ross.abutalabs.com/products/jwx
Language: Go
License: MIT
License Family: permissive
Topics: jwt, jwe, jws, jwk, go, golang, oidc
Last push: 2026-08-24T08:40:36+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 3955, "days_push": 9, "days_rel": 13, "gap_med": 8, "n_releases_24m": 34}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2416, forks 196 (observed 2026-08-28T04:06:50.367193+00:00)

## What it is
A comprehensive Go library implementing the full JOSE family of standards (JWA, JWE, JWK, JWS, JWT) for signing, verifying, encrypting, and decrypting tokens and messages. It offers a uniform API, JWK caching via an extension module, and post-quantum algorithm support including ML-KEM, ML-DSA, and HPKE.

## Use cases
- sign and verify JWTs in a Go service
- parse and validate OIDC ID tokens
- encrypt payloads with JWE
- fetch and cache JWKS keys from an identity provider
- sign messages with multiple signatures using JWS
- try post-quantum signing algorithms like ML-DSA

## When to choose
- you need complete JOSE coverage in Go, not just basic JWT handling
- you need JWS detached payloads, RFC 7797, or multi-recipient JWE
- you want a consistent, option-based API across all JWx operations
- you need post-quantum cryptography support

## When to avoid
- you only need minimal JWT signing and a smaller dependency suffices
- you are not using Go
- you cannot run Go 1.26+ or manage the GOEXPERIMENT=jsonv2 requirement on Go 1.26
- you need a batteries-included auth server rather than a token library

## Facets
- artifact type: library
- maturity: active
- function: cryptography, auth, serialization, security
- domain: security, developer-tools, apis, web-development
- platform: go, cross-platform
- tags: jwt, jws, jwe, jwk, jose, oidc, post-quantum-cryptography, token-signing

## Member repositories
- lestrrat-go/jwx (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:50.367193+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:33:09.491643+00:00, confidence not recorded.
  - readme: https://github.com/lestrrat-go/jwx (fetched 2026-08-28T04:06:50.367193+00:00, sha 50582421050e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
