{"library":"graphql-request","type":"library","category":null,"description":"graphql-request is a lightweight, promise-based GraphQL client designed for simple applications and scripts in both Node.js and browser environments. It currently maintains version 7.x as its stable series, with `7.4.0` being the latest as of this entry. Releases appear to be somewhat frequent, driven by bug fixes and minor features, often in quick succession (e.g., 7.3.1 to 7.3.5). Key differentiators include its extreme simplicity, minimal footprint compared to full-fledged clients like Apollo or Relay, first-class TypeScript support (including `TypedDocumentNode`), and its isomorphic nature. It focuses on sending raw GraphQL documents and receiving responses without complex caching or state management layers. This makes it ideal for one-off requests or applications where a full client is overkill. Users must manually install `graphql` as a peer dependency.","language":"javascript","status":"active","version":"7.4.0","tags":["javascript","graphql","request","fetch","graphql-client","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install graphql-request","imports":["import { request } from 'graphql-request'","import { GraphQLClient } from 'graphql-request'","import { gql } from 'graphql-request'","import { ClientError } from 'graphql-request'"]},{"cmd":"yarn add graphql-request","imports":[]},{"cmd":"pnpm add graphql-request","imports":[]}],"homepage":null,"github":"https://github.com/graffle-js/graffle","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/graphql-request","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/graphql-request/compatibility"}}