Relay logo


A JavaScript Framework for Building Data-Driven React Applications, by Facebook
+ 1

What is Relay?

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.
Relay is a tool in the Javascript UI Libraries category of a tech stack.
Relay is an open source tool with 13.9K GitHub stars and 1.4K GitHub forks. Here’s a link to Relay's open source repository on GitHub

Who uses Relay?

44 companies reportedly use Relay in their tech stacks, including Facebook, Flexport, and Clubhouse.

60 developers on StackShare have stated that they use Relay.

Relay Integrations

Graphene, PostGraphile, Reindex,, and Prisma Cloud are some of the popular tools that integrate with Relay. Here's a list of all 6 tools that integrate with Relay.

Why developers like Relay?

Here’s a list of reasons why companies and developers use Relay
Top Reasons
Relay Reviews

Here are some stack decisions, common use cases and reviews by companies and developers who chose Relay in their tech stack.

Zach Holman
Zach Holman
at Zach Holman · | 7 upvotes · 5.8K views

Apollo is my favorite open source project.

Two things you need to worry about when making a statement like that: is the tool good, and how is the tool being built?

From a tool perspective... yeah, Apollo is great. I'm convinced that GraphQL is the way forward for me, and Apollo's just a great way to tackle it. Even beyond that, it just offers a good mentality to how you should build your database-backed app. I've used Relay in the past, back before they made a bunch of changes with Relay Modern (which all seem positive!), but switching to Apollo is just night-and-day. They've been doing better in the last 12 months or so at making smart abstractions in the React Apollo library, to the point where I'd just get these monster all-red pull requests where I can delete all my cruddy code and replace it with far fewer lines of their great abstractions.

But from a build perspective... Apollo fares even better, I think. By this, I mean their project inertia, their progress, their ability to ship stable code — but still ship meaningful new functionality, too. They're not afraid to move their ideas in other directions (integrating with React Native, for example). Kills me to see projects that are just heads-down on their little world as the world passes them by, and so far... yeah, Apollo's been on top of it.

Anyway, big fan. It's really changed how I write frontend code, and I feel hella confident while working with it.

See more
Eli Perkins
Eli Perkins
Mobile Engineer at Clubhouse · | 6 upvotes · 4.7K views
Flow (JS)
Flow (JS)

We use Relay because it's ability to generate Flow (JS) types based on given GraphQL fragments gives an immense amount of type safety. The relay-compiler helps us verify queries are valid before we build the app. Relay's ability to colocate queries with components, and compose many fragments, makes it easy to build a new component and get the data the component needs.

See more
Jordan Husney
Jordan Husney
CEO at Parabol · | 1 upvotes · 3K views
atParabol, Inc.Parabol, Inc.

Before relay-modern, we wrote our own subscriptions-capable GraphQL client + cache called Cashay. We switched to relay-modern when its functionality and community surpassed our own Relay

See more

Relay's Features

  • Build data driven apps
  • Declarative style
  • Mutate data on the client and server

Relay Alternatives & Comparisons

What are some alternatives to Relay?
It is a set of user experience development tools that unify design, prototyping and implementation of high quality, native apps for iOS and Android.
Ring your mobile phone, computer, and desk phone at the same time. Answer calls and switch seamlessly between devices. Use your personal device with a business phone number so you're always reachable.
jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
jQuery UI
Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice.
See all alternatives

Relay's Followers
106 developers follow Relay to keep up with related blogs and decisions.
Nurullah Özdemir
Yasser Aly
Sajjad vafaie
Michael Shang
Leonardo Dutra
Rodrigo Oler
Dick Koekemoer
Roberto  Protásio
Harshit Singhai