Skip to content
PluginStats

vite-plugin-relay-lite weekly downloads statistics

By cometkim · npm · Vite plugins

Vite plugin for more convenient Relay experience

View on npm Fresh · Dec 6, 2026

vite-plugin-relay-lite has 64,938 recorded weekly downloads on npm, an increase of 40.3% over the past 30 days, ranking #719 of 3,247 tracked listings.

Weekly downloads
64,938
Official API · Dec 5, 2026
7-day growth
+94.5%
+31.5K weekly downloads
30-day growth
+40.3%
+18.6K weekly downloads
90-day growth
+457%
+53.3K weekly downloads
Rank
#719
▲ 151 in 7 days

About vite-plugin-relay-lite

vite-plugin-relay-lite

Version on NPM Downlaods on NPM LICENSE - MIT

Vite plugin for more convenient Relay experience. With no Babel dependencies!

What this plugin does for you:

  • Generates artifacts on code changes
  • Transform codes without Babel plugin
  • Respects project's Relay config file

[!WARNING] This plugin uses naive RegExp match instead of performing correct parsing for JavaScript. So it can fail on syntax that goes beyond the scope of a regular language. (e.g. queries in multiline comments)

Installation

yarn add -D vite graphql vite-plugin-relay-lite

# Assumes the project already have relay-compiler and its configuration
// vite.config.ts

import { defineConfig } from 'vite';
import relay from 'vite-plugin-relay-lite';

export default defineConfig({
  plugins: [
    relay(),
  ],
});

Customize Options

Customize Relay Config

Plugin will automatically load the Relay config file.

You can use custom config file path.

{
  plugins: [
    relay({
      relayConfig: 'path/to/relay.js'
    })
  ]
}

Or pass config object.

{
  plugins: [
    relay({
      relayConfig: {
        // ...relay config
      }
    })
  ]
}
ES Module Output

Plugin respects the eagerEsModules option in the Relay config, so the default output format is esmodule.

The plugin also supports CommonJS outputs with eagerEsModules set to false or module: 'esmodule' in plugin options. However, using CommonJS in Vite projects may require additional config to transpile, and it's not recommended to use.

Relay Compiler Integration

Plugin automatically runs relay-compiler before transform, so it should be installed in the project.

Or you can set the codegen option to false to disable it.

{
  plugins: [
    relay({
      codegen: false
    })
  ]
}

Plugin respects the codegenCommand option in the Relay config, it uses relay-compiler if not set.

(Experimental) Omit graphql tag imports

You can set omitTagImport: true to omit import/require statements for the graphql tag.

{
  plugins: [
    relay({
      omitTagImport: true
    })
  ]
}

This might causes the Vite build to fail, allowing early detection of potential transform errors.

Acknowledgements

The compilation has ported from esbuild-plugin-relay, which was originally introduced from a gist by Samuel Cormier-Iijima

LICENSE

MIT

Description from the npm listing.

  • vite
  • vite-plugin
  • relay

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

vite-plugin-relay-lite weekly downloads on npm, last 90 days: 64,938 weekly downloads as of Dec 5, 2026, +457% over 90 days.vite-plugin-relay-liteWeekly downloads on npm · Last 90 days64,938downloads / week+457% over 90 days010K20K30K40K50K60K70KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-relay-lite weekly downloads on npm, last 90 days: 64,938 weekly downloads as of Dec 5, 2026, +457% over 90 days.

7/30/90-day growth

vite-plugin-relay-lite weekly downloads growth on npm: +94.5% over 7 days, +40.3% over 30 days, +457% over 90 days.vite-plugin-relay-liteWeekly downloads growth on npm64,938downloads / week now7-day growth+31,547 weekly downloads+94.5%30-day growth+18,649 weekly downloads+40.3%90-day growth+53,289 weekly downloads+457%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-relay-lite weekly downloads growth on npm: +94.5% over 7 days, +40.3% over 30 days, +457% over 90 days.

Ranking history

vite-plugin-relay-lite npm ranking history: currently #719 (by weekly downloads).vite-plugin-relay-litenpm ranking · by weekly downloads · Last 90 days#719current rank#700#800#900#1000#1100#1200#1300Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-relay-lite npm ranking history: currently #719 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 36, #19 (overall #719)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 7, #5 (overall #125)
Vite plugins: every listing in weekly downloads order

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 (170)
Recent weekly downloads observations for vite-plugin-relay-lite
Date (UTC)Weekly downloadsChange vs. previous
64,938-1.1K
66,067+7.3K
58,729+8.3K
50,472+5.6K
44,836+5.1K
39,771+6K
33,766+375
33,391+2.2K
31,206-3.4K
34,620-6.5K
41,139-530
41,669+1.2K
40,478-1.2K
41,650—

Similar npm Vite plugins plugins

All 20 vite-plugin-relay-lite 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-lite. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.