For a java library for implementing graphql apis, the strongest matches are graphql-java/graphql-java (This is the foundational Java implementation of the GraphQL), netflix/dgs-framework (This framework is specifically designed for building GraphQL APIs) and spring-projects/spring-graphql (This is the official Spring framework integration for GraphQL). expediagroup/graphql-kotlin and apollographql/graphql-tools round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
We curate open-source GitHub repositories matching “best java graphql libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
GraphQL Java implementation
This is the foundational Java implementation of the GraphQL specification, providing the core engine for schema execution, data fetching, and resolvers that serves as the basis for most Java-based GraphQL frameworks.
GraphQL for Java with Spring Boot made easy.
This framework is specifically designed for building GraphQL APIs in Java and Kotlin with deep Spring Boot integration, supporting both schema-first development and advanced features like data fetching, batching, and subscriptions.
Spring GraphQL is a Java framework designed for building GraphQL services by mapping schema definitions directly to backend controller logic. It provides a reactive execution engine that processes queries and subscriptions asynchronously, supporting multiple network transports to facilitate communication between clients and data sources. The framework distinguishes itself through annotation-driven request routing, which decouples schema definitions from business logic to reduce implementation boilerplate. It includes native support for federated service composition, allowing developers to agg
This is the official Spring framework integration for GraphQL, providing comprehensive support for schema-first development, data fetching, and seamless Spring Boot integration.
Libraries for running GraphQL in Kotlin
This library provides a code-first approach to building GraphQL APIs in Kotlin with seamless Spring Boot integration, making it a highly effective tool for your Java-based ecosystem despite its primary language focus.
graphql-tools is a toolkit for constructing, modifying, and combining GraphQL schemas. It provides a suite of utilities for parsing Schema Definition Language, managing resolver bindings, and assembling executable schemas. The project enables the composition of unified GraphQL gateways by merging multiple independent subschemas through schema stitching. This includes capabilities for entity type merging, type extension, and field resolution delegation to route requests across different services. The toolkit also includes a mocking engine that generates simulated GraphQL schemas and data. Thi
This is a TypeScript-based toolkit for schema manipulation and composition in the JavaScript/Node.js ecosystem, rather than a Java-based library or framework for implementing GraphQL APIs.
This project is a strongly-typed GraphQL client library and code generator designed for Android, JVM, and Kotlin Multiplatform. It provides a toolset for executing queries and mutations, generating immutable classes and parsers from GraphQL schemas to ensure compile-time type safety. The library features a normalized client-side caching system that flattens server responses into a lookup table to maintain a single source of truth. It includes a specialized subscription client for handling real-time server-side updates via WebSockets or Server-Sent Events, and a mocking framework for simulatin
This is a client-side library for consuming GraphQL APIs in Android and JVM applications, rather than a framework for implementing or hosting a GraphQL server.
grpc-spring is a framework for integrating gRPC servers and clients into Spring applications. It provides a suite of tools for managing the lifecycle of remote procedure call servers, automating client stub injection, and implementing request interception within a Java environment. The project enables high-performance remote procedure call communication through annotation-driven service registration and automatic configuration of client stubs. It includes a specialized interceptor library for modifying requests and responses, as well as a telemetry tool for exporting performance metrics and d
This repository provides tools for integrating gRPC services into Spring applications, but it does not support GraphQL APIs or the required schema-based data fetching patterns.
SWR is a data fetching library that provides a collection of hooks for managing remote data synchronization, caching, and state updates in web applications. It employs a declarative approach to handle complex network request lifecycles and dependency chains, ensuring that client-side application state remains consistent with server data through automatic revalidation and background updates. The library distinguishes itself through a reactive cache layer that automatically synchronizes local state with remote sources based on component lifecycle events. It features event-driven revalidation, w
This is a client-side data-fetching library for React applications, not a server-side framework for implementing GraphQL APIs in Java.
This project is an integration framework that bootstraps Apache Dubbo remote procedure call services within Spring Boot applications. It serves as a microservice communication framework that enables the implementation of RPC services, service discovery, and distributed governance through automated configuration. The project distinguishes itself by providing a cross-language RPC bridge, allowing services written in different languages to communicate via standards such as gRPC and Protobuf. It further enables the exposure of backend microservices as REST endpoints using the Triple protocol for
This is a microservice RPC and service discovery framework for Java, which does not provide the GraphQL-specific schema definition, query execution, or resolver capabilities required for building GraphQL APIs.
Javalin is a lightweight web framework for Java and Kotlin designed for building REST APIs and web applications. It functions as an embedded Jetty web server, allowing applications to run as standalone processes without the need for an external servlet container. The project provides specialized frameworks for diverse communication patterns, including a REST API framework with automatic OpenAPI schema generation, a GraphQL API framework with query and mutation resolvers, and a WebSocket server for bidirectional real-time communication. It also includes a dedicated framework for pushing real-t
Javalin is a lightweight web framework for building REST APIs and web applications, but it is not a dedicated GraphQL library or framework for Java.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| graphql-java/graphql-java | 6.2K | Java | MIT | |
| netflix/dgs-framework | 3.4K | Kotlin | Apache-2.0 | |
| spring-projects/spring-graphql | 1.6K | Java | Apache-2.0 | |
| expediagroup/graphql-kotlin | 1.8K | Kotlin | Apache-2.0 | |
| apollographql/graphql-tools | 5.4K | TypeScript | MIT | |
| apollographql/apollo-android | 4K | Kotlin | MIT | |
| grpc-ecosystem/grpc-spring | 3.7K | Java | apache-2.0 | |
| vercel/swr | 32.4K | TypeScript | MIT | |
| apache/dubbo-spring-boot-project | 5.4K | Java | Apache-2.0 | |
| javalin/javalin | 8.3K | Kotlin | Apache-2.0 |