InertiaJS – Single-page apps, without building an API
Inertia.js - The Modern Monolith
Build single-page apps, without building an API.Create modern single-page React, Vue, and Svelte apps using classic server-side routing. Works with any backend — tuned for Laravel.GitHubTwitterDiscordIntroductionDemo appUpgrade guideInstallationServer-sideClient-sideCore conceptsWho is it forHow it worksThe protocolThe basicsPagesResponsesRedirectsRoutingTitle & metaLinksManual visitsFormsFile uploadsValidationShared dataAdvancedEventsTestingPartial reloadsScroll managementAuthenticationAuthorizationCSRF protectionError handlingAsset versioningProgress indicatorsRemembering stateServer-side renderingJavaScript apps the monolith wayInertia is a new approach to building classic server-driven web apps. We call it the modern monolith.Inertia allows you to create fully client-side rendered, single-page apps, without the complexity that comes with modern SPAs. It does this by leveraging existing server-side patterns that you already love.Inertia has no client-side routing, nor does it require an API. Simply build controllers and page views like you've always done! Inertia works great with any backend framework, but it's fine-tuned for Laravel.Not a frameworkInertia isn't a framework, nor is it a replacement for your existing server-side or client-side frameworks. Rather, it's designed to work with them. Think of Inertia as glue that connects the two. Inertia does this via adapters. We currently have three official client-side adapters (React, Vue, and Svelte) and three server-side adapters (Laravel, Rails, and Phoenix).Next stepsWant to learn a bit more before diving in? Check out the who is it for and how it works pages. Or, if you're ready to get started, jump right into the installation instructions.