# leangen/graphql-spqr

Build a GraphQL service in seconds

Repository: https://github.com/leangen/graphql-spqr
Canonical: https://ross.abutalabs.com/products/graphql-spqr
Language: Java
License: Apache-2.0
License Family: permissive
Topics: graphql, graphql-server, java, graphql-api
Last push: 2026-01-27T15:51:15+00:00

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

## Adoption (not part of the score)
Stars 1102, forks 181 (observed 2026-08-28T04:03:35.852515+00:00)

## What it is
GraphQL SPQR is a Java library that dynamically generates a GraphQL schema from existing Java code, enabling code-first GraphQL API development with minimal setup. It is deeply configurable and extensible, and works well in legacy projects without changes to the existing code base.

## Use cases
- add a graphql api to an existing java project
- generate graphql schema from java classes
- rapidly prototype a graphql server in java
- avoid duplicating schema definitions in a statically typed language
- expose spring boot services over graphql
- build a graphql api without writing sdl by hand

## When to choose
- you have existing Java business logic and want a GraphQL API with minimal boilerplate
- you prefer code-first schema generation over maintaining SDL files
- you need a highly configurable and extensible GraphQL layer on the JVM
- you want to iterate quickly on API design during prototyping

## When to avoid
- your team mandates schema-first GraphQL development with hand-written SDL
- you are not on the JVM or not using Java/Kotlin
- you need a standalone GraphQL gateway or federation solution rather than an embedded library

## Facets
- artifact type: library
- maturity: active
- function: graphql, api-framework, web-framework
- domain: web-development, backend, apis, developer-tools
- platform: jvm, cross-platform
- tags: code-first, schema-generation, spring-boot, rapid-prototyping

## Member repositories
- leangen/graphql-spqr (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:35.852515+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-30T06:45:38.431592+00:00, confidence not recorded.
  - readme: https://github.com/leangen/graphql-spqr (fetched 2026-08-28T04:03:35.852515+00:00, sha 28c257f42372)
- Data as of 2026-08-30T08:39:29.467469+00:00.
