vite-plugin-relay weekly downloads statistics
By oscartbeaumont · npm · Vite plugins
A vite plugin for relay
vite-plugin-relay has 28,480 recorded weekly downloads on npm, a decrease of 38.6% over the past 30 days.
It ranks #671 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -58.0%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About vite-plugin-relay
Vite Plugin Relay
Add relay support to your Vite projects.
❤️ Special thanks to:
• @Brendonovich for general help • @kesne for adding pnpm support • @tobias-tengler for adding Vite 3 support
I do not actively use this project anymore, however, it will still receive periodic updates.
Usage
Follow Relay's guide on how to add Relay to your project.
⚠️ Note: Install babel-plugin-relay (>= 13.0.1) as devDependencies as instructed, but skip its configuration. vite-plugin-relay will invoke the babel plugin for you!
Add vite-plugin-relay to your devDependencies:
Add vite-plugin-relay to your Vite configuration (vite.config.ts or vite.config.js):
Configure relay-compiler to output artifacts with export default syntax, by setting eagerEsModules to true:
Now your project is setup to use Relay with Vite!
How this plugin works
Under the hood we are invoking the official babel-plugin-relay. This ensures that our plugin and babel-plugin-relay do not get out of sync over time and also reduces the maintainance costs of this project.
Since v13 babel-plugin-relay automatically gets its configuration from either the package.json, relay.config.js or relay.config.json, so our plugin also doesn't have to expose a configuration API.
Common Issues
Uncaught ReferenceError: global is not defined
If you experience this error in your browser console when using the plugin add the following define to your index.html file before importing your Javascript:
Server Side Rendering
If you are planning to use this plugin with server side rendering you may need to define window. You could do this by putting the following snippet in your entry-server.js file.
Contributing
Description from the npm listing.
- graphql
- relay
- typescript
- graphql-relay
- vite
- vite-plugin
- vite-plugin-relay
Where vite-plugin-relay sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (121)Similar npm Vite plugins plugins
Data 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/vite-plugin-relay. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.