Relay 是构建数据驱动的React应用程序的JavaScript框架。
- 声明式:不再使用命令式API与数据存储进行通信。 只需使用GraphQL声明您的数据需求,并让Relay 知道如何以及何时获取数据。
 - 托管:查询依靠他们的意见旁边,所以你可以很容易地理解你的应用程序。Relay 将查询集中到高效的网络请求中,仅获取所需的内容。
 - 突变:Relay 允许您使用GraphQL突变来变换客户端和服务器上的数据,并提供自动数据一致性,乐观更新和错误处理。
 
Relay 是构建数据驱动的React应用程序的JavaScript框架。(Relay is a JavaScript framework for building data-driven React applications. )
Relay 是构建数据驱动的React应用程序的JavaScript框架。
| Name With Owner | facebook/relay | 
|---|---|
| Primary Language | Rust | 
| Program language | JavaScript (Language Count: 8) | 
| Platform | |
| License: | MIT License | 
| Created At | 2015-08-11 06:09:16 | 
|---|---|
| Pushed At | 2025-10-31 13:00:23 | 
| Last Commit At | |
| Release Count | 93 | 
| Last Release Name | v20.1.1 (Posted on ) | 
| First Release Name | v0.1.0 (Posted on ) | 
| Stargazers Count | 18.9k | 
|---|---|
| Watchers Count | 321 | 
| Fork Count | 1.9k | 
| Commits Count | 10.8k | 
| Has Issues Enabled | |
| Issues Count | 2344 | 
| Issue Open Count | 614 | 
| Pull Requests Count | 111 | 
| Pull Requests Open Count | 157 | 
| Pull Requests Close Count | 2451 | 
| Has Wiki Enabled | |
|---|---|
| Is Archived | |
| Is Fork | |
| Is Locked | |
| Is Mirror | |
| Is Private | 
Relay is a JavaScript framework for building data-driven React applications.
See how to use Relay in your own project.
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.
We actively welcome pull requests, learn how to contribute.
We have a community-maintained list of people and projects using Relay in production.
Relay is MIT licensed.