GraphQL Yoga
A strong pick. 2nd of 10 RPC and GraphQL libraries.
GraphQL Yoga is The Guild's GraphQL server. It is built on the standard Fetch API, so it runs on Node, Bun, Deno, Cloudflare Workers and serverless platforms. It is actively maintained and has no published advisories. For a new GraphQL API it is the strongest general-purpose server today, unless you are already tied to Apollo's GraphOS tooling.
Best for: Teams building a GraphQL API that must run on any JS runtime or the edge, with plugins, subscriptions and federation included.
Scores
Overall8.0
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Among GraphQL servers it is the strongest general pick today. It is well maintained and runs on any runtime, its use is growing faster than the median, and it has more dependent repositories than Apollo Server. Apollo stays better for teams that rely on GraphOS. For TypeScript-only apps that do not need GraphQL, tRPC or oRPC are simpler. The v6 breaking changes and thin independent validation keep it out of the 9 band.
- peers Apollo Server: Apollo has 52 commits in the last year against Yoga's 300, and fewer dependent repositories
- pkgpulse.com/guides/graphql-yoga-vs-apollo-server-vs-mercurius-graphql-2026: Recommended default for new GraphQL projects
- rangle.io/blog/graphql-performance-optimization: Production gains measured after leaving Apollo
- npm downloads ratio: About 4.7 against the 4.1 median
GPT-6.2 Sol: 8.4, likely 7.3 to 9.3
Yoga is a strong first choice for a new GraphQL service that needs subscriptions or portable hosting. Its active release history and documented integrations make it a good long-term bet, while tRPC offers a simpler route when one team controls both ends in TypeScript and only needs RPC. The range reflects limited independent production evidence for Yoga 6 and a throughput advantage for Mercurius in older Fastify benchmarks.
- the-guild.dev/graphql/yoga-server/docs: Documents the Fetch-based server, subscriptions, and integration options.
- npm versionsLastYear, github commitsLastYear, peers: Frequent package releases and higher repository activity than Apollo Server or Mercurius.
- trpc.io: tRPC infers client types directly from the TypeScript router.
- github.com/vovadyach/gql-bench: Mercurius led query throughput in a comparison using Yoga 5.
Needed by many5.2
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Only teams that serve a GraphQL API need a GraphQL server. That is a sizeable minority of backend JS work, and many TypeScript full-stack apps now pick RPC instead. Yoga works on every runtime and framework, so it covers the whole GraphQL-server niche rather than one corner of it.
- pkgpulse.com/guides/graphql-yoga-vs-apollo-server-vs-mercurius-graphql-2026: Framework-agnostic; runs on Node, Workers, Deno and Bun
- the-guild.dev/graphql/yoga-server/docs/comparison: Fetch-API core usable in any environment
- State of JS / GraphQL usage: GraphQL is used by a minority of JS developers, and tRPC-style RPC is growing
GPT-6.2 Sol: 5.3, likely 4.1 to 6.4
GraphQL serves a sizeable group of API developers, particularly teams whose clients need different views of the same data. Yoga can serve that group across several JavaScript runtimes and frameworks. Postman reports GraphQL use at 33% among its API respondents, a sample that gives only an indirect estimate of demand among JavaScript and TypeScript developers.
- postman.com/state-of-api/2025: GraphQL use was 33% and REST use was 93% in the API survey.
- the-guild.dev/graphql/yoga-server/docs: The quick start covers multiple runtimes, frameworks, and schema builders.
Helps a lot8.3
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It is a full-featured server: subscriptions over SSE and WebSocket, uploads, GraphiQL, the Envelop plugin system (response cache, rate limits, depth limits), federation, and good TypeScript types. One independent production write-up measured lower latency than Apollo Server. The gaps are no JIT compilation and less third-party tooling than Apollo's GraphOS. Benchmarks are mostly self-published, which keeps the range at two points.
- rangle.io/blog/graphql-performance-optimization: Replacing Apollo Server with Yoga gave 2-14% faster responses in production
- pkgpulse.com/guides/graphql-yoga-vs-apollo-server-vs-mercurius-graphql-2026: Recommended default for new projects; weaknesses are no JIT and no Apollo Studio
- the-guild.dev/graphql/yoga-server/changelog: 6.1.0 adds the HTTP QUERY method and fixes WebSocket mutations
- npm hasTypes: Types are bundled
GPT-6.2 Sol: 8.5, likely 7.4 to 9.4
Yoga 6.1.0 combines a portable GraphQL handler with subscriptions, GraphiQL, error masking, and a mature plugin system. Its TypeScript declarations and versioned examples give developers and coding agents a clear setup to follow, while schema-derived resolver types usually take an added code generation step. In an independent in-memory Node.js benchmark, Yoga 5 generally beat Apollo Server 4 on queries and trailed Mercurius. The benchmark predates Yoga 6 and leaves current production throughput uncertain.
- github.com/graphql-hive/graphql-yoga/releases/tag/graphql-yoga@6.1.0: Stable Yoga 6.1.0 release adds HTTP QUERY support.
- the-guild.dev/graphql/yoga-server/docs: Versioned setup, integrations, and a schema-first code generation path.
- npm hasTypes: The package ships TypeScript declarations.
- dev.to/v_diachenko/apollo-vs-mercurius-vs-yoga-i-benchmarked-10-nodejs-graphql-setups-with-and-without-nestjs-4abg: Independent benchmark with matched schemas and query workloads.
- github.com/vovadyach/gql-bench: The benchmark pinned Yoga 5.10 and Apollo Server 4.13.
Holds up over time8.2
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
The repository had 300 commits and 156 package releases in the last year, and 197 contributors. The issue backlog is small for its size: 93 open against 671 closed. The Guild funds the work through its commercial Hive product. The v6 major brought real breaking changes (Node 22 minimum, new logger, moved exports), which lowers the score a little.
- github commitsLastYear / releasesLastYear: 300 commits and 156 releases in the last year
- github openIssues / closedIssues: 93 open issues against 671 closed
- the-guild.dev/graphql/yoga-server/changelog: v6 breaking changes: Node >=22.15, GraphQL 16 minimum, logger replaced
- The Guild / GraphQL Hive: A company-backed team maintains the wider Guild GraphQL stack
GPT-6.2 Sol: 8.3, likely 7.2 to 9.2
The Guild maintains Yoga as part of its Hive stack, and the main npm package shipped 22 versions in the past year. A user-reported Next.js regression received a same-day dependency fix that Yoga incorporated in 6.0.1. Yoga 6 changed the logging API and dropped older Node.js and GraphQL.js versions, with a migration guide covering the changes. One fast fix gives limited evidence about typical issue turnaround, and the number of people who can publish remains unverified.
- github commitsLastYear, npm versionsLastYear: 300 repository commits and 22 versions of the main npm package.
- the-guild.dev/graphql/hive/docs/other-integrations/graphql-yoga: The Guild maintains Yoga and integrates it with Hive.
- github.com/graphql-hive/graphql-yoga/issues/4633: The reporter confirmed the Next.js fix the following day.
- the-guild.dev/graphql/yoga-server/changelogs/graphql-yoga: Yoga 6.0.1 picked up the dependency fix.
- the-guild.dev/graphql/yoga-server/docs/migration/migration-from-yoga-v5: Documents the new runtime minimums and logger migration.
Used widely6.5
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Downloads grew from 2.5M to 11.8M per four weeks, a ratio of 4.7 against the 4.1 median, so it is gaining ground. Its 10,200 dependent repositories are the most of any GraphQL server in the bundle (Apollo Server has 5,993). Part of the download count comes from transitive installs by Hive Gateway, GraphQL Mesh and the NestJS driver.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 11.8M now against 2.5M a year ago, a ratio of about 4.7
- dependents.repos: 10,200 repositories, more than Apollo Server (5,993) and TypeGraphQL (7,054)
- github stars: 8.5k stars
- bluesky posts: 0 posts link to the repository, so it draws little social attention
GPT-6.2 Sol: 5.9, likely 4.7 to 7.0
Four-week installs rose from 2.50 million to 11.84 million, or 4.74×, ahead of the 4.1× catalog baseline and Apollo Server's 2.66×. Ecosyste.ms found 10,200 dependent repositories, ahead of Apollo Server and tRPC in the sample. RedwoodJS installs Yoga as part of its framework, so some downloads reflect framework adoption, and automated reinstalls further blur the number of direct choices. Sparse social activity and uneven repository coverage leave the size of the user base uncertain.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Yoga grew 4.74× against a 4.1× catalog median.
- dependents, peers: 10,200 Yoga repos and 253 packages. Apollo Server has 5,993 sampled repos and tRPC has 5,111.
- github stars, bluesky posts, hackerNews stories: 8,540 stars, zero collected Bluesky posts, and one Hacker News story with no comments.
- github.com/redwoodjs/graphql/blob/main/docs/docs/graphql.md: RedwoodJS builds its GraphQL API server on Yoga.
Vouched for6.8
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.0 to 8.0
Independent support exists: a 2026 comparison recommends it as the default for new projects, Rangle published a production migration, and frameworks such as NestJS and RedwoodJS ship Yoga drivers. Current survey data that breaks it out is thin, and Hacker News and Bluesky show almost no discussion. Much of the praise comes from The Guild itself, so the score stays below 8 and the range is wide.
- pkgpulse.com/guides/graphql-yoga-vs-apollo-server-vs-mercurius-graphql-2026: Independent guide names it the pick for new projects
- rangle.io/blog/graphql-performance-optimization: Write-up of a production migration from Apollo Server
- hasura.io/blog/state-of-graphql-2022-survey-report-summary-and-insights: Among the top-5 servers in the 2022 State of GraphQL survey, which is old data
- hackerNews stories: One story with 2 points
GPT-6.2 Sol: 7.1, likely 5.9 to 8.2
RedwoodJS builds its GraphQL server on Yoga, and the public Tarkov.dev API uses it on Cloudflare Workers. NestJS lists Yoga as a third-party integration, and independent benchmarks show competitive Node.js performance on Yoga 5. Public production evidence for 6.1 itself is still thin, and the available survey measures GraphQL adoption more broadly.
- github.com/redwoodjs/graphql/blob/main/docs/docs/graphql.md: RedwoodJS uses Yoga and Envelop for its GraphQL API.
- github.com/the-hideout/tarkov-api/blob/main/graphql-yoga.mjs: The public API's server code imports and configures Yoga.
- github.com/the-hideout/tarkov-api/blob/main/README.md: Identifies the deployment on Cloudflare Workers.
- docs.nestjs.com/graphql/quick-start: NestJS documents Yoga as a third-party integration.
- github.com/vovadyach/gql-bench: Independent benchmark publishes pinned versions, methods, and results.
- postman.com/state-of-api/2025: Survey measures GraphQL use at the protocol level.
Safe7.5
How safe is it to depend on?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
It has no OSV advisories, an MIT licence, and v5.24 added a default limit on request body size. It brings in 12 direct dependencies, mostly from The Guild's own Envelop, graphql-tools and whatwg-node packages, so the attack surface is moderate but comes from one maintainer org. There is no OpenSSF Scorecard, so release hygiene cannot be checked, which widens the range.
- advisories.total: 0 advisories
- npm dependencies: 12 direct dependencies
- scorecard: No Scorecard data
- the-guild.dev/graphql/yoga-server/changelog: A default 25 MB request body limit was added in 5.24.0
GPT-6.2 Sol: 7.4, likely 6.1 to 8.5
GitHub lists two high-severity core advisories missing from the bundle's zero count, and Yoga 6.1.0 includes both fixes. A third advisory affects the optional GraphQL SSE plugin and was fixed in plugin version 4.1.0 on the day of disclosure. The core package is MIT-licensed, has 12 direct dependencies, and its GitHub release points to a verified signed commit. The missing OpenSSF Scorecard and limited visibility into npm publishing permissions keep the range wide.
- github.com/graphql-hive/graphql-yoga/security/advisories/GHSA-qqff-c8xf-m364: Core request-body denial of service fixed in 5.24.0.
- github.com/graphql-hive/graphql-yoga/security/advisories/GHSA-8w8v-m6m8-f4mv: Core multipart vulnerability fixed in 5.21.3 before public disclosure.
- github.com/graphql-hive/graphql-yoga/security/advisories/GHSA-fvvw-v6c3-hhqm: Optional SSE plugin advisory identifies 4.1.0 as patched.
- github.com/graphql-hive/graphql-yoga/releases/tag/@graphql-yoga/plugin-graphql-sse@4.1.0: The patched plugin shipped November 12, the disclosure date.
- github.com/graphql-hive/graphql-yoga/releases/tag/graphql-yoga@6.1.0: The Guild's release bot published a release from a verified signed commit.
- npm license, npm dependencies, advisories total, scorecard: MIT, 12 direct dependencies, zero collector advisories, and no Scorecard result.
Good
- Runs unchanged on Node, Bun, Deno, Cloudflare Workers, Next.js and other platforms, because it is built on the WHATWG Fetch API.
- Ships subscriptions (SSE and WebSocket), file uploads, GraphiQL and federation support, and adds more through Envelop plugins.
- The Guild maintains it full-time and backs it with its commercial Hive platform, with frequent releases.
- It has more dependent repositories than any other GraphQL server in the category, and no published security advisories.
Bad
- v6 dropped Node 18/20 and GraphQL 14/15, replaced the logger, and moved several helper exports to other packages, so upgrades take work.
- It has no built-in JIT query compilation, unlike Mercurius, and no Apollo Studio integration.
- Like any GraphQL server, it adds schema and resolver work that tRPC or oRPC avoid for TypeScript-only apps.
- It pulls in a sizeable tree of Guild packages (Envelop, graphql-tools, whatwg-node), and there is no OpenSSF Scorecard to judge it by.
The numbers
- npm downloads, 4 weeks
- 12M ×4.7 in a year
- GitHub stars
- 8.5k
- Commits, 12 months
- 300
- npm version
- 6.1.0 Nov 2026
- Versions, 12 months
- 22
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (graphql-hive/graphql-yoga), npm (graphql-yoga), OSV and the OpenSSF Scorecard.
RPC and GraphQL libraries
- 8.2tRPC
- 8.0GraphQL Yoga
- 7.9Pothos
- 7.8oRPC
- 7.6GraphQL.js
- 7.5Connect
- 7.2Apollo Server
- 6.9Mercurius
- 5.0TypeGraphQL
- 1.7ts-rest