Relay logo
A JavaScript Framework for Building Data-Driven React Applications, by Facebook

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 13K GitHub stars and 1.3K GitHub forks. Here’s a link to Relay's open source repository on GitHub

Who uses Relay?

Companies
39 companies use Relay in their tech stacks, including Facebook, ZeeMee, and Flexport.

Developers
7 developers use Relay.

Relay Integrations

graphql-yoga, PostGraphile, Reindex, scaphold.io, and Graphene 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 · 2.6K views
Relay
GraphQL
Apollo

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 · 941 views
atClubhouse
GraphQL
Flow (JS)
Relay

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 · 738 views
atParabol, Inc.
Relay

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?
React
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
jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
AngularJS
AngularJS lets you write client-side web applications as if you had a smarter browser. It lets you use good old HTML (or HAML, Jade and friends!) as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. It automatically synchronizes data from your UI (view) with your JavaScript objects (model) through 2-way data binding.
Vue.js
Vue.js is a library for building interactive web interfaces. It provides data-reactive components with a simple and flexible API.
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 Stats