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 Stale · Oct 17, 2026

vite-plugin-rails has 45,458 recorded weekly downloads on npm, a decrease of 63.6% over the past 30 days, ranking #583 of 2,256 tracked listings.

Weekly downloads
45,458
Official API · Oct 17, 2026
7-day growth
-59.0%
-65.4K weekly downloads
30-day growth
-63.6%
-79.4K weekly downloads
90-day growth
-61.6%
-73K weekly downloads
Rank
#583
Among tracked npm listings

About vite-plugin-rails

vite-plugin-rails

Convention over configuration for Rails projects using Vite

Installation 💿

In the future, [vite_rails][vite_rails] might install this plugin by default.

You can install it manually by running:

Usage 🚀

Add it to your plugins in vite.config.ts

Batteries Included 🔋

Unlike [vite-plugin-ruby][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]

[vite-plugin-ruby][vite-plugin-ruby] is added by default.

Compression

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

You can disable each manually:

Environment

[vite-plugin-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:

Full Reload

[vite-plugin-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:

Stimulus HMR

[vite-plugin-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][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: 45,458 weekly downloads as of Oct 17, 2026, -61.6% over 90 days.vite-plugin-railsWeekly downloads on npm · Last 90 days45,458downloads / week-61.6% over 90 days020K40K60K80K100K120K140K160K180KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
vite-plugin-rails weekly downloads on npm, last 90 days: 45,458 weekly downloads as of Oct 17, 2026, -61.6% over 90 days.

7/30/90-day growth

vite-plugin-rails weekly downloads growth on npm: -59.0% over 7 days, -63.6% over 30 days, -61.6% over 90 days.vite-plugin-railsWeekly downloads growth on npm45,458downloads / week now7-day growth-65,401 weekly downloads-59.0%30-day growth-79,381 weekly downloads-63.6%90-day growth-72,975 weekly downloads-61.6%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-rails weekly downloads growth on npm: -59.0% over 7 days, -63.6% over 30 days, -61.6% over 90 days.

Ranking history

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

Listing placement

All npm2,256 listings · 113 pages · 1,129 shown · page 30, #3 (overall #583)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins250 listings · 13 pages · page 5, #8 (overall #88)
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 (121)
Recent weekly downloads observations for vite-plugin-rails
Date (UTC)Weekly downloadsChange vs. previous
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-2.1K
155,996—

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