Relay Compiler website screenshot

Relay Compiler

Relay is Meta's open-source JavaScript framework and ahead-of-time GraphQL compiler for building data-driven React applications. The Relay Compiler scans JavaScript code for GraphQL fragments, aggregates and optimizes data requirements for entire apps, pre-computes queries at build time for efficient runtime performance, and generates TypeScript/Flow types for React components. It supports pagination, mutations, subscriptions, and deferred data streaming via GraphQL directives.

Relay Compiler publishes 2 APIs on the APIs.io network. Tagged areas include Code Generation, GraphQL, React, Meta, and Open Source.

The Relay Compiler catalog on APIs.io includes 1 JSON-LD context.

Relay Compiler’s developer surface includes documentation, engineering blog, changelog, and 6 more developer resources.

27.3/100 emerging ▬ flat Agent 3/100 human only Full breakdown ↓
scored 2026-07-28 · rubric v0.6
AccessFreemium
2 APIs
Code GenerationGraphQLReactMetaOpen SourceTypeScriptBuild Tools

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 27.3/100 · emerging
Contract Quality 3.2 / 25
Developer Ergonomics 2.2 / 20
Commercial Clarity 7.9 / 20
Operational Transparency 6.8 / 13
Governance 1.2 / 12
Discoverability 5.9 / 10
Agent readiness — 3/100 · human only
Machine-Readable Contract 0 / 18
Agentic Access Contract 0 / 10
MCP Server 0 / 12
Machine-Readable Auth 0 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 0 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/relay-compiler: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

APIs 2

Individual APIs this provider publishes, each with its own machine-readable definition.

Relay Compiler

The Relay Compiler is Meta's ahead-of-time GraphQL compiler that generates optimized runtime artifacts and type-safe code for Relay applications. It processes GraphQL fragments ...

Relay Runtime

The Relay Runtime provides the client-side execution environment for Relay applications. It includes the normalized in-memory store, network layer, and React hooks including use...

GraphQL 1

GraphQL schemas published by this provider.

Relay Compiler GraphQL API

The Relay Compiler is Meta's ahead-of-time GraphQL compiler that generates optimized runtime artifacts and type-safe code for Relay applications. It processes GraphQL fragments ...

GRAPHQL

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

Relay Compiler Rate Limits

5 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Semantic Vocabularies 1

JSON-LD contexts and semantic vocabularies used across these APIs.

Relay Compiler Context

0 classes · 20 properties

JSON-LD

Security Posture 1

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Resources

Documentation 1

Reference material describing how the API behaves

Design & Contract 2

Pagination, idempotency, versioning, errors, and events

Build 2

SDKs, sample code, and the tooling you integrate with

Access & Security 1

Authentication, authorization, and security posture

Operate 1

Status, limits, changes, and where to get help

Company 2

The organization behind the API

Source (apis.yml)

apis.yml Raw ↑
aid: relay-compiler
name: Relay Compiler
description: Relay is Meta's open-source JavaScript framework and ahead-of-time GraphQL compiler for building data-driven
  React applications. The Relay Compiler scans JavaScript code for GraphQL fragments, aggregates and optimizes data requirements
  for entire apps, pre-computes queries at build time for efficient runtime performance, and generates TypeScript/Flow types
  for React components. It supports pagination, mutations, subscriptions, and deferred data streaming via GraphQL directives.
type: Index
accessModel:
  pricing: freemium
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Freemium
  confidence: medium
  source:
  - plans
  generated: '2026-07-22'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/relay-compiler.png
tags:
- Code Generation
- GraphQL
- React
- Meta
- Open Source
- TypeScript
- Build Tools
url: https://raw.githubusercontent.com/api-evangelist/relay-compiler/refs/heads/main/apis.yml
created: '2026-03-25'
modified: '2026-05-02'
specificationVersion: '0.19'
apis:
- aid: relay-compiler:relay-compiler
  name: Relay Compiler
  description: The Relay Compiler is Meta's ahead-of-time GraphQL compiler that generates optimized runtime artifacts and
    type-safe code for Relay applications. It processes GraphQL fragments in JavaScript/TypeScript source code, aggregates
    data requirements, optimizes queries, and generates TypeScript or Flow types. The compiler enforces GraphQL best practices
    including connection patterns, pagination fragments, and data masking.
  humanURL: https://relay.dev
  tags:
  - Compiler
  - GraphQL
  - Code Generation
  - Build Tool
  - TypeScript
  - Flow
  properties:
  - type: Documentation
    url: https://relay.dev/docs/
  - type: GettingStarted
    url: https://relay.dev/docs/getting-started/
  - type: APIReference
    url: https://relay.dev/docs/api-reference/graphql-and-directives/
  - type: GitHubRepository
    url: https://github.com/facebook/relay
  - type: ReleaseNotes
    url: https://github.com/facebook/relay/releases
  - url: graphql/relay-compiler-graphql.md
    type: GraphQL
- aid: relay-compiler:relay-runtime
  name: Relay Runtime
  description: The Relay Runtime provides the client-side execution environment for Relay applications. It includes the normalized
    in-memory store, network layer, and React hooks including usePreloadedQuery, useFragment, usePaginationFragment, useRefetchableFragment,
    useMutation, and useSubscription for declarative data-fetching in React components.
  humanURL: https://relay.dev/docs/api-reference/
  tags:
  - Runtime
  - React Hooks
  - State Management
  - GraphQL Client
  - Data Fetching
  properties:
  - type: Documentation
    url: https://relay.dev/docs/api-reference/
  - type: GitHubRepository
    url: https://github.com/facebook/relay
common:
- type: DomainSecurity
  url: security/relay-compiler-domain-security.yml
- type: Website
  url: https://relay.dev
- type: Documentation
  url: https://relay.dev/docs/
- type: GitHubOrganization
  url: https://github.com/facebook/relay
- type: npm Package
  url: https://www.npmjs.com/package/relay-compiler
- type: Blog
  url: https://relay.dev/blog/
- type: ChangeLog
  url: https://github.com/facebook/relay/releases
- type: JSONLDContext
  url: https://raw.githubusercontent.com/api-evangelist/relay-compiler/refs/heads/main/json-ld/relay-compiler-context.jsonld
- type: Vocabulary
  url: https://raw.githubusercontent.com/api-evangelist/relay-compiler/refs/heads/main/vocabulary/relay-compiler-vocabulary.yml
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com