Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

relay

> 编程语言
Open source

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

19.0K stars0 likes0 views
WebsiteGitHub

About

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

Relay ·

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:

bash
git clone https://github.com/relayjs/relay-examples.git
cd relay-examples/todo
yarn
yarn grats
yarn relay
yarn dev

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

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.

Thanks

We'd like to thank the contributors that helped make Relay in open source possible.

The open source project relay-hooks allowed the community to experiment with Relay and React Hooks, and was a source of valuable feedback for us. The idea for the useSubscription hook originated in an issue on that repo. Thank you @morrys for driving this project and for playing such an important role in our open source community.

Thank you for helping make this possible!

Issues· 865 open

View all issuesOpen on GitHub
  • #5422

    relay-compiler: $parameters artifact for @preloadable query does not import provided-variable providers

    Updated Sep 30, 2026
  • #5408

    Duplicate compiled @defer labels when the same deferred fragment is inlined twice under @alias

    Updated Sep 29, 2026
  • #3651

    Fragments render with missing data when using partial rendering

    Updated Sep 28, 2026
  • #5421

    useLazyLoadQuery: a sibling's commit releases a suspended component's temporary retain, causing a refetch after the sibling unmounts

    Updated Sep 24, 2026
  • #5417

    Compiler: `base` accepts one project, so a package that depends on two fragment-defining packages cannot be modeled

    Updated Sep 22, 2026
  • #5416

    Feature Request: Config Flag to Enable ID Input Coercion

    Updated Sep 11, 2026
  • #5415

    MockPayloadGenerator loses fields and concrete types across repeated plural-field traversal

    Updated Sep 11, 2026
  • #5395

    `enable_typename_discriminated_unions` feature bug - abstract inline fragment selections incorrectly merged onto concrete union arms

    Updated Aug 24, 2026
  • #5398

    usePaginationFragment().refetch() should pass networkCacheConfig through to the network layer

    Updated Aug 22, 2026
  • #5389

    RelayResponseNormalizer writes `__is<Interface>: false` when `@defer`'d payload omits abstract typename, corrupting DataChecker

    Updated Aug 4, 2026

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言