GraphQL Yoga Server Framework

GraphQL Yoga Server Framework

the-guild.dev

2

About this website

GraphQL Yoga is a fully-featured, performant GraphQL server framework designed for effortless setup and optimal developer experience, maintained by The Guild with the current major version 5. The server provides built-in GraphiQL IDE for in-browser query writing, validation, and testing, automatic error masking to prevent sensitive data leaks in production, health check endpoints for load balancer integration, and full compliance with the latest GraphQL over HTTP specifications as verified by the graphql-http library audit suite. Performance benchmarks demonstrate significant advantages over Apollo Server: Yoga with response cache achieves 46.54 millisecond average latency at 2,200 requests per second, compared to Apollo Server at 1,234.12 milliseconds and 64 requests per second on identical hardware. The framework is built on top of Envelop, a plugin system providing over 40 official plugins for caching via GraphQL JIT and parser cache, authentication through Auth0 and generic JWT validation, rate limiting and depth limiting for denial-of-service protection, Apollo Federation support for supergraph composition, response caching with TTL invalidation, persisted operations for client-side query allowlisting, OpenTelemetry distributed tracing, Prometheus metrics export, Sentry error reporting, and operation-level field permissions. Real-time subscriptions are powered by Server-Sent Events for browser-native streaming without WebSocket polyfills, with WebSocket transport also supported. File uploads follow the multipart request specification. The Fetch API compatibility layer enables deployment across AWS Lambda, Cloudflare Workers, Deno, Bun, Express, Fastify, Koa, NestJS, Next.js, and SvelteKit with zero configuration changes. The server is fully open source with no vendor lock-in, can be self-hosted, and integrates with the broader Guild ecosystem including Hive for schema registry, Mesh for API federation, and Codegen for type generation.

Statistics

2
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!