# inertiajs/inertia-rails

The Rails adapter for Inertia.js.

Repository: https://github.com/inertiajs/inertia-rails
Canonical: https://ross.abutalabs.com/products/inertia-rails
Homepage: https://inertia-rails.dev/
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-19T20:39:04+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 93, longevity 100
- inputs: {"age_days": 2549, "days_push": 14, "days_rel": 47, "gap_med": 9.0, "n_releases_24m": 31}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1229, forks 104 (observed 2026-08-28T04:04:03.710314+00:00)

## What it is
The Rails adapter for Inertia.js, letting you build single-page React, Vue, or Svelte apps on top of existing Rails controllers, routes, and authentication without a separate API. Controllers pass data as props via `render inertia:`, and client-side navigation is handled through XHR visits.

## Use cases
- build a react spa with rails backend without an api
- add vue or svelte frontend to existing rails app
- replace rails views with modern javascript components
- avoid building a separate rest or graphql api
- server-side render inertia pages in rails
- pass rails controller data as props to frontend

## When to choose
- you have a Rails app and want a modern SPA frontend without maintaining a separate API
- you want to reuse Rails controllers, routing, and authentication for client-side rendering
- you prefer a monolithic stack over a decoupled frontend/backend architecture

## When to avoid
- you need a standalone API consumed by native mobile apps or third parties
- your team prefers a fully decoupled SPA with a dedicated API backend
- you are not using Ruby on Rails

## Facets
- artifact type: library
- maturity: active
- function: web-framework, ssr, routing, middleware
- domain: web-development, frontend, backend, apis
- platform: ruby
- tags: inertiajs, rails, spa, react, vue, svelte, monolith, adapter, vite, nodejs, web-server

## Member repositories
- inertiajs/inertia-rails (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:03.710314+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:15:06.694567+00:00, confidence not recorded.
  - readme: https://github.com/inertiajs/inertia-rails (fetched 2026-08-28T04:04:03.710314+00:00, sha 59152d2fc77d)
  - homepage: https://inertia-rails.dev/ (fetched 2026-08-29T12:22:32.828689+00:00, sha ac8c57a46bbd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
