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 Remove ValidateServerOnlyDirectivesTransform from IRTransforms
Reviewed By: alunyov

Differential Revision: D21691925

fbshipit-source-id: 99e895e6d4dce3d9fcb2705907bcfc63f1008ce7
Latest commit 9593d57 May 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 put @raw_response_type transform behind feature flag May 21, 2020
docs JS: Fix Spelling of JavaScript May 15, 2020
flow-typed Upgrade chalk to 4.0 May 5, 2020
meta Updated React & React Native Link (#3039) Apr 13, 2020
packages Remove ValidateServerOnlyDirectivesTransform from IRTransforms May 21, 2020
scripts Back out "Upgrade Prettier from 1.17 to 2.0.2." Mar 25, 2020
website JS: Fix Spelling of JavaScript May 15, 2020
.eslintignore exclude rust compiler from eslint (#3018) Feb 12, 2020
.eslintrc make GC runs yieldy May 4, 2020
.flowconfig remove suppress_comments from xplat flowconfigs May 19, 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 deploy Flow 0.125.1 to xplat May 19, 2020
yarn.lock deploy Flow 0.125.1 to xplat May 19, 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.