Skip to content

The best GraphQL Code Generator alternatives

4 tools that do a similar job to GraphQL Code Generator, 4 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.

You're replacing

GraphQL Code Generator

Generates code from your GraphQL schema and queries, using plugins you choose.

  1. 1

    Storybook

    Open source · MIT · ★ 91.4k

    A workshop for building, viewing, and testing UI components one at a time, outside the full app.

    Best for: Frontend teams building a shared component library or design system; Developers who want to develop a UI component without running the whole app

  2. 2

    Mitosis

    Open source · MIT · ★ 14.5k

    Write UI components once in a JSX-like syntax and compile them to many frameworks.

    Best for: Teams maintaining the same UI components across more than one framework; Library authors who want to publish components for several frameworks

  3. 3

    Nx

    Open source · MIT · ★ 29.4k

    A build tool for monorepos that caches unchanged work and runs only what's affected.

    Best for: Teams with several related JavaScript or TypeScript projects in one repository; Developers who want to speed up existing package.json scripts without rewriting their setup

  4. 4

    sqlc

    Open source · MIT · ★ 18.4k

    Turns your SQL queries into type-safe code for Go, Python, Kotlin and more.

    Best for: Go developers who prefer writing plain SQL over using an ORM; Teams that want database query mistakes caught when generating code rather than at runtime

How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to GraphQL Code Generator. We don't take payment for placement.