Relay Runtime is the core runtime library for building GraphQL-driven applications with the Relay framework, developed by Facebook. Current stable version is 21.0.1, released bi-weekly alongside the Relay compiler. It provides client-side GraphQL execution, data fetching, caching with normalized stores, and reactivity. Key differentiators: strong type safety via generated TypeScript types, declarative data fetching with fragments, and optimized batching. Supports React and other JS frameworks. Ships TypeScript definitions natively.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
RelayRuntime is a named export, not default. Use object destructuring.
Since v11, relay-runtime is ESM-only. Use import syntax; require() fails.
fetchQuery is a named export. Default import yields undefined.
Shows how to create a Relay environment with a network layer and store.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.