skryukov

skryukov / rails_vite

Public

Simple Vite integration for Rails, inspired by Laravel. No proxy, no config duplication.

20
0
100% credibility
Found Mar 13, 2026 at 20 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

This project is a Ruby gem and companion plugin that integrates a fast modern bundler into Rails applications for seamless development and production asset handling.

How It Works

1
🔍 Discover a speed booster

You learn about this tool that makes your website's interactive features load lightning-fast without headaches.

2
📦 Add to your project

You easily include this helpful add-on into your existing web project.

3
Run the quick setup

One simple action automatically creates what you need and updates your pages.

4
✏️ Tweak your page layout

You make a small change to connect your styles and scripts to the fast loader.

5
▶️ Launch your playground

Start everything with a single go, and watch changes appear instantly as you edit.

6
Enjoy hot reloading

Edit your designs or behaviors, and see updates refresh right away without restarting.

🚀 Go live smoothly

Your website now delivers speedy, modern experiences to visitors everywhere.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 20 to 20 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is rails_vite?

rails_vite is a Ruby gem and TypeScript Vite plugin that plugs Vite directly into Rails apps, inspired by Laravel's approach. It delivers rails vite hmr in dev by pointing browsers straight to the Vite server—no proxies or duplicated configs—and handles rails vite build in production via a manifest for fingerprinted assets. Drop in `vite_tags "application.js"` for scripts, stylesheets, and preloads that work with rails vite react, rails vite ssr, rails vite stimulus, or rails vite tailwind.

Why is it gaining traction?

Unlike vite_rails, it skips Rack proxies and config files, making rails vite vs esbuild a no-brainer for faster HMR and builds. Auto-builds assets on demand, rake tasks like `vite:build` hook into precompile, and jsbundling mode swaps seamlessly with Propshaft. Migration from vite_rails or esbuild is straightforward, with React Refresh and Tailwind 4 support out of the box.

Who should use this?

Rails backend devs building SPAs with React, Vue, Stimulus, or Tailwind who hit esbuild limits on HMR or SSR. Frontend-heavy teams wanting vite's speed without import map hacks, or those testing rails vite ssr in Inertia apps. Ideal for rails vitest users needing a simple github action workflow example for CI builds.

Verdict

Solid for Vite fans in Rails—docs are thorough, setup is `bin/rails g rails_vite:install` then `bin/dev`. But with 19 stars and 1.0% credibility score, it's early; test in a side project first before prod.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.