graphql-code-generator
A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins. (by dotansimha)
rtk-query-codegen
By rtk-incubator

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build dynamic JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.
surveyjs.io
featured
graphql-code-generator | rtk-query-codegen | |
---|---|---|
71 | 4 | |
11,123 | 93 | |
0.3% | - | |
8.6 | 0.0 | |
8 days ago | almost 4 years ago | |
TypeScript | TypeScript | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
graphql-code-generator
Posts with mentions or reviews of graphql-code-generator.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-01-22.
-
Best headless CMS for Next.js - Typescript support comparison
But since the dotansimha/graphql-code-generator library is hugely popular, this approach is likely to be successful.
- When semantic versioning is a sham
-
Integrating GraphQL Codegen with Storyblok: Step-by-Step Guide
The @graphql-codegen library is a bridge between your GraphQL schema and the actual code you write. It automates the generation of boilerplate code, ensuring that your data fetching layer is always up to date with your content structure.
-
The complete GraphQL Scalar Guide
In typescript and typescript-resolvers plugin v4.0.1, we have reverted the default ID Scalar input type to string. Read the pull request for more details.
-
Looking4Library: A GraphQL client that has query methods on the generated types
See https://github.com/dotansimha/graphql-code-generator with @graphql-codegen/typescript-graphql-request plugin
-
graphql-code-generator VS gqless - a user suggested alternative
2 projects | 2 Jun 2023
-
Making GraphQL Codegen Work For You: GraphQL Integration with React and TypeScript
Graphql Codegen is a code generation library for GraphQL that enables developers to generate custom code. It provides us developers with the ability to generate type definitions, query builders, documentation, and more by analyzing our GraphQL schemas. This makes it easier and faster to build GraphQL applications and reduces the time spent coding.
-
help wanted: Typescript GraphQL Types Response
It is already incoming, with an example in the repository. 😇 https://github.com/dotansimha/graphql-code-generator/pull/8863
-
Why does this package.json script for graphql-codegen only work if the package is installed directly in the package.sjon, even if it already exists in node_modules?
The actual package is @ graphql-codegen/cli
-
Why we ditched GraphQL for tRPC
GraphQL Codegen generates frontend types and React hooks from our GraphQL request definitions.
rtk-query-codegen
Posts with mentions or reviews of rtk-query-codegen.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-31.
-
FastAPI vs Next.js API for Backend
The nice thing is FastAPI generates OpenAPI. And you can use that to generate a fully typed React-Redux-Typescript client https://github.com/rtk-incubator/rtk-query-codegen . So oddly enough it's even faster than code sharing because everything is generated for you, whereas otherwise you could share interfaces but you'd still have to write the client code.
-
Why Redux Is More Relevant Than Ever Today
As an example, this is the "boilerplate" for >20 complete api endpoints and hooks for them: https://github.com/rtk-incubator/rtk-query-codegen/blob/next/test/fixtures/generated.ts
-
Redux Toolkit 1.6.0 - new RTK Query data caching API!
But really, that should only be a real concern once you reach 50+ endpoints. If you look at the autogenerated api for the OpenAPI petstore example with somewhere around 20+ endpoints, that's still pretty manageable. (And autogenerated, so nothing to worry about anyways.)
-
Getting array of values from Literal type
Currently using dtsgenerator but will probably migrate to RTK query codegen soon, neither of which has the functionallity for that.
What are some alternatives?
When comparing graphql-code-generator and rtk-query-codegen you can also consider the following projects:
TypeGraphQL - Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
oazapfts - Generate TypeScript clients to tap into OpenAPI servers
24-days-of-purescript-2016 - 24 Days of PureScript, 2016
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development
orval - orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
ngrx-rtk-query - Make RTK Query with Hooks works in Angular Applications

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build dynamic JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.
surveyjs.io
featured