Overview
Onfido GraphQL Request is a fork of a minimal GraphQL client. It removes `cross-fetch` in favor of global `fetch` and changes request options so callers can pass the entire `RequestInit` object rather than only headers.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Send GraphQL queries and mutations through a small Promise API
Use the request helper or a GraphQLClient instance to call GraphQL endpoints with a lightweight API.
Sources: [2]
Pass full RequestInit options including AbortSignal
The fork's main change is accepting RequestInit, enabling native web options such as AbortController signals.
Sources: [2]
For existing code that depends on the Onfido fork behavior
It is most relevant where existing applications already depend on its global-fetch or RequestInit semantics.
Sources: [2]
Account for the fork, stale maintenance, and package-name differences
This repository is separate from the canonical upstream and has not been pushed since 2023. README examples retain upstream-era names, so verify actual install and import paths against @onfido/graphql-request.
Official sources
- [1]onfido/graphql-request repository(2026-09-21)
- [2]Onfido GraphQL Request README(2026-09-21)
- [3]@onfido/graphql-request package(2026-09-21)
- [4]Current upstream repository(2026-09-21)
- [5]MIT license(2026-09-21)
Supplemental curator note
This is not the canonical GraphQL Request repository; it is an Onfido fork whose lineage now points to `graffle-js/graffle`. The package is `@onfido/graphql-request` 1.1.0 and the last push was in August 2023. For new adoption, compare the fork-specific global-fetch and RequestInit behavior with current upstream options.
Try it in 3 steps
- 1
Install the Onfido fork and GraphQL
The README retains some upstream-era package names, but this fork is published as @onfido/graphql-request.
npm add @onfido/graphql-request graphql - 2
Send a query with request
Call an endpoint with the lightweight Promise-based request API.
import { request, gql } from '@onfido/graphql-request' - 3
Pass an AbortSignal
Exercise the fork-specific RequestInit support by cancelling a request through AbortController.
request(endpoint, query, variables, { signal: controller.signal })
Growth
Growth trends · Last 30 days
1 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 0
- Open PRs
- 4
Development activity is still being collected.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
- Stars
- 1
- Forks
- 0
- Watchers
- 0
- Open issues
- 0
- Contributors
- 35
- Primary language
- TypeScript
- License
- MIT
- Repository last updated
- Aug 30, 2023
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- urql8,977 Stars
3 shared tag(s) · 1 shared category(s) · Same language
A GraphQL client for React, Vue, Solid, Svelte, and other frameworks that starts with document caching and grows through customizable exchanges.
TypeScript - Hoppscotch80,429 Stars
2 shared tag(s) · 2 shared category(s) · Same language
An API development ecosystem spanning REST, GraphQL, WebSocket, MQTT, Web/Desktop/CLI clients, and self-hosting.
TypeScript - GraphQL Code Generator11,260 Stars
2 shared tag(s) · 2 shared category(s) · Same language
A plugin-based generator that turns GraphQL schemas and query/mutation/subscription documents into TypeScript types, client code, resolver types, and other outputs.
TypeScript - Apollo Server13,954 Stars
2 shared tag(s) · 1 shared category(s) · Same language
A Node.js GraphQL server that builds APIs from schemas and resolvers, with standalone, web-framework, subgraph, and federation-gateway deployment paths.
TypeScript - AWS Amplify JavaScript9,561 Stars
2 shared tag(s) · 1 shared category(s) · Same language
AWS Amplify's JavaScript library for using authentication, APIs, storage, and other cloud capabilities from web and React Native applications. The current `aws-amplify` package is 6.21.0.
TypeScript
Report incorrect information
Tell us if any listing information is incorrect or outdated.