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 Server-Sent Events over standard HTTP.
The server includes a broad suite of capabilities covering API security, such as query complexity limiting and persisted operation enforcement, as well as performance optimizations like operation result caching and document parsing reuse. It provides a developer toolset featuring an interactive IDE, schema introspection, and mock data generation.
Yoga uses a fetch-based request handling model and provides adapters for integration with web frameworks such as Express, Fastify, Next.js, and NestJS.