nestjs-inertia
Build server-driven SPAs with NestJS and Inertia.js — full type safety, multi-app support, and Tuyau-style typed client.
What is nestjs-inertia?
Section titled “What is nestjs-inertia?”nestjs-inertia is a TypeScript-first monorepo of five focused packages that implement the Inertia.js protocol for NestJS applications.
| Package | Description |
|---|---|
@dudousxd/nestjs-inertia | Core protocol + NestJS module |
@dudousxd/nestjs-inertia-vite | Vite dev/build helpers + plugin |
@dudousxd/nestjs-inertia-testing | expectInertia matchers, fakes, and TestingModule |
@dudousxd/nestjs-inertia-codegen | Typed pages, routes, and api.ts via CLI |
@dudousxd/nestjs-inertia-client | Tuyau-style typed HTTP client + SSR hydration |
Alpha status: The API is stabilising — not recommended for production use yet.
Quick install
Section titled “Quick install”pnpm add @dudousxd/nestjs-inertia @dudousxd/nestjs-inertia-vite @dudousxd/nestjs-inertia-clientpnpm add -D @dudousxd/nestjs-inertia-codegen @dudousxd/nestjs-inertia-testingThen run the scaffold command and wire two lines into your existing module:
pnpm exec nestjs-inertia initSee Getting Started for the full quickstart — install, init, and you’re running in under five minutes.