# Pothos vs Relay

**Leader by vioscaleAI score:** Relay

| Attribute | Pothos | Relay |
|---|---|---|
| **vioscaleAI score** | 58.8 (48% (low)) | 69.9 (58% (medium)) |
| activity.commits_last_30d | 100 | 100 |
| adoption.dependent_repos | 316 | 76,213 |
| adoption.github_stars | 2,623 | 18,962 |
| adoption.package_downloads_weekly | 477,926 | 4,659,338 |
| content.faq | `[{"answer":"Pothos is a GraphQL schema builder for TypeScript that emphasizes type-safety and ease of use. It features a plugin ecosystem for extending functionality while maintaining zero-overhead at runtime. It is indexed under GraphQL Tools.","source":"https://pothos-graphql.dev/","question":"What is Pothos?","confidence":0.6},{"answer":"Pothos is open source, so it can be self-hosted and used at no licence cost. It is released under the ISC licence. Pricing changes often, so verify at source before relying on it.","source":"https://pothos-graphql.dev/","question":"Is Pothos free to use?","confidence":0.6},{"answer":"Pothos supports the web and a command-line interface. Platforms we have not confirmed are simply not listed here rather than ruled out.","source":"https://pothos-graphql.dev/","question":"What platforms does Pothos support?","confidence":0.6},{"answer":"Yes. Pothos can be deployed self-hosted, so it does not have to run on the vendor's infrastructure.","source":"https://pothos-graphql.dev/","question":"Can Pothos be self-hosted?","confidence":0.6},{"answer":"We have confirmed 6 integrations for Pothos, including Prisma, NestJS, Next.js, Apollo, Mercurius and OpenTelemetry. This is what we could verify from public sources, so the vendor may support others we have not indexed.","source":"https://pothos-graphql.dev/","question":"What does Pothos integrate with?","confidence":0.6},{"answer":"Yes. Pothos is published under the ISC 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/hayes/pothos","question":"Is Pothos 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 | `{"self_hosted":true}` | `{"self_hosted":true}` |
| description.long | A GraphQL schema builder that leverages TypeScript's type system to minimize manual type annotations, integrating with databases like Prisma and Drizzle through a modular plugin architecture. | 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":"schema_builder","language":"TypeScript","federation":true,"self_hostable":true,"subscriptions":true,"schema_approach":"code_first","type_generation":true,"db_introspection":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":"Prisma"},{"name":"NestJS"},{"name":"Next.js"},{"name":"Apollo"},{"name":"Mercurius"},{"name":"OpenTelemetry"},{"name":"Drizzle","native":true,"category":"database","direction":"bidirectional"},{"name":"Zod","native":true,"category":"validation","direction":"inbound"},{"name":"Valibot","native":true,"category":"validation","direction":"inbound"},{"name":"ArkType","native":true,"category":"validation","direction":"inbound"},{"name":"GraphQL Yoga","native":false,"category":"server","direction":"outbound"},{"name":"Apollo Server","native":false,"category":"server","direction":"outbound"},{"name":"Apollo Federation","native":true,"category":"federation","direction":"bidirectional"},{"name":"New Relic","native":true,"category":"observability","direction":"outbound"},{"name":"Dataloader","native":true,"category":"data_loading","direction":"bidirectional"},{"name":"Grafast","native":true,"category":"execution_engine","direction":"bidirectional"}]` | - |
| language.primary | TypeScript | Rust |
| license.spdx | ISC | MIT |
| market.availability | - | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | `{"cli":true,"web":true}` | `{"cli":true,"ios":true,"web":true}` |
| pricing | `{"type":"open_source","sourceUrl":"https://pothos-graphql.dev/","retrievedAt":"2026-08-14T09:17:12.302Z"}` | `{"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 |
| pricing.model | commercial | commercial |
| pricing.price_level | free | free |
| release.cadence_days | - | 47 |
| release.history | `[{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-drizzle%400.20.0","date":"2026-09-14T17:05:23Z","type":"stable","version":"@pothos/plugin-drizzle@0.20.0"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-zod%404.3.2","date":"2026-09-13T21:56:53Z","type":"stable","version":"@pothos/plugin-zod@4.3.2"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-validation%404.3.4","date":"2026-09-13T22:49:26Z","type":"stable","version":"@pothos/plugin-validation@4.3.4"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-validation%404.3.3","date":"2026-09-13T21:56:26Z","type":"stable","version":"@pothos/plugin-validation@4.3.3"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-tracing%401.1.4","date":"2026-09-13T21:56:38Z","type":"stable","version":"@pothos/plugin-tracing@1.1.4"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-sub-graph%404.5.3","date":"2026-09-13T22:49:23Z","type":"stable","version":"@pothos/plugin-sub-graph@4.5.3"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-sub-graph%404.5.2","date":"2026-09-13T21:56:17Z","type":"stable","version":"@pothos/plugin-sub-graph@4.5.2"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-smart-subscriptions%404.1.7","date":"2026-09-13T22:49:14Z","type":"stable","version":"@pothos/plugin-smart-subscriptions@4.1.7"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-smart-subscriptions%404.1.6","date":"2026-09-13T21:56:29Z","type":"stable","version":"@pothos/plugin-smart-subscriptions@4.1.6"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-scope-auth%404.2.1","date":"2026-09-13T22:48:59Z","type":"stable","version":"@pothos/plugin-scope-auth@4.2.1"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-scope-auth%404.2.0","date":"2026-09-13T21:56:35Z","type":"stable","version":"@pothos/plugin-scope-auth@4.2.0"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-relay%404.8.1","date":"2026-09-13T22:49:08Z","type":"stable","version":"@pothos/plugin-relay@4.8.1"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-relay%404.8.0","date":"2026-09-13T21:56:14Z","type":"stable","version":"@pothos/plugin-relay@4.8.0"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-prisma%404.17.0","date":"2026-09-13T21:56:44Z","type":"stable","version":"@pothos/plugin-prisma@4.17.0"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-prisma-utils%401.3.6","date":"2026-09-13T22:49:11Z","type":"stable","version":"@pothos/plugin-prisma-utils@1.3.6"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-prisma-utils%401.3.5","date":"2026-09-13T21:56:59Z","type":"stable","version":"@pothos/plugin-prisma-utils@1.3.5"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-mocks%404.1.4","date":"2026-09-13T21:56:56Z","type":"stable","version":"@pothos/plugin-mocks@4.1.4"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-federation%404.5.3","date":"2026-09-13T22:48:56Z","type":"stable","version":"@pothos/plugin-federation@4.5.3"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-federation%404.5.2","date":"2026-09-13T21:56:50Z","type":"stable","version":"@pothos/plugin-federation@4.5.2"},{"url":"https://github.com/hayes/pothos/releases/tag/%40pothos/plugin-errors%404.9.3","date":"2026-09-13T22:49:17Z","type":"stable","version":"@pothos/plugin-errors@4.9.3"}]` | `[{"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 | - | 5.8 |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=%40pothos%2Fcore&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 | Pothos | Relay |
|---|:--:|:--:|
| **Core** |  |  |
| Role | Schema builder | Client |
| Primary language | 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-16T20:46:50.389Z. "-" = undocumented, not absent.*
