Inertia.js¶
Build server-driven single-page applications with Litestar routes, Inertia responses, and the same asset/runtime system used for the rest of the project.
See also
Official Inertia.js docs: Getting Started
Note
Litestar-Vite supports Inertia v2 and v3. Generated templates and examples now target Inertia v3 by default, while the version-specific Inertia v2 bootstrap path remains documented in Upgrade Guide.
Turn on the Inertia plugin, add session middleware, and wire the frontend entrypoint correctly.
Understand the request headers, initial page payload, partial reload protocol, and response lifecycle.
Control script-element bootstrap, SSR, page props, redirects, history encryption, and Precognition.
See how the Node SSR renderer fits into the existing Litestar integration without turning into framework proxy mode.
Starter Paths¶
Start with page components, response helpers, redirects, links, and form handling.
Move from shared data to partial reloads, deferred props, once props, merging, polling, prefetching, and infinite scroll.
Cover CSRF, history encryption, Precognition, validation, and error handling.
Generate page prop metadata, share types with the frontend, and keep SSR/bootstrap behavior aligned.
Getting Started
Core Concepts
Data & Props
Advanced
TypeScript Integration
Examples