Skip to content
PluginStats

vite-plugin-rails weekly downloads statistics

By ElMassimo (8 listings) · npm · Vite plugins

Convention over configuration for using Vite in Rails apps

View on npm Fresh · Oct 18, 2026

vite-plugin-rails has 50,351 recorded weekly downloads on npm, a decrease of 58.6% over the past 30 days, ranking #586 of 2,322 tracked listings.

Weekly downloads
50,351
Official API · Oct 18, 2026
7-day growth
-54.1%
-59.4K weekly downloads
30-day growth
-58.6%
-71.4K weekly downloads
90-day growth
-57.0%
-66.7K weekly downloads
Rank
#586
Among tracked npm listings

About vite-plugin-rails

<h2 align='center'><samp>vite-plugin-rails</samp></h2> <p align='center'>Convention over configuration for Rails projects using Vite</p> <p align='center'> <a href='https://www.npmjs.com/package/vite-plugin-rails'> <img src='https://img.shields.io/npm/v/vite-plugin-rails?color=222&style=flat-square'> </a> <a href='https://github.com/ElMassimo/vite_ruby/blob/master/LICENSE.txt'> <img src='https://img.shields.io/badge/license-MIT-blue.svg'> </a> </p> <br>

Installation 💿

In the future, <kbd>vite_rails</kbd> might install this plugin by default.

You can install it manually by running:

npm i vite-plugin-rails # yarn add vite-plugin-rails

Usage 🚀

Add it to your plugins in vite.config.ts

// vite.config.ts
import Vue from '@vitejs/plugin-vue' // Example, could be using other plugins.
import ViteRails from 'vite-plugin-rails'

export default {
  plugins: [
    Vue(),
    ViteRails(),
  ],
};

Batteries Included 🔋

Unlike vite-plugin-ruby, which provides the minimum amount of configuration necessary to get started, this plugin takes a Rails-approach of including plugins you would normally add.

You can configure each plugin by passing options, which are fully typed. See the configuration options for reference.

If you need finer-grained control, you can opt-out and use vite-plugin-ruby instead, manually adding only the plugins you need.

Ruby

vite-plugin-ruby is added by default.

Compression

This plugin uses rollup-plugin-gzip to create gzip and brotli compressed copies of your assets after build.

You can disable each manually:

    ViteRails({
      compress: { brotli: false }
    }),
    ViteRails({
      compress: false
    }),
Environment

vite-plugin-environment is used to expose environment variables to your client code, using the import.meta.env convention from Vite.

This plugin allows you to conveniently provide defaults, or fail on required env variables:

    ViteRails({
      envVars: {
        API_KEY: null,
        OPTIONAL_KEY: '<opt-value>',
      },
    }),
Full Reload

vite-plugin-full-reload comes pre-configured to automatically reload the page when making changes to server-rendered layouts and templates, improving the feedback cycle.

You can override the default paths, or pass additional ones:

    ViteRails({
      fullReload: {
        additionalPaths: ['app/serializers/**/*']
      },
    }),
Stimulus HMR

vite-plugin-stimulus-hmr is included by default, allowing you to see changes to your Stimulus controllers instantly without refreshing the page.

You can use the stimulus option if you need to configure it.

Subresource Integrity

vite-plugin-manifest-sri is included by default, calculating a cryptographic hash for JavaScript and CSS assets, so that the browser can verify the resources it fetches.

You can use the sri option if you need to configure it.

License

This library is available as open source under the terms of the MIT License.

Description from the npm listing.

  • plugin
  • rails
  • ruby
  • vite
  • vite-plugin
  • vitejs

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-rails weekly downloads on npm, last 90 days: 50,351 weekly downloads as of Oct 18, 2026, -57.0% over 90 days.vite-plugin-railsWeekly downloads on npm · Last 90 days50,351downloads / week-57.0% over 90 days020K40K60K80K100K120K140K160K180KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-rails weekly downloads on npm, last 90 days: 50,351 weekly downloads as of Oct 18, 2026, -57.0% over 90 days.

7/30/90-day growth

vite-plugin-rails weekly downloads growth on npm: -54.1% over 7 days, -58.6% over 30 days, -57.0% over 90 days.vite-plugin-railsWeekly downloads growth on npm50,351downloads / week now7-day growth-59,375 weekly downloads-54.1%30-day growth-71,370 weekly downloads-58.6%90-day growth-66,683 weekly downloads-57.0%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-rails weekly downloads growth on npm: -54.1% over 7 days, -58.6% over 30 days, -57.0% over 90 days.

Ranking history

vite-plugin-rails npm ranking history: currently #586 (by weekly downloads).vite-plugin-railsnpm ranking · by weekly downloads · Last 90 days#586current rank#581#582#583#584#585#586#587#588Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-rails npm ranking history: currently #586 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 30, #6 (overall #586)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins253 listings · 13 pages · page 5, #10 (overall #90)
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 (122)
Recent weekly downloads observations for vite-plugin-rails
Date (UTC)Weekly downloadsChange vs. previous
50,351+4.9K
45,458-5.8K
51,217+8
51,209-28K
79,194-25.1K
104,3030
104,303-5.4K
109,726-1.1K
110,859-934
111,793-3.3K
115,044-5.6K
120,635-4K
124,669-29.2K
153,909—

Similar npm Vite plugins plugins

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