
Relay
JavaScript framework for building data-driven React applications on GraphQL, with a compiler that precomputes each component's queries.
Relay is a JavaScript framework for building data-driven React applications on GraphQL. Each component declares the data it needs, and the Relay compiler aggregates those declarations into GraphQL requests at build time. At runtime, the Relay store keeps every component that reads the same data up to date.
The Relay documentation describes the framework, and its quick start walks through adding Relay to a React project.
Worth knowing
Relay requires a Babel plugin and the Relay Compiler, so a build step is part of the setup. It also makes assumptions about the GraphQL server: that it provides a way to refetch an object and a description of how to page through connections. The GraphQL server specification spells them out.
Identity
Rendering and deploy
- Install with
- npm5
Releases
Adoption
Sources
- 2026-11-16: links
relay.dev/ - 2026-11-16: links, License, GitHub stars
api.github.com/repos/meta/relay - 2026-11-16: links
relay.dev/docs/ - 2026-11-16: Categories, Written in, Built on
github.com/meta/relay/blob/main/README.md - 2026-11-16: Install with
relay.dev/docs/getting-started/quick-start/ - 2026-11-16: Maintainer
github.com/meta/relay/blob/main/LICENSE - 2026-11-16: First release
registry.npmjs.org/react-relay - 2026-11-16: Current major version, Last release
github.com/meta/relay/releases/tag/v21.0.1 - 2026-11-16: Contributors
api.github.com/repos/meta/relay/contributors?per_page=1 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/relay-runtime - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/relay-runtime