# graphql-rust/graphql-client

Typed, correct GraphQL requests and responses in Rust

Repository: https://github.com/graphql-rust/graphql-client
Canonical: https://ross.abutalabs.com/products/graphql-client
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: graphql, rust, wasm, webassembly, client
Last push: 2026-08-11T10:20:02+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 54, longevity 100
- inputs: {"age_days": 3014, "days_push": 22, "days_rel": 230, "gap_med": 38, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1263, forks 177 (observed 2026-08-28T04:04:10.468243+00:00)

## What it is
A typed GraphQL client library for Rust that generates precise Rust types for query variables and responses at compile time from schema and query files. It supports fragments, unions, enums, custom scalars, subscriptions, and runs in the browser via WebAssembly.

## Use cases
- query a GraphQL API from Rust with fully typed responses
- generate Rust structs from a GraphQL schema and queries
- call a GraphQL backend from a WebAssembly browser app
- consume GraphQL subscriptions in Rust
- avoid hand-writing GraphQL request/response types
- get compile-time checks for deprecated GraphQL fields

## When to choose
- you write Rust (server or WASM) and need type-safe GraphQL client calls
- you want schema-derived types generated at compile time via proc macros
- you need GraphQL subscriptions or custom scalar support in Rust

## When to avoid
- you need a GraphQL server implementation rather than a client
- you want runtime/dynamic queries without compile-time schema files
- your project is not in Rust

## Facets
- artifact type: library
- maturity: active
- function: graphql-client, http-client, serialization
- domain: web-development, apis, frontend, developer-tools
- platform: rust, wasm, cross-platform
- tags: graphql, typed-queries, procedural-macros, codegen, wasm, subscriptions

## Member repositories
- graphql-rust/graphql-client (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:10.468243+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-30T05:04:08.415826+00:00, confidence not recorded.
  - readme: https://github.com/graphql-rust/graphql-client (fetched 2026-08-28T04:04:10.468243+00:00, sha 299b7f942856)
  - registry_crates: https://crates.io/api/v1/crates/graphql-client (fetched 2026-08-29T12:16:10.458688+00:00, sha 2535f67c0100)
- Data as of 2026-08-30T08:39:29.467469+00:00.
