#1919th of 45 in Backend and cloud templates
gqlgen
Schema-first GraphQL server generator for Go with typed resolvers
Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 10.8k
- License
- MIT
- Last commit
- Oct 2026
- Last release
- Oct 2026
- Language
- Go
10,647 on 21 Apr 202610,772 on 10 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
gqlgen is a Go library and code generator that reads a GraphQL schema (SDL) and generates typed server code and models, so you only write resolver functions. Behavior is configured through gqlgen.yml or inline schema directives such as @goModel and @goField. It is not AI-specific; it fits only loosely in this list as a backend API starter.
Who it is for: Go developers building GraphQL APIs from a schema
Strengths
- Schema-first: generates Go models and server code from GraphQL SDL
- Typed output; README states no map[string]interface{} in generated code
- Binds to your own Go structs via gqlgen.yml or @goModel directives
- Field resolvers run concurrently in goroutines, with a configurable worker_limit
Weaknesses
- No AI, model or agent features; it is a general GraphQL tool
- Go only; requires running a generate step after schema changes
- Remapping ID type has one default; the first listed model is always used
- Nested fields need custom models or explicit resolvers to avoid over-fetching
What it needs
- Go
- Needs Go toolchain
Quick answers
Is gqlgen open source?
Yes. Its code is on GitHub under the MIT license.
Also in Backend and cloud templates
See all 45| Rank | Project | Score |
|---|---|---|
| 1 | fastapiPython web framework for typed REST APIs with automatic OpenAPI docs | 90 out of 100 |
| 2 | fiberExpress-style HTTP web framework for Go, built on fasthttp | 90 out of 100 |
| 3 | generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends | 90 out of 100 |
| #4 | serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml | 88 out of 100 |
| #5 | echoMinimalist Go web framework with a radix-tree router and middleware | 86 out of 100 |