# GraphQL Yoga vs Relay

**Leader by vioscaleAI score:** Relay

| Attribute | GraphQL Yoga | Relay |
|---|---|---|
| **vioscaleAI score** | 63.4 (67% (medium)) | 69.9 (58% (medium)) |
| activity.commits_last_30d | 22 | 100 |
| adoption.dependent_repos | 759 | 76,213 |
| adoption.github_stars | 8,528 | 18,962 |
| adoption.package_downloads_weekly | 1,943,364 | 4,659,338 |
| content.faq | `[{"answer":"A fully-featured, open-source GraphQL server offering extensive built-in capabilities like federation support, caching, rate limiting, and error masking. Designed to be self-hostable and extensible through plugins for production deployments. It is indexed under GraphQL Tools.","source":"https://the-guild.dev/graphql/yoga-server","question":"What is GraphQL Yoga?","confidence":0.6},{"answer":"GraphQL Yoga is open source, so it can be self-hosted and used at no licence cost. It is released under the MIT licence. Pricing changes often, so verify at source before relying on it.","source":"https://the-guild.dev/graphql/yoga-server","question":"Is GraphQL Yoga free to use?","confidence":0.6},{"answer":"We have confirmed browser-based access to GraphQL Yoga. That is the extent of what we could verify from public sources, so it may well offer desktop or mobile clients we have not indexed.","source":"https://the-guild.dev/graphql/yoga-server","question":"What platforms does GraphQL Yoga support?","confidence":0.6},{"answer":"Yes. GraphQL Yoga can be deployed self-hosted, so it does not have to run on the vendor's infrastructure.","source":"https://the-guild.dev/graphql/yoga-server","question":"Can GraphQL Yoga be self-hosted?","confidence":0.6},{"answer":"We have confirmed 9 integrations for GraphQL Yoga, including Apollo Federation, Auth0, Sentry, StatsD, New Relic, GraphQL Modules, Hive and GraphQL Armor, plus 1 more. This is what we could verify from public sources, so the vendor may support others we have not indexed.","source":"https://the-guild.dev/graphql/yoga-server","question":"What does GraphQL Yoga integrate with?","confidence":0.6},{"answer":"We have independently confirmed SOC 2 for GraphQL Yoga. Certifications we do not list are ones we have not been able to verify from public sources, which is not the same as GraphQL Yoga not holding them. Always confirm compliance directly before you rely on it.","source":"https://the-guild.dev/blog/tag/compliance","question":"What security certifications does GraphQL Yoga have?","confidence":0.7},{"answer":"Yes. GraphQL Yoga is published under the MIT licence, a permissive licence that generally allows commercial use and modification. Licence terms can change between releases, so verify against the repository for the version you intend to use.","source":"https://github.com/dotansimha/graphql-yoga","question":"Is GraphQL Yoga open source?","confidence":0.99}]` | `[{"answer":"An open-source framework that enables type-safe GraphQL queries in JavaScript applications, with built-in support for caching, error handling, and server-side rendering via React Server Components. It is indexed under GraphQL Tools.","source":"https://relay.dev","question":"What is Relay?","confidence":0.6},{"answer":"Relay is open source, so it can be self-hosted and used at no licence cost. It is released under the MIT licence. Pricing changes often, so verify at source before relying on it.","source":"https://relay.dev","question":"Is Relay free to use?","confidence":0.6},{"answer":"Relay supports the web and a command-line interface. Platforms we have not confirmed are simply not listed here rather than ruled out.","source":"https://relay.dev","question":"What platforms does Relay support?","confidence":0.6},{"answer":"Yes. Relay can be deployed self-hosted, so it does not have to run on the vendor's infrastructure.","source":"https://relay.dev","question":"Can Relay be self-hosted?","confidence":0.6},{"answer":"Yes. Relay is published under the MIT licence, a permissive licence that generally allows commercial use and modification. Licence terms can change between releases, so verify against the repository for the version you intend to use.","source":"https://github.com/facebook/relay","question":"Is Relay open source?","confidence":0.99}]` |
| deployment.options | `{"cloud":true,"self_hosted":true}` | `{"self_hosted":true}` |
| description.long | A comprehensive GraphQL server emphasizing ease of setup and developer experience, featuring built-in federation, subscriptions, response caching, and support for self-hosting across any JavaScript runtime environment. | A GraphQL client for React that automates data fetching and manages normalized client-side state across components. It provides type-safe queries, mutations with optimistic updates, streaming support, and maintains data consistency across the application. |
| features.capabilities | `{"role":"server","caching":true,"language":"JavaScript/TypeScript","federation":true,"managed_cloud":true,"self_hostable":true,"subscriptions":true,"auth_directives":true,"schema_approach":"code_first","type_generation":true}` | `{"role":"client","caching":true,"language":"JavaScript / TypeScript","federation":false,"managed_cloud":false,"self_hostable":true,"subscriptions":true,"auth_directives":false,"schema_approach":"code_first","type_generation":true,"db_introspection":false}` |
| integrations.count | 12 | - |
| integrations.list | `[{"name":"Apollo Federation"},{"name":"Auth0"},{"name":"Sentry"},{"name":"StatsD"},{"name":"New Relic"},{"name":"GraphQL Modules"},{"name":"Hive"},{"name":"GraphQL Armor"},{"name":"GraphQL Codegen"},{"name":"Apollo Router","native":true},{"name":"Cloudflare Workers","native":true},{"name":"Stellate","native":false,"category":"security"},{"name":"Apollo Link","native":true,"category":"client","direction":"outbound"},{"name":"URQL","native":true,"category":"client","direction":"outbound"},{"name":"NestJS","native":true,"category":"framework","direction":"bidirectional"},{"name":"Redis","native":true,"category":"cache","direction":"outbound"},{"name":"Cloudflare KV","native":true,"category":"cache","direction":"outbound"},{"name":"Prometheus","native":true,"category":"monitoring","direction":"outbound"},{"name":"Envelop","native":true,"category":"plugin-system","direction":"bidirectional"}]` | - |
| language.primary | TypeScript | Rust |
| license.spdx | MIT | MIT |
| market.availability | - | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | `{"web":true}` | `{"cli":true,"ios":true,"web":true}` |
| pricing | `{"type":"open_source","summary":"Free and open source","freeTier":true,"sourceUrl":"https://the-guild.dev/graphql/yoga-server","retrievedAt":"2026-08-14T16:35:45.267Z"}` | `{"type":"open_source","summary":"Free and open-source","freeTier":true,"sourceUrl":"https://relay.dev","retrievedAt":"2026-08-14T16:35:58.790Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | open_source | commercial |
| pricing.price_level | free | free |
| pricing.transparent | yes | - |
| release.cadence_days | 6 | 47 |
| release.history | `[{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1791466339420","date":"2026-10-08T13:32:20Z","type":"stable","version":"release-1791466339420"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1791463399270","date":"2026-10-08T12:43:20Z","type":"stable","version":"release-1791463399270"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1791208550283","date":"2026-10-05T13:55:51Z","type":"stable","version":"release-1791208550283"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1789658159962","date":"2026-09-17T15:16:00Z","type":"stable","version":"release-1789658159962"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1789573377392","date":"2026-09-16T15:42:58Z","type":"stable","version":"release-1789573377392"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1789141599119","date":"2026-09-11T15:46:39Z","type":"stable","version":"release-1789141599119"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1787131280487","date":"2026-08-19T09:21:21Z","type":"stable","version":"release-1787131280487"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1786610592790","date":"2026-08-13T08:43:13Z","type":"stable","version":"release-1786610592790"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1782317638369","date":"2026-06-24T16:13:58Z","type":"stable","version":"release-1782317638369"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1780928162381","date":"2026-06-08T14:16:03Z","type":"stable","version":"release-1780928162381"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1780409490082","date":"2026-06-02T14:11:30Z","type":"stable","version":"release-1780409490082"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1775326067022","date":"2026-04-04T18:07:47Z","type":"stable","version":"release-1775326067022"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1775240024215","date":"2026-04-03T18:13:44Z","type":"stable","version":"release-1775240024215"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1775041471308","date":"2026-04-01T11:04:31Z","type":"stable","version":"release-1775041471308"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1772810117439","date":"2026-03-06T15:15:17Z","type":"stable","version":"release-1772810117439"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1766069402447","date":"2025-12-18T14:50:03Z","type":"stable","version":"release-1766069402447"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1764634391007","date":"2025-12-02T00:13:11Z","type":"stable","version":"release-1764634391007"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1764327921060","date":"2025-11-28T11:05:21Z","type":"stable","version":"release-1764327921060"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1763760785378","date":"2025-11-21T21:33:05Z","type":"stable","version":"release-1763760785378"},{"url":"https://github.com/graphql-hive/graphql-yoga/releases/tag/release-1762481391160","date":"2025-11-07T02:09:51Z","type":"stable","version":"release-1762481391160"}]` | `[{"url":"https://github.com/facebook/relay/releases/tag/v21.0.1","date":"2026-05-27T17:05:47Z","type":"stable","version":"v21.0.1"},{"url":"https://github.com/facebook/relay/releases/tag/v21.0.0","date":"2026-05-18T22:35:02Z","type":"stable","version":"v21.0.0"},{"url":"https://github.com/facebook/relay/releases/tag/v20.1.1","date":"2025-08-06T23:45:00Z","type":"stable","version":"v20.1.1"},{"url":"https://github.com/facebook/relay/releases/tag/v20.1.0","date":"2025-07-28T18:02:48Z","type":"stable","version":"v20.1.0"},{"url":"https://github.com/facebook/relay/releases/tag/v20.0.0","date":"2025-06-14T01:18:21Z","type":"stable","version":"v20.0.0"},{"url":"https://github.com/facebook/relay/releases/tag/v19.0.0","date":"2025-05-02T21:35:03Z","type":"stable","version":"v19.0.0"},{"url":"https://github.com/facebook/relay/releases/tag/v18.2.0","date":"2024-11-21T18:42:55Z","type":"stable","version":"v18.2.0"},{"url":"https://github.com/facebook/relay/releases/tag/v18.1.0","date":"2024-10-04T21:25:48Z","type":"stable","version":"v18.1.0"},{"url":"https://github.com/facebook/relay/releases/tag/v18.0.0","date":"2024-09-07T01:12:44Z","type":"stable","version":"v18.0.0"},{"url":"https://github.com/facebook/relay/releases/tag/v17.0.0","date":"2024-06-14T23:56:58Z","type":"stable","version":"v17.0.0"},{"url":"https://github.com/facebook/relay/releases/tag/v16.2.0","date":"2024-01-23T16:49:06Z","type":"stable","version":"v16.2.0"},{"url":"https://github.com/facebook/relay/releases/tag/v16.1.0","date":"2023-12-11T20:21:51Z","type":"stable","version":"v16.1.0"},{"url":"https://github.com/facebook/relay/releases/tag/v16.0.0","date":"2023-10-19T22:38:09Z","type":"stable","version":"v16.0.0"},{"url":"https://github.com/facebook/relay/releases/tag/v15.0.0","date":"2023-03-08T22:16:55Z","type":"stable","version":"v15.0.0"},{"url":"https://github.com/facebook/relay/releases/tag/v14.1.0","date":"2022-07-27T17:37:43Z","type":"stable","version":"v14.1.0"},{"url":"https://github.com/facebook/relay/releases/tag/v14.0.0","date":"2022-06-08T15:11:54Z","type":"stable","version":"v14.0.0"},{"url":"https://github.com/facebook/relay/releases/tag/v13.2.0","date":"2022-03-10T18:08:49Z","type":"stable","version":"v13.2.0"},{"url":"https://github.com/facebook/relay/releases/tag/v13.1.1","date":"2022-02-09T18:02:09Z","type":"stable","version":"v13.1.1"},{"url":"https://github.com/facebook/relay/releases/tag/v13.1.0","date":"2022-02-08T16:53:14Z","type":"stable","version":"v13.1.0"},{"url":"https://github.com/facebook/relay/releases/tag/v13.0.3","date":"2022-02-07T21:41:14Z","type":"stable","version":"v13.0.3"}]` |
| reliability.status_page | yes | - |
| security.certifications | `[{"name":"SOC 2 Type II","status":"active"}]` | - |
| security.disclosure_policy | yes | - |
| security.scorecard | - | 5.8 |
| security.soc2 | yes | - |
| security.trust_center | https://the-guild.dev/blog/tag/compliance | - |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=%40graphql-yoga%2Fcommon&per_page=100","last_12m":0,"max_severity":null}` | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=relay-runtime&per_page=100","last_12m":0,"max_severity":null}` |

## Capabilities (GraphQL Tools)

| Capability | GraphQL Yoga | Relay |
|---|:--:|:--:|
| **Core** |  |  |
| Role | Server | Client |
| Primary language | JavaScript/TypeScript | JavaScript / TypeScript |
| **Modelling** |  |  |
| Schema approach | Code-first | Code-first |
| **Scale** |  |  |
| Federation / subgraph composition | ✓ | ✗ |
| **Realtime** |  |  |
| Real-time subscriptions | ✓ | ✓ |
| **Performance** |  |  |
| Response / edge caching | ✓ | ✓ |
| **DX** |  |  |
| Typed code generation | ✓ | ✓ |
| **Automation** |  |  |
| Generates API from a database | - | ✗ |
| **Security** |  |  |
| Built-in authz / permissions | ✓ | ✗ |
| **Deployment** |  |  |
| Official hosted offering | ✓ | ✗ |
| Self-hostable | ✓ | ✓ |

*Source: vioscaleAI. Generated 2026-10-16T17:21:50.979Z. "-" = undocumented, not absent.*
