vite-plugin-rails weekly downloads statistics
By ElMassimo (8 listings) · npm · Vite plugins
Convention over configuration for using Vite in Rails apps
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.
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm Vite plugins plugins
All 20 vite-plugin-rails alternativesData 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.