awesome-repositories.com
Blog
awesome-repositories.com

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

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
dotansimha avatar

dotansimha/graphql-code-generator

0
View on GitHub↗
11,257 stars·1,392 forks·TypeScript·MIT·7 viewsthe-guild.dev/graphql/codegen↗

Graphql Code Generator

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. It maps schemas to operations to synthesize types and produce the necessary boilerplate for type-safe API integration.

Features

  • Type-Safe Client Generators - Generates type-safe client code from GraphQL specifications to ensure consistency between the server and client.
  • GraphQL Model Generators - Transforms GraphQL schemas into native type-safe TypeScript interfaces to ensure frontend-backend data consistency.
  • GraphQL Source Generators - Transforms GraphQL ASTs into diverse target source code files through a plugin-driven generation process.
  • GraphQL Compilers - Compiles GraphQL schema definitions into static TypeScript types for build-time validation.
  • Third-Party Plugins - Provides a plugin system that allows developers to extend the generation lifecycle with custom clients and helpers.
  • Type Definition Generators - Automatically synthesizes static TypeScript type information from GraphQL schemas and operations for external consumption.
  • TypeScript Type Synthesis - Converts dynamic GraphQL schema definitions into static TypeScript interfaces for compile-time type checking.
  • GraphQL Code Generation Frameworks - Provides a customizable system for building plugins that generate tailored code based on GraphQL operation definitions.
  • GraphQL Clients - Automates the generation of API clients and request functions based on defined GraphQL queries and mutations.
  • Type-Safe API Integrations - Synchronizes data schemas between client and server to ensure full type safety across network boundaries.
  • GraphQL Schema Mappings - Cross-references GraphQL operation documents against the schema to derive precise return types for specific queries.
  • Schema Synchronization Automation - Reduces manual boilerplate by automating the synchronization of TypeScript types whenever the GraphQL schema changes.
  • GraphQL AST Parsing - Parses GraphQL query strings into abstract syntax trees to enable subsequent type mapping and code generation.
  • GraphQL Clients - Tool for generating typed code from GraphQL schemas.
  • Code Generation and Utilities - Code generator based on GraphQL schemas and documents.
  • Type Safety and Schema Construction - Generator with support for TypeScript, React Hooks, and resolvers.

Star history

Star history chart for dotansimha/graphql-code-generatorStar history chart for dotansimha/graphql-code-generator

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

Open-source alternatives to Graphql Code Generator

Similar open-source projects, ranked by how many features they share with Graphql Code Generator.
  • 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
  • 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
  • prisma-labs/graphql-requestprisma-labs avatar

    prisma-labs/graphql-request

    6,113View on GitHub↗

    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

    TypeScript
    View on GitHub↗6,113
  • openapi-ts/openapi-typescriptopenapi-ts avatar

    openapi-ts/openapi-typescript

    8,180View on GitHub↗

    openapi-typescript is an OpenAPI TypeScript type generator and schema transformer. It converts JSON or YAML OpenAPI specification files into static TypeScript type definitions to provide end-to-end API type safety. The tool functions as a static type generator that transforms external API definitions into interfaces and types. It focuses on zero-runtime type enforcement, ensuring that data consistency is maintained via the TypeScript type system without adding overhead to production bundles. The project covers API type safety and schema conversion, facilitating the validation of request bodi

    TypeScriptopenapiopenapi3openapi3-1
    View on GitHub↗8,180
See all 30 alternatives to Graphql Code Generator→

Frequently asked questions

What does dotansimha/graphql-code-generator do?

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.

What are the main features of dotansimha/graphql-code-generator?

The main features of dotansimha/graphql-code-generator are: Type-Safe Client Generators, GraphQL Model Generators, GraphQL Source Generators, GraphQL Compilers, Third-Party Plugins, Type Definition Generators, TypeScript Type Synthesis, GraphQL Code Generation Frameworks.

What are some open-source alternatives to dotansimha/graphql-code-generator?

Open-source alternatives to dotansimha/graphql-code-generator include: 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… prisma-labs/graphql-request — graphql-request is a lightweight, type-safe GraphQL client library for JavaScript that runs across browsers, Node.js,… openapi-ts/openapi-typescript — openapi-typescript is an OpenAPI TypeScript type generator and schema transformer. It converts JSON or YAML OpenAPI… apollostack/apollo-client — Apollo Client is a frontend GraphQL integration layer and client library used to fetch, manage, and cache data from a… apollographql/apollo-kotlin — Apollo Kotlin is a strongly-typed GraphQL client and code generation library designed for Kotlin and JVM applications.…