# GraphQL Code Generator

Plugin-based command-line tool that generates typed code from a GraphQL schema and its operations.


Source: https://findsoftware.frbit.cloud/graphql-codegen/
Last reviewed: 2026-11-09
Listed since: 2026-11-09

## Record

### Links

- home: https://the-guild.dev/graphql/codegen/
- repository: https://github.com/dotansimha/graphql-code-generator
- docs: https://the-guild.dev/graphql/codegen/docs/getting-started/installation
- plugins: https://the-guild.dev/graphql/codegen/plugins
- x: https://x.com/theguilddev
- discord: https://discord.gg/xud7bH9
- youtube: https://www.youtube.com/watch?v=d_GBgH-L5c4&list=PLhCf3AUOg4PgQoY_A6xWDQ70yaNtPYtZd

### Identity

- status: active
- maintainer: Dotan Simha
- maintainerType: individual
- parent: The Guild
- firstRelease: 2016
- hqCountry: unknown

### Kind

- category: dev-tool
- hosting: not applicable
- language: javascript
- runtime: node
- runtimeMin: node 22
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: local
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 8
- latestReleaseDate: 2026-11-07

### Adoption

- githubStargazers: 11265
- packagistDownloads: not applicable
- npmWeeklyDownloads: 10691169
- contributors: 434
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://the-guild.dev/graphql/codegen/ (read 2026-11-09)
- urls: https://api.github.com/repos/dotansimha/graphql-code-generator (read 2026-11-09)
- urls: https://the-guild.dev/graphql/codegen/docs/getting-started/installation (read 2026-11-09)
- maintainer: https://github.com/dotansimha/graphql-code-generator/blob/master/LICENSE (read 2026-11-09)
- maintainerType: https://github.com/dotansimha/graphql-code-generator/blob/master/LICENSE (read 2026-11-09)
- parent: https://the-guild.dev/graphql/codegen/ (read 2026-11-09)
- language: https://api.github.com/repos/dotansimha/graphql-code-generator (read 2026-11-09)
- runtime: https://registry.npmjs.org/@graphql-codegen/cli/latest (read 2026-11-09)
- runtimeMin: https://registry.npmjs.org/@graphql-codegen/cli/latest (read 2026-11-09)
- category: https://github.com/dotansimha/graphql-code-generator/blob/master/README.md (read 2026-11-09)
- installMethod: https://the-guild.dev/graphql/codegen/docs/getting-started/installation (read 2026-11-09)
- license: https://api.github.com/repos/dotansimha/graphql-code-generator (read 2026-11-09)
- licenseModel: https://github.com/dotansimha/graphql-code-generator/blob/master/LICENSE (read 2026-11-09)
- firstRelease: https://api.github.com/repos/dotansimha/graphql-code-generator/releases?per_page=100 (read 2026-11-09)
- currentMajor: https://api.github.com/repos/dotansimha/graphql-code-generator/releases/latest (read 2026-11-09)
- latestReleaseDate: https://api.github.com/repos/dotansimha/graphql-code-generator/releases/latest (read 2026-11-09)
- githubStargazers: https://api.github.com/repos/dotansimha/graphql-code-generator (read 2026-11-09)
- contributors: https://api.github.com/repos/dotansimha/graphql-code-generator/contributors?per_page=1 (read 2026-11-09)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@graphql-codegen/cli (read 2026-11-09)
- runsAs: https://the-guild.dev/graphql/codegen/ (read 2026-11-09)
- urls: https://github.com/dotansimha/graphql-code-generator/blob/master/README.md (read 2026-11-09)

## Notes

GraphQL Code Generator is a command-line tool that generates code from a GraphQL schema and the operations written against it. Its project site describes it as a way to generate anything from a GraphQL schema, and the project maintains a plugin directory. A project installs it as a dependency with npm, and the tool runs on Node.js in development and CI.

The project's site presents it as part of The Guild's Hive ecosystem. Dotan Simha holds the copyright line in the license.

## Worth knowing

The docs say the tool loads plugins with require, which can fail in a monorepo when dependencies are hoisted.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
