Skip to content
Relay is a JavaScript framework for building data-driven React applications.
JavaScript Rust HTML Other
Branch: master
Clone or download

Latest commit

tyao1 and facebook-github-bot Generate static storageKey for list and object arguments if possible
Reviewed By: kassens

Differential Revision: D22146135

fbshipit-source-id: 0ae835422d1007f0dc851fb61bca515ded657e2a
Latest commit 34b1dc0 Jun 22, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add node 14.x to build matrix (#3068) Apr 27, 2020
compiler reset module_key on each operation/fragment Jun 19, 2020
docs Grammar correction (#3088) Jun 3, 2020
flow-typed Upgrade chalk to 4.0 May 5, 2020
meta Updated React & React Native Link (#3039) Apr 13, 2020
packages Generate static storageKey for list and object arguments if possible Jun 22, 2020
scripts Back out "Upgrade Prettier from 1.17 to 2.0.2." Mar 25, 2020
website Fix typo in example for `useFragment` docs (#3073) Jun 18, 2020
.eslintignore exclude rust compiler from eslint (#3018) Feb 12, 2020
.eslintrc make GC runs yieldy May 4, 2020
.flowconfig upgrade to flow v0.127.0 Jun 18, 2020
.gitignore Add twitterImage (#2917) Oct 31, 2019
.watchmanconfig Make .watchmanconfig valid JSON (#2797) Jul 13, 2019
LICENSE Update copyright headers to yearless format Sep 11, 2018
README.md Remove dead domain from README (#2962) Dec 4, 2019
crowdin.yaml Use Docusaurus for the website Nov 9, 2017
gulpfile.js Upgrade Prettier in Xplat to version 1.19.1: format files Apr 9, 2020
package.json upgrade to flow v0.127.0 Jun 18, 2020
yarn.lock upgrade to flow v0.127.0 Jun 18, 2020

README.md

Relay Build Status npm version

Relay is a JavaScript framework for building data-driven React applications.

  • Declarative: Never again communicate with your data store using an imperative API. Simply declare your data requirements using GraphQL and let Relay figure out how and when to fetch your data.
  • Colocation: Queries live next to the views that rely on them, so you can easily reason about your app. Relay aggregates queries into efficient network requests to fetch only what you need.
  • Mutations: Relay lets you mutate data on the client and server using GraphQL mutations, and offers automatic data consistency, optimistic updates, and error handling.

See how to use Relay in your own project.

Example

The relay-examples repository contains an implementation of TodoMVC. To try it out:

git clone https://github.com/relayjs/relay-examples.git
cd relay-examples/todo
yarn
yarn build
yarn start

Then, just point your browser at http://localhost:3000.

Contribute

We actively welcome pull requests, learn how to contribute.

Users

We have a community-maintained list of people and projects using Relay in production.

License

Relay is MIT licensed.

You can’t perform that action at this time.