# graffle-js/graffle

Simple GraphQL Client for JavaScript. Minimal. Extensible. Type Safe. Runs everywhere.

Repository: https://github.com/graffle-js/graffle
Canonical: https://ross.abutalabs.com/products/graffle
Homepage: http://graffle.js.org/
Language: TypeScript
License: MIT
License Family: permissive
Topics: graphql, graphql-client, nodejs, typescript, lightweight
Last push: 2026-05-11T20:17:22+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 81, release rhythm 60, longevity 100
- inputs: {"age_days": 3402, "days_push": 114, "days_rel": 264, "gap_med": 8, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6116, forks 310 (observed 2026-08-28T04:09:36.075508+00:00)

## What it is
Graffle is a minimal, extensible, type-safe GraphQL client for JavaScript and TypeScript, formerly known as graphql-request. It supports multiple transports (HTTP and in-memory), a type-inferred document builder, custom scalar codecs, and a powerful extension ecosystem.

## Use cases
- query a graphql api from javascript
- send typed graphql requests from typescript
- execute graphql documents against an in-memory schema
- add custom scalar encoding and decoding to a graphql client
- replace graphql-request with a maintained client
- build type-safe graphql documents without writing gql strings
- handle schema-modelled errors in graphql responses
- add opentelemetry tracing or file uploads to graphql requests

## When to choose
- you want a lightweight, type-safe GraphQL client that runs in Node, browsers, and other JS runtimes
- you need full TypeScript inference for GraphQL documents and results
- you want to test GraphQL operations against in-memory schemas with the same client interface
- you need extensibility via hooks, extensions, and custom scalar codecs

## When to avoid
- you need a full GraphQL code generator or ORM-like schema-to-SDK workflow
- your project requires a long-term stable release, since Graffle is still in pre-release
- you work outside the JavaScript/TypeScript ecosystem

## Facets
- artifact type: library
- maturity: active
- function: graphql-client, http-client, type-system, middleware
- domain: web-development, frontend, backend, apis, developer-tools
- platform: browser, cross-platform, bun
- tags: graphql, type-safe, document-builder, multi-transport, extensible, custom-scalars, pre-release, nodejs, typescript, deno

## Member repositories
- graffle-js/graffle (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:36.075508+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-29T17:48:00.637671+00:00, confidence not recorded.
  - readme: https://github.com/graffle-js/graffle (fetched 2026-08-28T04:09:36.075508+00:00, sha f1cf087bc98a)
  - homepage: http://graffle.js.org/ (fetched 2026-08-29T08:44:49.477960+00:00, sha 89297c990a73)
- Data as of 2026-08-30T08:39:29.467469+00:00.
