# Relay vs urql

**Leader by Vioscale score:** Relay

| Attribute | Relay | urql |
|---|---|---|
| **Vioscale score** | 71.4 (57% (medium)) | 55.4 (48% (low)) |
| activity.commits_last_30d | 72 | 3 |
| adoption.dependent_repos | 76,213 | 57,619 |
| adoption.github_stars | 18,956 | 8,967 |
| adoption.package_downloads_weekly | 5,142,504 | 1,132,793 |
| deployment.options | `{"self_hosted":true}` | - |
| description.long | 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. | A JavaScript GraphQL client that integrates with popular frameworks like React and Vue. The library is designed to be lightweight with optional features for caching and optimization. |
| features.capabilities | `{"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}` | `{"role":"client","caching":true,"language":"TypeScript"}` |
| language.primary | Rust | TypeScript |
| license.spdx | MIT | MIT |
| market.availability | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` | - |
| platform.support | `{"cli":true,"web":true}` | `{"web":true}` |
| pricing | `{"type":"open_source","summary":"Free and open-source","freeTier":true,"sourceUrl":"https://relay.dev","retrievedAt":"2026-08-14T16:35:58.790Z"}` | `{"type":"open_source","summary":"Free and open source (MIT license)","freeTier":true,"sourceUrl":"https://urql.dev","retrievedAt":"2026-08-14T21:40:56.515Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | commercial | open_source |
| pricing.price_level | free | free |
| release.cadence_days | 47 | - |
| release.history | `[{"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"}]` | `[{"url":"https://github.com/urql-graphql/urql/releases/tag/urql%405.0.4","date":"2026-08-21T17:08:08Z","type":"stable","version":"urql@5.0.4"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/core%406.0.3","date":"2026-06-22T10:46:51Z","type":"stable","version":"@urql/core@6.0.3"},{"url":"https://github.com/urql-graphql/urql/releases/tag/urql%405.0.3","date":"2026-06-15T17:41:31Z","type":"stable","version":"urql@5.0.3"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/vue%402.1.1","date":"2026-06-15T17:41:19Z","type":"stable","version":"@urql/vue@2.1.1"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/next%402.0.1","date":"2026-06-15T17:41:22Z","type":"stable","version":"@urql/next@2.0.1"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/exchange-graphcache%409.0.1","date":"2026-06-15T17:41:25Z","type":"stable","version":"@urql/exchange-graphcache@9.0.1"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/core%406.0.2","date":"2026-06-15T17:41:28Z","type":"stable","version":"@urql/core@6.0.2"},{"url":"https://github.com/urql-graphql/urql/releases/tag/urql%405.0.2","date":"2026-04-15T03:03:48Z","type":"stable","version":"urql@5.0.2"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/vue%402.1.0","date":"2026-04-01T18:38:53Z","type":"stable","version":"@urql/vue@2.1.0"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/solid-start%400.2.0","date":"2026-04-01T18:38:56Z","type":"stable","version":"@urql/solid-start@0.2.0"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/solid%401.0.1","date":"2026-01-25T10:17:50Z","type":"stable","version":"@urql/solid@1.0.1"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/solid-start%400.1.0","date":"2026-01-25T10:17:47Z","type":"stable","version":"@urql/solid-start@0.1.0"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/storage-rn%401.1.2","date":"2026-01-23T06:42:22Z","type":"stable","version":"@urql/storage-rn@1.1.2"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/exchange-refocus%402.1.0","date":"2026-01-23T06:42:16Z","type":"stable","version":"@urql/exchange-refocus@2.1.0"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/exchange-graphcache%409.0.0","date":"2026-01-23T06:42:19Z","type":"stable","version":"@urql/exchange-graphcache@9.0.0"},{"url":"https://github.com/urql-graphql/urql/releases/tag/urql%405.0.1","date":"2025-08-29T08:06:41Z","type":"stable","version":"urql@5.0.1"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/exchange-persisted%405.0.1","date":"2025-08-11T05:29:00Z","type":"stable","version":"@urql/exchange-persisted@5.0.1"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/core%406.0.1","date":"2025-08-11T05:29:03Z","type":"stable","version":"@urql/core@6.0.1"},{"url":"https://github.com/urql-graphql/urql/releases/tag/urql%405.0.0","date":"2025-08-09T13:26:59Z","type":"stable","version":"urql@5.0.0"},{"url":"https://github.com/urql-graphql/urql/releases/tag/%40urql/exchange-graphcache%408.1.0","date":"2025-08-09T13:31:05Z","type":"stable","version":"@urql/exchange-graphcache@8.1.0"}]` |
| security.scorecard | 5.8 | - |
| security.vulnerabilities | `{"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}` | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=%40urql%2Fcore&per_page=100","last_12m":0,"max_severity":null}` |

## Capabilities (GraphQL Tools)

| Capability | Relay | urql |
|---|:--:|:--:|
| **Core** |  |  |
| Role | Client | Client |
| Primary language | JavaScript / TypeScript | TypeScript |
| **Modelling** |  |  |
| Schema approach | 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-01T17:13:19.208Z. "-" = undocumented, not absent.*
