# 99designs/gqlgen

> gqlgen is a Go library for building GraphQL servers. You define the API in the GraphQL Schema Definition Language, and gqlgen generates Go code for models and boilerplate from that schema. The project is written in Go.

Source: https://github.com/99designs/gqlgen
Indexed: commit 8a12bb6 on 2026-06-01 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Language: Go
- Stars: 10,773 at index time
- License: MIT
- Code health: 7.4/10, Good
- Last commit: 2026-05-31

## Install

From the README: https://github.com/99designs/gqlgen#quick-start

Clone the gqlgen repository.
    git clone https://github.com/99designs/gqlgen.git

Move into the gqlgen folder.
    cd gqlgen

Create a project directory and initialise a Go module inside it.
    mkdir example

Initialise the gqlgen config and generate models.
    go tool gqlgen init

Start the GraphQL server.
    go run server.go

## How it works

The input is a GraphQL schema together with a gqlgen.yml config file, which the code generator reads. The codegen directory, the largest module by file count, holds that generator and its testserver packages, which check the generated output. The plugin directory contains plugins that extend generation, such as the federation plugin under plugin/federation. The graphql directory provides the runtime library that generated servers use, including ID types such as graphql.ID, graphql.IntID and graphql.UintID. The docs directory holds documentation, and the _examples directory contains sample applications built with gqlgen. Your own resolver code is written against the generated types.

- _examples/chat/server/server.go: entry point
- _examples/chat/src/App.js: entry point
- _examples/chat/src/index.js: entry point
- _examples/config/server/server.go: entry point
- _examples/dataloader/server/server.go: entry point
Modules: codegen, _examples, plugin, graphql, docs, .github, integration, internal. 883 files, 44,909 lines, 3,354 symbols.

## Code health

- Score: 7.4/10 (Good)
- Rank: #120 of 4,000+ indexed repos
- Hotspots: codegen/testserver/singlefile/generated.go, integration/server/generated.go, codegen/testserver/compliant-int/generated-compliant-strict/schema.go, codegen/testserver/compliant-int/generated-default/schema.go, codegen/testserver/usefunctionsyntaxforexecutioncontext/generated.go
- Lowest file: graphql/handler/transport/websocket.go
- Dead code: 211 findings

## Maintenance

- Last commit 2026-05-31
- bus factor 9

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/99designs/gqlgen/security

## More

- Page: https://repowise.dev/repo/99designs/gqlgen
- Ask this codebase: https://repowise.dev/repo/99designs/gqlgen/chat
- Docs: https://repowise.dev/repo/99designs/gqlgen/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/99designs/gqlgen
