facebook/relay
Relay is a JavaScript framework for building data-driven React applications. observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 99
- Release rhythm 74
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 43.0
- age_days: 4041
- days_rel: 98
- days_push: 7
- n_releases_24m: 9
Adoption not part of the score
18957 stars · 1895 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Relay is a JavaScript framework and GraphQL client for building data-driven React applications, where components declaratively declare their data requirements and Relay's compiler aggregates and optimizes queries. It provides a normalized client-side store, mutations with optimistic updates, type-safe generated TypeScript types, and built-in UI patterns like pagination, refetching, and streaming/deferred data.
Use cases
- fetch data in react components with graphql
- declarative data fetching for react app
- generate typescript types from graphql queries
- manage normalized client-side cache for graphql
- prefetch graphql queries before code loads
- handle pagination and optimistic updates in react
- colocate graphql queries with react components
When to choose
- building a large-scale React application backed by a GraphQL API
- you want type-safe, colocated, composable data requirements per component
- you need automatic query aggregation, deduplication, and a normalized store
- you want built-in pagination, refetching, and optimistic update patterns
When to avoid
- your backend is REST rather than GraphQL
- you want a lightweight client for a small app with simple data needs
- your team is unwilling to adopt Relay's compiler and conventions
- you use a framework other than React
Facets
framework · maturity stable
graphql graphql-client state-management http-client frontend-framework compiler type-system frontend web-development apis cross-platform react data-fetching declarative-ui normalized-store optimistic-updates typescript-codegen meta-open-source javascript nodejs web-server
10 sources
- readme: https://github.com/facebook/relay · fetched 2026-08-28 · abf085e4975e
- homepage: https://relay.dev · fetched 2026-08-29 · 3c58e9abba11
- site_page: https://relay.dev/docs · fetched 2026-08-29 · 850b2a33b6ed
- site_page: https://relay.dev/docs/next · fetched 2026-08-29 · 27e5a51a61c2
- site_page: https://relay.dev/docs/v20.1.0 · fetched 2026-08-29 · f93d73a78121
- site_page: https://relay.dev/docs/v20.0.0 · fetched 2026-08-29 · 50bbc125666e
- site_page: https://relay.dev/docs/v19.0.0 · fetched 2026-08-29 · 4af7305cc307
- site_page: https://relay.dev/docs/v18.0.0 · fetched 2026-08-29 · 4c9f32f03e89
- site_page: https://relay.dev/docs/v17.0.0 · fetched 2026-08-29 · a1cd73935ec7
- site_page: https://relay.dev/docs/v16.0.0 · fetched 2026-08-29 · b09fa0ac4e30
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| facebook/relay | main | 90 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem