# Relay vs urql

**Leader by vioscaleAI score:** Relay

| Attribute | Relay | urql |
|---|---|---|
| **vioscaleAI score** | 69.9 (58% (medium)) | 59.9 (51% (medium)) |
| activity.commits_last_30d | 100 | 3 |
| adoption.dependent_repos | 76,213 | 57,619 |
| adoption.github_stars | 18,962 | 8,980 |
| adoption.package_downloads_weekly | 4,659,338 | 1,178,429 |
| content.faq | `[{"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}]` | `[{"answer":"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. It is indexed under GraphQL Tools.","source":"https://urql.dev","question":"What is urql?","confidence":0.6},{"answer":"urql 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://urql.dev","question":"Is urql free to use?","confidence":0.6},{"answer":"We have confirmed browser-based access to urql. 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://urql.dev","question":"What platforms does urql support?","confidence":0.6},{"answer":"Yes. urql 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/urql-graphql/urql","question":"Is urql open source?","confidence":0.99}]` |
| deployment.options | `{"self_hosted":true}` | - |
| description.long | 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. | A framework-agnostic GraphQL client library that works with React, Preact, Vue, Solid, and Svelte, featuring flexible caching and a highly customizable API. |
| 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","subscriptions":true}` |
| language.primary | Rust | TypeScript |
| license.spdx | MIT | MIT |
| market.availability | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` | - |
| platform.support | `{"cli":true,"ios":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 | 1 |
| 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/%40urql/exchange-graphcache%409.0.2","date":"2026-10-02T04:49:37Z","type":"stable","version":"@urql/exchange-graphcache@9.0.2"},{"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"}]` |
| 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: vioscaleAI. Generated 2026-10-16T20:14:37.061Z. "-" = undocumented, not absent.*
