GraphQL Yoga

Framework-agnostic GraphQL server built on the Fetch API that runs on Node.js, Cloudflare Workers, Deno, and Bun with a plugin system powered by Envelop.

Evaluated Mar 07, 2026 (0d ago) v5.x
Homepage ↗ Repo ↗ Developer Tools graphql typescript javascript server envelop subscriptions cloudflare-workers
⚙ Agent Friendliness
62
/ 100
Can an agent use this?
🔒 Security
60
/ 100
Is it safe for agents?
⚡ Reliability
60
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
87
Error Messages
83
Auth Simplicity
75
Rate Limits
80

🔒 Security

TLS Enforcement
0
Auth Strength
72
Scope Granularity
68
Dep. Hygiene
85
Secret Handling
80

Security is plugin-defined; agents must add useDisableIntrospection in production environments and configure CORS explicitly — defaults are permissive.

⚡ Reliability

Uptime/SLA
0
Version Stability
83
Breaking Changes
78
Error Recovery
80
AF Security Reliability

Best When

Building a portable GraphQL server that must run on edge runtimes or needs a composable plugin architecture via Envelop.

Avoid When

The team is deeply invested in Apollo Studio, Apollo Federation, or the Apollo Client ecosystem and wants a first-party server.

Use Cases

  • Deploying a GraphQL API to Cloudflare Workers or other edge runtimes where Node.js-specific servers cannot run
  • Adding a plugin ecosystem via Envelop for authentication, tracing, caching, and rate limiting without modifying resolvers
  • Implementing GraphQL subscriptions over SSE (Server-Sent Events) without a separate WebSocket server
  • Building a schema-first GraphQL server with typeDefs + resolvers that runs identically across multiple runtimes
  • Composing a federated or stitched GraphQL gateway using Guild tooling (Schema Stitching or Hive)

Not For

  • Teams already using Apollo Server 4 with Apollo Studio integration who do not need multi-runtime portability
  • Projects that require Apollo Federation gateway features without additional stitching configuration
  • Developers unfamiliar with GraphQL who want a simpler REST-style API

Interface

REST API
No
GraphQL
Yes
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: custom jwt api_key
OAuth: No Scopes: No

Authentication implemented via Envelop plugins (useGenericAuth) or custom middleware; no built-in auth — agents must add the appropriate plugin.

Pricing

Model: open_source
Free tier: Yes
Requires CC: No

Open source under MIT license, maintained by The Guild.

Agent Metadata

Pagination
cursor
Idempotent
Partial
Retry Guidance
Not documented

Known Gotchas

  • GraphQL errors are returned with HTTP 200 status; agents that check only HTTP status codes will miss resolver failures silently.
  • Yoga v4/v5 uses the Fetch API Request/Response; adapters for Express or Fastify require wrapping — agents often skip the adapter and use Yoga directly as an Express middleware without the required createServer wrapper.
  • Subscriptions over SSE require an EventSource-compatible client; agents generating WebSocket-based subscription clients will fail because Yoga's default subscription transport is SSE, not WS.
  • Envelop plugins execute in order and share a shared context; agents adding multiple plugins must understand plugin composition order to avoid middleware conflicts (e.g., auth before data access plugins).
  • The context factory function is async but must be explicitly typed via the TypedDocumentNode pattern for full type safety; agents often skip this, losing resolver type inference.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for GraphQL Yoga.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-07.

6470
Packages Evaluated
26150
Need Evaluation
173
Need Re-evaluation
Community Powered