awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
99designs avatar

99designs/gqlgen

0
View on GitHub↗
10,729 stars·1,251 forks·Go·MIT·31 viewsgqlgen.com↗

Gqlgen

gqlgen is a schema-first Go library designed to build type-safe GraphQL servers. It functions as a code generation engine that transforms declarative GraphQL schema definitions into strongly-typed Go source code, ensuring strict alignment between the API contract and the underlying implementation.

The framework distinguishes itself through its deep integration with the Go type system and its highly extensible build pipeline. By using schema-first development, it automates the creation of server boilerplate and resolver stubs, allowing developers to map schema fields directly to Go structs and methods. It supports advanced architectural patterns such as distributed federation, custom middleware for cross-cutting concerns, and directive-based metadata injection to influence generated code and runtime behavior.

Beyond core generation, the toolkit provides a comprehensive suite of features for managing complex API lifecycles. This includes performance-oriented capabilities like database request batching, deferred field resolution, and query complexity analysis to protect server resources. It also handles real-time data streaming via subscriptions, multipart file uploads, and robust error propagation, all while maintaining observability through integrated tracing and logging hooks.

The project is distributed as a Go module, with documentation and installation instructions available in the primary repository.

Features

  • Schema Definition - Uses declarative schema definition language as the single source of truth for API structure.
  • API Development Platforms - Provides a collection of utilities for managing complex data relationships, real-time subscriptions, and request lifecycle hooks.
  • Schema-Driven Code Generators - Transforms declarative API definitions into strongly-typed source code to ensure strict alignment between schema and implementation.
  • Server Implementations - Implements GraphQL server functionality including queries, mutations, and real-time subscriptions.
  • GraphQL Schema Generation - Generates type-safe Go code from GraphQL schema definitions to build robust and performant API servers.
  • Schema-First Development Frameworks - Builds type-safe GraphQL servers by defining API contracts in schema files and generating the corresponding boilerplate code.
  • Resolver Implementations - Provides custom logic for fetching or computing specific fields to optimize performance and data loading.
  • Build-Time Code Generation Engines - Transforms declarative API contracts into strongly-typed structures and boilerplate-free resolver implementations.
  • Type-Safe API Frameworks - Ensures strict consistency between schema definitions and underlying data models through automated code generation.
  • Federated Databases - Integrates distributed graph architectures by composing multiple independent subgraphs into a single unified schema.
  • Field-to-Model Mappers - Maps schema fields directly to Go structs and methods to ensure type-safe data resolution.
  • Server Boilerplate Generators - Automates the creation of server boilerplate and ensures consistent data structures across the application.
  • Query Depth Restrictions - Rejects incoming requests that exceed a defined computational cost threshold to prevent resource exhaustion.
  • Federation Engines - Composes multiple independent subgraphs into a single unified API to support modular and scalable microservice architectures.
  • Service Hosting - Starts a local server instance to execute queries and mutations against defined resolvers.
  • Query Languages - GraphQL server generator.
  • Go GraphQL Tools - Library for generating GraphQL servers from schemas.
  • Batch Data Fetchers - Combines multiple individual data lookups into a single bulk query per request to lower database load.
  • Field-Level Middleware - Attaches reusable logic to schema fields or arguments to intercept requests and execute cross-cutting concerns.
  • Real-time Data Subscriptions - Manages persistent connections and updates state based on incoming events for real-time data streaming.
  • Directive Metadata Injections - Uses custom schema directives to influence code generation and inject runtime behavior into specific fields.
  • Custom Middleware Implementations - Intercepts request-response cycles to perform custom logic or data modification for cross-cutting concerns.
  • GraphQL Performance Optimizers - Implements advanced data fetching strategies like batching and deferred resolution to ensure efficient API execution.
  • Query Complexity Calculators - Assigns specific weight values to individual fields to accurately reflect the resource consumption of complex data lookups.
  • Request Middleware - Hooks into the request processing pipeline to apply cross-cutting concerns like authentication and logging globally.
  • Real-Time Data Streaming - Enables persistent connections to push live data updates to clients using WebSockets or Server-Sent Events.
  • Deferred Resolution - Optimizes performance by fetching nested or child objects only when explicitly requested by the client.
  • Query Persistence Engines - Sends short query hashes instead of full query strings to reduce bandwidth usage.
  • Subscription Schema Definitions - Allows declaring real-time event streams directly within the API schema.
  • Build Pipeline Plugins - Allows extending the code generation process by hooking into lifecycle stages to customize output.
  • WebSocket Security - Validates initial connection payloads during the handshake process to verify user identity for subscriptions.
  • Resolver Context Injectors - Injects request-scoped data into the execution context to enable dynamic data fetching in resolvers.
  • Model Customization Engines - Injects custom struct tags and modifies field definitions to ensure compatibility with external database layers.
  • Lifecycle Plugin Systems - Supports complex plugin architectures that hook into request lifecycles to modify execution behavior.
  • API Performance Monitoring - Integrates observability tools like distributed tracing and query complexity analysis to maintain system health.
  • Request Lifecycle Hooks - Hooks into the request lifecycle to perform custom logic like authentication, logging, or performance monitoring.
  • Computed Fields - Allows specifying required data sets that are injected into resolver arguments to enable computed field dependencies.
  • Custom Scalar Marshaling - Maps schema scalar types to specific language types by implementing marshaling interfaces for custom data serialization.
  • Relationship Management - Provides mechanisms for linking data entities and managing complex relationships within GraphQL schemas.
  • Network Transport Protocols - Decodes incoming requests and encodes responses using various formats including JSON, multipart forms, and WebSockets.
  • Code Generators - Hooks into the build process to modify configuration and inject custom types during code generation.
  • Introspection Utilities - Allows clients to discover available API types and fields through schema introspection.
  • Internal Field Injectors - Adds internal fields to generated data structures to support service logic while keeping them hidden from the public API.
  • Request Contexts - Injects web framework request data into the execution context for resolver access.
  • Context Injection Hooks - Extracts user identity from incoming requests and attaches it to the request context for resolver access.
  • Web Framework Integrations - Mounts API handlers onto high-performance web routers to serve requests alongside existing application routes.

