# Nexus vs Relay

**Leader by Vioscale score:** Relay

| Attribute | Nexus | Relay |
|---|---|---|
| **Vioscale score** | 46.5 (65% (medium)) | 71.4 (57% (medium)) |
| activity.commits_last_30d | 0 | 72 |
| adoption.dependent_repos | 2,363 | 76,213 |
| adoption.github_stars | 3,430 | 18,956 |
| adoption.package_downloads_weekly | 224,130 | 5,142,504 |
| deployment.options | - | `{"self_hosted":true}` |
| description.long | An open-source GraphQL schema library that enables developers to define GraphQL types programmatically in TypeScript/JavaScript with full type safety and IDE intellisense. It bridges the simplicity of schema-definition-language approaches with the flexibility and long-term maintainability of code-based construction. | 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. |
| features.capabilities | `{"role":"schema_builder","language":"TypeScript/JavaScript","managed_cloud":false,"self_hostable":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 | 2 | - |
| integrations.list | `[{"name":"Prisma"},{"name":"Next.js"}]` | - |
| language.primary | TypeScript | Rust |
| license.spdx | MIT | MIT |
| market.availability | - | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | - | `{"cli":true,"web":true}` |
| pricing | `{"type":"open_source","freeTier":true,"sourceUrl":"https://nexusjs.org/docs/","retrievedAt":"2026-08-14T08:30:53.802Z"}` | `{"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 |
| release.cadence_days | 27 | 47 |
| release.history | `[{"url":"https://github.com/graphql-nexus/nexus/releases/tag/next","date":"2020-07-07T22:25:09Z","type":"prerelease","version":"next"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v1.3.0","date":"2022-03-07T13:45:55Z","type":"stable","version":"v1.3.0"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/1.1.0","date":"2021-06-23T20:39:56Z","type":"stable","version":"1.1.0"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/1.0.0","date":"2020-12-14T18:10:17Z","type":"stable","version":"1.0.0"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.19.2","date":"2020-11-27T17:29:38Z","type":"stable","version":"v0.19.2"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.19.1","date":"2020-11-25T14:51:04Z","type":"stable","version":"v0.19.1"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.19.0","date":"2020-11-25T13:56:07Z","type":"stable","version":"v0.19.0"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.18.0","date":"2020-11-12T14:14:19Z","type":"stable","version":"v0.18.0"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.17.0","date":"2020-10-28T13:27:47Z","type":"stable","version":"v0.17.0"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.16.0","date":"2020-09-30T14:47:43Z","type":"stable","version":"v0.16.0"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.15.0","date":"2020-08-04T13:56:05Z","type":"stable","version":"v0.15.0"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.14.0","date":"2020-06-03T20:11:02Z","type":"stable","version":"v0.14.0"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.13.1","date":"2020-03-30T20:40:21Z","type":"stable","version":"v0.13.1"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.12.0-rc.7","date":"2020-01-23T01:22:12Z","type":"stable","version":"v0.12.0-rc.7"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.12.0-rc.5","date":"2019-11-20T13:21:04Z","type":"stable","version":"v0.12.0-rc.5"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.12.0-rc.4","date":"2019-11-07T22:38:39Z","type":"stable","version":"v0.12.0-rc.4"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.12.0-rc.3","date":"2019-11-07T22:39:49Z","type":"stable","version":"v0.12.0-rc.3"},{"url":"https://github.com/graphql-nexus/nexus/releases/tag/v0.12.0-rc.2","date":"2019-11-07T22:39:30Z","type":"stable","version":"v0.12.0-rc.2"}]` | `[{"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"}]` |
| security.scorecard | 3.5 | 5.8 |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=nexus&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 | Nexus | Relay |
|---|:--:|:--:|
| **Core** |  |  |
| Role | Schema builder | Client |
| Primary language | TypeScript/JavaScript | 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: Vioscale. Generated 2026-09-01T14:41:09.022Z. "-" = undocumented, not absent.*
