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 · Dec 6, 2026

vite-plugin-rails has 137,848 recorded weekly downloads on npm, a decrease of 11.3% over the past 30 days, ranking #589 of 3,247 tracked listings.

Weekly downloads
137,848
Official API · Dec 5, 2026
7-day growth
+15.5%
+18.5K weekly downloads
30-day growth
-11.3%
-17.5K weekly downloads
90-day growth
+3.2%
+4.3K weekly downloads
Rank
#589
▲ 4 in 7 days

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: 137,848 weekly downloads as of Dec 5, 2026, +3.2% over 90 days.vite-plugin-railsWeekly downloads on npm · Last 90 days137,848downloads / week+3.2% over 90 days050K100K150K200KSep 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-rails weekly downloads on npm, last 90 days: 137,848 weekly downloads as of Dec 5, 2026, +3.2% over 90 days.

7/30/90-day growth

vite-plugin-rails weekly downloads growth on npm: +15.5% over 7 days, -11.3% over 30 days, +3.2% over 90 days.vite-plugin-railsWeekly downloads growth on npm137,848downloads / week now7-day growth+18,517 weekly downloads+15.5%30-day growth-17,536 weekly downloads-11.3%90-day growth+4,269 weekly downloads+3.2%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-rails weekly downloads growth on npm: +15.5% over 7 days, -11.3% over 30 days, +3.2% over 90 days.

Ranking history

vite-plugin-rails npm ranking history: currently #589 (by weekly downloads).vite-plugin-railsnpm ranking · by weekly downloads · Last 90 days#589current rank#500#520#540#560#580#600#620Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-rails npm ranking history: currently #589 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 30, #9 (overall #589)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 5, #11 (overall #91)
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-rails
Date (UTC)Weekly downloadsChange vs. previous
137,848+2.7K
135,167+8.3K
126,853+9.7K
117,112+818
116,294-1.7K
118,008+338
117,670-1.7K
119,331-3.9K
123,191-10.5K
133,738-14.8K
148,543-11K
159,551-4.7K
164,290-3.5K
167,832—

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