Star history

Star history chart for 99designs/gqlgenStar history chart for 99designs/gqlgen

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Gqlgen

These projects share indexed features with Gqlgen. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • graphql-go/graphqlgraphql-go avatar

    graphql-go/graphql

    10,155View on GitHub↗

    This project is a GraphQL implementation for Go, providing a complete suite for building GraphQL servers. It includes a schema engine for defining types, a query parser to convert strings into abstract syntax trees, and an execution engine that resolves fields against a defined schema to return structured data. The library distinguishes itself through reflection-based type mapping, allowing object definitions and arguments to be derived directly from native Go structs. It also supports the execution of real-time data streaming via GraphQL subscriptions and provides an extensible execution pip

    Gographqlgraphql-gosubscriptions
    View on GitHub↗10,155
  • graphql-hive/graphql-yogagraphql-hive avatar

    graphql-hive/graphql-yoga

    8,523View on GitHub↗

    Yoga is a GraphQL server framework and runtime-agnostic HTTP handler used to build and deploy GraphQL APIs. It functions as a toolkit for managing schemas and resolvers, providing a spec-compliant environment for hosting APIs across diverse JavaScript runtimes, including Node.js, Deno, Bun, and serverless cloud environments. The project distinguishes itself through its ability to act as an Apollo Federation gateway, composing multiple subgraphs into a single unified supergraph. It also serves as a dedicated subscription server, delivering real-time data streaming via both WebSockets and Serve

    TypeScriptbundenofetch
    View on GitHub↗8,523
  • apollographql/apollo-serverapollographql avatar

    apollographql/apollo-server

    13,943View on GitHub↗

    Apollo Server is a spec-compliant JavaScript implementation for building GraphQL APIs that resolve queries and mutations based on a defined schema. It functions as a Node.js framework that integrates GraphQL functionality into various web frameworks and serverless environments through middleware. The project provides a federated GraphQL gateway that aggregates multiple distributed subgraphs into a single unified entry point. It includes a built-in interactive API sandbox for testing operations at the server endpoint and a schema registry client to automate the synchronization of API definitio

    TypeScript
    View on GitHub↗13,943
  • graph-gophers/graphql-gograph-gophers avatar

    graph-gophers/graphql-go

    4,755View on GitHub↗

    graphql-go is a schema-first GraphQL library and server implementation for Go. It provides a query execution engine and schema parser that converts schema definition strings into executable structures and validates resolver signatures. The library also includes a streaming implementation for real-time GraphQL subscriptions using channels within resolvers. The project distinguishes itself through parallel resolver execution to reduce request latency and the use of buffer-pool memory management to lower garbage collection overhead. It enables the creation of cloneable schema instances from a sh

    Go
    View on GitHub↗4,755
Compare all 30 related projects→

Frequently asked questions

What does 99designs/gqlgen do?

gqlgen is a schema-first Go library designed to build type-safe GraphQL servers. It functions as a code generation engine that transforms declarative GraphQL schema definitions into strongly-typed Go source code, ensuring strict alignment between the API contract and the underlying implementation.

What are the main features of 99designs/gqlgen?

The main features of 99designs/gqlgen are: Schema Definition, API Development Platforms, Schema-Driven Code Generators, Server Implementations, GraphQL Schema Generation, Schema-First Development Frameworks, Resolver Implementations, Build-Time Code Generation Engines.

Which projects share features with 99designs/gqlgen?

Projects with overlapping indexed features include: graphql-go/graphql — This project is a GraphQL implementation for Go, providing a complete suite for building GraphQL servers. It includes… graphql-hive/graphql-yoga — Yoga is a GraphQL server framework and runtime-agnostic HTTP handler used to build and deploy GraphQL APIs. It… apollographql/apollo-server — Apollo Server is a spec-compliant JavaScript implementation for building GraphQL APIs that resolve queries and… graph-gophers/graphql-go — graphql-go is a schema-first GraphQL library and server implementation for Go. It provides a query execution engine… apollographql/apollo-ios — apollo-ios is a GraphQL client library for iOS and Apple platforms that enables type-safe network communication. It… graphql-dotnet/graphql-dotnet — GraphQL.NET is a server-side framework for building and executing GraphQL APIs within C# applications. It provides a…