# 99designs/gqlgen

go generate based graphql server library

Repository: https://github.com/99designs/gqlgen
Canonical: https://ross.abutalabs.com/products/gqlgen
Homepage: https://gqlgen.com
Language: Go
License: MIT
License Family: permissive
Topics: graphql, subscriptions, schema-first, codegen, gogenerate, golang, dataloader
Last push: 2026-08-24T09:27:26+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 92, longevity 100
- inputs: {"age_days": 3125, "days_push": 9, "days_rel": 55, "gap_med": 13.0, "n_releases_24m": 45}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10753, forks 1252 (observed 2026-08-28T04:10:44.128820+00:00)

## What it is
gqlgen is a Go library for building GraphQL servers using a schema-first approach with code generation. It generates type-safe resolvers and models from GraphQL Schema Definition Language files, avoiding untyped map[string]interface{} code.

## Use cases
- build a graphql server in go
- generate type-safe graphql resolvers from a schema
- schema-first graphql api development
- implement graphql subscriptions in golang
- avoid n+1 queries with dataloader in graphql
- generate go models from graphql schema
- create a typed graphql api backend

## When to choose
- you want a schema-first, type-safe GraphQL server in Go
- you prefer code generation over runtime reflection for GraphQL
- you need subscriptions, dataloader, or custom directives in a Go API
- you want to avoid map[string]interface{} in your GraphQL layer

## When to avoid
- you prefer writing resolvers by hand without codegen
- your project is not in Go
- you need a schema-last (code-first) GraphQL approach
- you want a runtime-only GraphQL library with minimal build steps

## Facets
- artifact type: library
- maturity: stable
- function: graphql, api-framework, http-server
- domain: web-development, backend, apis, developer-tools
- platform: go, cross-platform
- tags: schema-first, dataloader, subscriptions, type-safety, graphql-server, go-generate, codegen, web-server

## Member repositories
- 99designs/gqlgen (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:44.128820+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:17:54.465112+00:00, confidence not recorded.
  - readme: https://github.com/99designs/gqlgen (fetched 2026-08-28T04:10:44.128820+00:00, sha 2b724edde9c7)
  - homepage: https://gqlgen.com (fetched 2026-08-29T08:16:52.380804+00:00, sha abad74f6d101)
  - site_page: https://gqlgen.com/getting-started (fetched 2026-08-29T08:16:52.383913+00:00, sha 76f31c6c31a0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
