awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
prisma-labs avatar

prisma-labs/graphql-request

0
View on GitHub↗
6,113 stars·312 forks·TypeScript·MIT·21 viewsgraffle.js.org↗

Graphql Request

graphql-request is a lightweight, type-safe GraphQL client library for JavaScript that runs across browsers, Node.js, and other JavaScript environments. It provides a minimal HTTP client for sending queries and mutations, with a promise-based execution model that uses the native fetch API for cross-runtime compatibility without additional dependencies.

The client supports reusable selection set composition at runtime, allowing fragments to be shared across multiple requests to reduce duplication. It includes a plugin-based extension system for adding custom middleware, tracing, or file upload support, and offers configurable error policies that can return partial data alongside errors instead of throwing. TypeScript code generation creates fully typed client methods from GraphQL schemas, providing compile-time validation and autocompletion for inputs and outputs.

The library handles automatic custom scalar encoding and decoding during request and response processing, and supports partial error resolution through configurable policies. It is designed as a persistent client instance with a base URL and shared configuration to simplify repeated API calls.

Features

  • GraphQL API Clients - Provides a lightweight, type-safe GraphQL client for making API calls from JavaScript applications.
  • GraphQL Type Generators - Generates fully typed TypeScript client methods from GraphQL schemas for compile-time validation.
  • GraphQL Clients - Provides a lightweight, type-safe HTTP client for sending GraphQL queries and mutations across any JavaScript runtime.
  • GraphQL Selection Set Composition - Builds and composes GraphQL selection sets at runtime for reuse across multiple requests.
  • Type-Safe Client Generators - Generates fully typed client methods from GraphQL schemas, providing compile-time validation and autocompletion for inputs and outputs.
  • GraphQL Clients - Sends GraphQL documents to remote endpoints and returns results as promises with variables and headers.
  • Composable Selection Sets - Provides runtime selection set composition for sharing fragments across multiple GraphQL requests.
  • Runtime Selection Set Composition - Builds and merges GraphQL selection sets dynamically at runtime for reusable fragments across queries.
  • Type-Safe API Integrations - Generates TypeScript client code with schema-reflective method names and fully typed inputs and outputs.
  • Custom Scalar Marshaling - Automatically encodes and decodes custom GraphQL scalar types during request and response processing.
  • GraphQL Partial Error Policies - Configures error handling to return partial data alongside errors instead of throwing on failure.
  • Plugin-Based Client Extensions - Provides a modular plugin system for adding custom middleware, tracing, and file upload support.
  • Client Plugin Pipelines - Extends client behavior through a modular plugin pipeline that intercepts requests and responses.
  • Plugin-Based Client Middleware - Provides a modular plugin architecture for adding custom middleware, tracing, and file upload support.
  • Selection Set Composers - Ships a runtime utility for composing and reusing GraphQL selection sets across multiple queries to reduce duplication.
  • GraphQL Clients - A minimal GraphQL client for Node and browsers.

Star history

Star history chart for prisma-labs/graphql-requestStar history chart for prisma-labs/graphql-request

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does prisma-labs/graphql-request do?

graphql-request is a lightweight, type-safe GraphQL client library for JavaScript that runs across browsers, Node.js, and other JavaScript environments. It provides a minimal HTTP client for sending queries and mutations, with a promise-based execution model that uses the native fetch API for cross-runtime compatibility without additional dependencies.

What are the main features of prisma-labs/graphql-request?

The main features of prisma-labs/graphql-request are: GraphQL API Clients, GraphQL Type Generators, GraphQL Clients, GraphQL Selection Set Composition, Type-Safe Client Generators, Composable Selection Sets, Runtime Selection Set Composition, Type-Safe API Integrations.

What are some open-source alternatives to prisma-labs/graphql-request?

Open-source alternatives to prisma-labs/graphql-request include: dotansimha/graphql-code-generator — This project is a type-safe GraphQL client generator and TypeScript schema compiler. It transforms GraphQL schema… apollographql/apollo-ios — apollo-ios is a GraphQL client library for iOS and Apple platforms that enables type-safe network communication. It… hey-api/openapi-ts — openapi-ts is a tool and orchestrator used to convert OpenAPI specifications into type-safe TypeScript SDKs and HTTP… apollographql/apollo-kotlin — Apollo Kotlin is a strongly-typed GraphQL client and code generation library designed for Kotlin and JVM applications.… acacode/swagger-typescript-api — swagger-typescript-api is a utility that parses OpenAPI definitions to generate strongly typed data models and service… apollostack/apollo-client — Apollo Client is a frontend GraphQL integration layer and client library used to fetch, manage, and cache data from a…

Open-source alternatives to Graphql Request

Similar open-source projects, ranked by how many features they share with Graphql Request.
  • dotansimha/graphql-code-generatordotansimha avatar

    dotansimha/graphql-code-generator

    11,257View on GitHub↗

    This project is a type-safe GraphQL client generator and TypeScript schema compiler. It transforms GraphQL schema definitions and operation documents into static TypeScript types to ensure compile-time validation and data consistency between an API and a frontend application. The system functions as a customizable GraphQL plugin framework. It uses a plugin-based architecture and a custom pipeline to generate tailored API clients and request functions, eliminating the need for manual type declarations. The project covers GraphQL client automation, type generation, and workflow optimization. I

    TypeScript
    View on GitHub↗11,257
  • apollographql/apollo-iosapollographql avatar

    apollographql/apollo-ios

    4,030View on GitHub↗

    apollo-ios is a GraphQL client library for iOS and Apple platforms that enables type-safe network communication. It transforms GraphQL operations into generated Swift models, ensuring that network responses are validated at compile time to eliminate manual mapping. The library features a normalized cache manager that stores entities in a flat structure to maintain data consistency across different application views. It also optimizes network performance using hash-based persisted queries to reduce payload sizes and supports real-time data streaming via WebSockets or HTTP subscriptions. The p

    Swiftapollo-iosapollographqlgraphql
    View on GitHub↗4,030
  • apollographql/apollo-kotlinapollographql avatar

    apollographql/apollo-kotlin

    3,955View on GitHub↗

    Apollo Kotlin is a strongly-typed GraphQL client and code generation library designed for Kotlin and JVM applications. It functions as a comprehensive development tool that transforms GraphQL schema definitions and query documents into type-safe models during the build process, ensuring that data access errors are identified at compile time rather than at runtime. The project distinguishes itself through its multiplatform runtime abstraction, which allows developers to share data fetching and caching logic across Android, iOS, and desktop environments. It provides a normalized local caching s

    Kotlinandroidapollographqlgraphql
    View on GitHub↗3,955
  • hey-api/openapi-tshey-api avatar

    hey-api/openapi-ts

    4,128View on GitHub↗

    openapi-ts is a tool and orchestrator used to convert OpenAPI specifications into type-safe TypeScript SDKs and HTTP client implementations. It automatically generates typed interfaces and request functions from API definitions to ensure consistency between the server and the client. The project employs a transport-agnostic client interface, decoupling high-level API calls from the underlying network library. It uses a plugin-based generation pipeline and a custom plugin architecture to allow for the customization of output types and validation schemas. The system provides capabilities for n

    TypeScriptangularaxioscodegen
    View on GitHub↗4,128
See all 30 alternatives to Graphql Request→