Skip to content

nestjs-inertia

Build server-driven SPAs with NestJS and Inertia.js — full type safety, multi-app support, and Tuyau-style typed client.

nestjs-inertia is a TypeScript-first monorepo of five focused packages that implement the Inertia.js protocol for NestJS applications.

PackageDescription
@dudousxd/nestjs-inertiaCore protocol + NestJS module
@dudousxd/nestjs-inertia-viteVite dev/build helpers + plugin
@dudousxd/nestjs-inertia-testingexpectInertia matchers, fakes, and TestingModule
@dudousxd/nestjs-inertia-codegenTyped pages, routes, and api.ts via CLI
@dudousxd/nestjs-inertia-clientTuyau-style typed HTTP client + SSR hydration

Alpha status: The API is stabilising — not recommended for production use yet.

Terminal window
pnpm add @dudousxd/nestjs-inertia @dudousxd/nestjs-inertia-vite @dudousxd/nestjs-inertia-client
pnpm add -D @dudousxd/nestjs-inertia-codegen @dudousxd/nestjs-inertia-testing

Then run the scaffold command and wire two lines into your existing module:

Terminal window
pnpm exec nestjs-inertia init

See Getting Started for the full quickstart — install, init, and you’re running in under five minutes.