repowiserepowise

99designs / gqlgen Architecture and code health

go generate based graphql server library

★ 10,773stars on GitHubGoMIT

This connects Repowise to 99designs/gqlgen's code. It does not install gqlgen.

Repowise maps public repos from their source. Not affiliated with 99designs. What is Repowise?

github.com/99designs/gqlgenIndexed at 8a12bb6

What is 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. To install it, run git clone https://github.com/99designs/gqlgen.git and follow the steps below. Its code health is 7.4 out of 10 (Good), ranked #110 of 4,000+ indexed repos. The last commit to gqlgen was on May 31, 2026.

As of commit 8a12bb6, indexed Jun 1, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.

For agentsgqlgen.md

Repo facts: type, license, health, rank, contributors
gqlgen facts
LicenseMIT
Code health7.4 / 10 (Good)
Health rank#110 of 4,000+ indexed repos
Last commitMay 31, 2026
Bus factor9
Size883 files, 44,909 lines

Install gqlgen

Commands copied from the README

  1. 1Clone the gqlgen repository.
    git clone https://github.com/99designs/gqlgen.git
  2. 2Move into the gqlgen folder.
    cd gqlgen
  3. 3Create a project directory and initialise a Go module inside it
    mkdir example
  4. 4Initialise the gqlgen config and generate models
    go tool gqlgen init
  5. 5Start the GraphQL server
    go run server.go

Releases on GitHub (latest v0.17.98, Oct 22, 2026)

Full install notes on GitHub

Explore gqlgen

Ask about this code in your agent

This connects Repowise to gqlgen's code. It does not install gqlgen. To install gqlgen, use the install steps.

Useful if you want to change or fork gqlgen: your agent can ask how it is put together and get answers that cite its files.

Ask about gqlgen

Answers come from gqlgen's README and source, with the files they cite. Two free answers a day without an account.

Want this for your own codebase? Map your repo free

About this page

Get a page like this for your own codebase

Repowise built this map of 99designs/gqlgen from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.

Free for 2 public repos, with a page like this one. No card. See how Repowise works

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub

99designs/gqlgen FAQ

What is gqlgen?

gqlgen is a Go library for building GraphQL servers from a schema written in the GraphQL Schema Definition Language. It generates Go code for models so you do not have to write that boilerplate by hand.

How does gqlgen work?

gqlgen reads your GraphQL schema and a gqlgen.yml config file, then generates Go code that your server is built on. You then implement the resolver functions it requires, and field resolvers run concurrently in separate goroutines.

What language is gqlgen written in?

gqlgen is written in Go, which is its primary language. The repository also contains some shell, TypeScript, JavaScript, Dockerfile and Makefile files.

How is the gqlgen code organized?

gqlgen keeps the code generator in the codegen directory and plugins such as federation in the plugin directory. The graphql directory holds the runtime types, and _examples holds sample applications.

When should I use gqlgen?

Use gqlgen when you are building a GraphQL server in Go and want to start from a schema you define in the GraphQL Schema Definition Language. It generates the Go code that the server is built on.

What license does gqlgen use?

gqlgen is released under the MIT license.

Code health

7.3out of 10Good

Hotspots average 5.5, the place fixes pay off most.

On the leaderboards:#7 of 28 Go repos

Key features of gqlgen

  • Lets you define the API with the GraphQL Schema Definition Language, following a schema first approach.
  • Generates Go models and boilerplate code from the schema so you can focus on application code.
  • Prioritises type safety, so generated code avoids map[string]interface{}.
  • Lets you remap GraphQL types such as ID to Go types like int, string or uint in the config file.
  • Runs field resolvers concurrently in separate goroutines, with the degree of concurrency set by the worker_limit configuration attribute.

How 99designs/gqlgen 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.

The codebase has 883 files and 3,354 symbols in 15 modules, led by Go, Shell and TypeScript. Code health is 7.3 out of 10, rated good.