babel-plugin-relay weekly downloads statistics
By facebook (4 listings) · npm · Babel plugins
A Babel Plugin for use with Relay applications.
babel-plugin-relay has 573,560 recorded weekly downloads on npm, an increase of 3.5% over the past 30 days, ranking #380 of 3,247 tracked listings.
About babel-plugin-relay
babel-plugin-relay
Relay requires a Babel plugin to convert GraphQL tags to runtime artifacts.
A very simplified example of what this plugin is doing:
// It converts this code
const fragment = graphql`
fragment User_fragment on User {
name
}
`;
// To require generated ASTs for fragments and queries
const fragment = require('__generated__/User_fragment.graphql');
Plugin Configuration
babel-plugin-relay will discover the config if:
- There is a
relay.config.json,relay.config.jsfile at the root of the project (i.e. in the same folder as thepackage.jsonfile). - The
package.jsonfile contains a"relay"key.
Supported configuration options for babel-plugin-relay
artifactDirectoryA specific directory to output all artifacts to. When enabling this the babel plugin needsartifactDirectoryto be set as well. [string]eagerEsModulesThis option enables emitting ES modules artifacts. [boolean][default: false]codegenCommandThe command to run to compile Relay files. [string]isDevVariableNameName of the global variable for dev mode (e.g.__DEV__). [string]jsModuleFormatFormatting style for generated files.commonjsorhaste. Default iscommonjs. [string]
Description from the npm listing.
- graphql
- relay
- babel
- babel-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm Babel plugins plugins
All 20 babel-plugin-relay alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/babel-plugin-relay. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.