graphql-typed-client and graphqlgen
These are complements: graphql-typed-client generates type-safe client code for consuming GraphQL APIs, while graphqlgen generates type-safe resolver code for implementing GraphQL servers, so they address opposite ends of a GraphQL architecture and can be used together in full-stack applications.
About graphql-typed-client
helios1138/graphql-typed-client
A tool that generates a strongly typed client library for any GraphQL endpoint. The client allows writing GraphQL queries as plain JS objects (with type safety, awesome code completion experience, custom scalar type mapping, type guards and more)
Generates clients from GraphQL introspection or schema files using a CLI tool that supports authenticated endpoints and custom fetchers. Provides dual query syntax—a chainable builder API and a raw object syntax that structurally mirrors GraphQL queries, automatically converting them to optimized queries with variables and inline fragments. Built-in support for subscriptions via WebSocket transport, custom scalar mappings, interface/union type handling, and an `__scalar` auto-selection feature for reducing boilerplate.
About graphqlgen
prisma-labs/graphqlgen
⚙️ Generate type-safe resolvers based upon your GraphQL Schema
Generates resolver stubs with precise type signatures for `parent`, `args`, and return types across TypeScript and Flow, supporting schema-first workflows. Integrates with Apollo Server and GraphQL Yoga, includes built-in support for Prettier formatting and graphql-import, and can reference external type definitions from model files. CLI-driven with YAML configuration for flexible project setups.
Scores updated daily from GitHub, PyPI, and npm data. How scores work