# nearform/graphql-hooks

🎣 Minimal hooks-first GraphQL client

Repository: https://github.com/nearform/graphql-hooks
Canonical: https://ross.abutalabs.com/products/graphql-hooks
Language: TypeScript
License: NOASSERTION
License Family: other
Topics: hooks, react-hooks, react, graphql, graphql-client, hacktoberfest
Last push: 2026-08-26T15:55:50+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 40, longevity 100
- inputs: {"age_days": 2763, "days_push": 7, "days_rel": 602, "gap_med": 0, "n_releases_24m": 16}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1886, forks 90 (observed 2026-08-28T04:05:49.056508+00:00)

## What it is
graphql-hooks is a minimal, hooks-first GraphQL client for React with a tiny bundle size and full SSR support. It provides a concise useQuery/useMutation API with plugin-based caching as an alternative to heavier clients like Apollo.

## Use cases
- query a graphql api from react components with hooks
- lightweight alternative to apollo client
- server-side rendering of graphql queries in react apps
- cache graphql responses with a pluggable cache
- handle loading and error states for graphql requests
- run graphql mutations from react

## When to choose
- you want a small, simple hooks-based graphql client for react
- you need ssr support without heavy tooling
- you find apollo client too large or complex for your needs

## When to avoid
- you need advanced features like normalized caching or full apollo ecosystem tooling
- your project does not use react
- you require official performance benchmarks or enterprise-grade support

## Facets
- artifact type: library
- maturity: active
- function: graphql, graphql-client, http-client, caching, ssr
- domain: web-development, frontend, apis
- platform: browser, cross-platform
- tags: react-hooks, graphql-client, tiny-bundle, ssr-support, typescript, nodejs

## Member repositories
- nearform/graphql-hooks (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:49.056508+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-30T03:13:35.167601+00:00, confidence not recorded.
  - readme: https://github.com/nearform/graphql-hooks (fetched 2026-08-28T04:05:49.056508+00:00, sha b7e9c70029c7)
  - registry_npm: https://registry.npmjs.org/graphql-hooks (fetched 2026-08-29T10:52:47.796956+00:00, sha c58a0ac0c686)
- Data as of 2026-08-30T08:39:29.467469+00:00.
