Skip to content
PluginStats

vite-plugin-relay weekly downloads statistics

By oscartbeaumont · npm · Vite plugins

A vite plugin for relay

View on npm Fresh · Oct 17, 2026

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,256 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.

Weekly downloads
28,480
Official API · Oct 17, 2026
7-day growth
-45.0%
-23.3K weekly downloads
30-day growth
-38.6%
-17.9K weekly downloads
90-day growth
-58.0%
-39.3K weekly downloads
Rank
#671
Among tracked npm listings

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

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-relay weekly downloads on npm, last 90 days: 28,480 weekly downloads as of Oct 17, 2026, -58.0% over 90 days.vite-plugin-relayWeekly downloads on npm · Last 90 days28,480downloads / week-58.0% over 90 days020K40K60K80K100KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-relay weekly downloads on npm, last 90 days: 28,480 weekly downloads as of Oct 17, 2026, -58.0% over 90 days.
PNG SVG

7/30/90-day growth

vite-plugin-relay weekly downloads growth on npm: -45.0% over 7 days, -38.6% over 30 days, -58.0% over 90 days.vite-plugin-relayWeekly downloads growth on npm28,480downloads / week now7-day growth-23,310 weekly downloads-45.0%30-day growth-17,916 weekly downloads-38.6%90-day growth-39,305 weekly downloads-58.0%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-relay weekly downloads growth on npm: -45.0% over 7 days, -38.6% over 30 days, -58.0% over 90 days.
PNG SVG

Ranking history

vite-plugin-relay npm ranking history: currently #671 (by weekly downloads).vite-plugin-relaynpm ranking · by weekly downloads · Last 90 days#671current rank#669#670#671#672#673Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-relay npm ranking history: currently #671 (by weekly downloads).
PNG SVG

Listing placement

All npm2,256 listings · 113 pages · 1,129 shown · page 34, #11 (overall #671)
All npm: every listing in weekly downloads order
PNG SVG

Listing placement

Vite plugins250 listings · 13 pages · page 6, #9 (overall #109)
Vite plugins: every listing in weekly downloads order
PNG SVG

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 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.

Recent observations

Full history (121)
Recent weekly downloads observations for vite-plugin-relay
Date (UTC)Weekly downloadsChange vs. previous
28,480-4.9K
33,376+3.3K
30,040-12.3K
42,290-14.3K
56,5580
56,558+10.7K
45,889-5.9K
51,790-3K
54,816+558
54,258-390
54,648-584
55,232-20K
75,225-17.6K
92,810—

Similar npm Vite plugins plugins

All 20 vite-plugin-relay alternatives

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 19, 2026. See the methodology.