@graphql-codegen/typescript
GraphQL Code Generator plugin to auto-generate TypeScript types from schemas.
Languages, types and runtimes npm MIT
How @graphql-codegen/typescript is used
@graphql-codegen/typescript is a dependency in 13 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 24 projects, and what it is used with below comes from all of them. The most used alternative in our scan is OpenAPI TypeScript (19 projects). Projects that use it most often also use GraphQL Code Generator (100.0%), @graphql-codegen/typescript-operations (87.5%), Prettier (79.2%).
@graphql-codegen/typescript popularity over time
Gid Score 57: downloads 79, use in agent projects 30, GitHub stars 52, downloads trend 57 (each 0-100). How it is calculated.
Often used with @graphql-codegen/typescript
| GraphQL Code Generator | 100.0% of @graphql-codegen/typescript projects · 310.4× more than average |
|---|---|
| @graphql-codegen/typescript-operations | 87.5% of @graphql-codegen/typescript projects · 493.8× more than average |
| Prettier | 79.2% of @graphql-codegen/typescript projects · 3.8× more than average |
| GraphQL.js | 70.8% of @graphql-codegen/typescript projects · 112.8× more than average |
| Apollo Client | 54.2% of @graphql-codegen/typescript projects · 210.2× more than average |
| Testing Library | 50.0% of @graphql-codegen/typescript projects · 4.9× more than average |
| Radix UI | 50.0% of @graphql-codegen/typescript projects · 3.8× more than average |
| jsdom | 45.8% of @graphql-codegen/typescript projects · 4.7× more than average |
From all 24 projects in our scan that use @graphql-codegen/typescript, including the dependency samples.
By coding agent
| Claude Code | 0.3% of projects set up for it |
|---|---|
| Cursor | 0.3% of projects set up for it |
Share of public repos configured for each agent that list @graphql-codegen/typescript as a dependency.
Install
| Package | npm install @graphql-codegen/typescript |
|---|---|
| Main stacks | TypeScript / JavaScript (15), Next.js (5), Ruby (2), Rust (1) |
| Example projects | zammad/zammad, commercetools/merchant-center-application-kit, ArtBlocks/artblocks-contracts, agent0lab/agent0-ts, balancer/b-sdk |
Alternatives to @graphql-codegen/typescript
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside @graphql-codegen/typescript are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| OpenAPI TypeScript npm Generate TypeScript types from OpenAPI 3.0 and 3.1 schemas automatically. |
60 | 19 (0.4%) | 5.8M | 8,404 | MIT |
More in Languages, types and runtimes: TypeScript tsx ts-node jiti vue-tsc Cloudflare Workers Types mypy tsconfig-paths