Getting Started with Nuxt 4

The Vue ecosystem has reached a major milestone with the release and stabilization of Nuxt 4. If you are looking to build a high-performance, SEO-friendly, and scalable web application in 2026, Nuxt 4 is your go-to meta-framework.
This guide will walk you through everything you need to know to get started, from installation to mastering the new directory structure and performance-driven features.
Key highlights in Nuxt 4 includes new app/ directory, smarter data fetching using useFetch and useAsyncData and stricter TypeScript.
How to Setup a Nuxt 4 Project
Before setting up a new Nuxt 4 project, ensure you have Node.js v20.x or newer versions installed.
I'm using npm here, you're free to go with yarn or pnpm.
npm create nuxt@latest <project-name>
During setup, you’ll be asked to if you want to install additional module like @nuxt/content, @nuxt/fonts etc. If you wish, select them hitting spacebar. You can install them later as well.
cd <project-name>
npm run dev -- -o
Now, your project is up and running at http://localhost:3000.
Nuxt 4's New Directory Structure
One of the most significant changes in Nuxt 4 is the optional (but encouraged) app/ directory. In previous versions, your root folder was cluttered with both logic (pages/, components/) and configuration.
In Nuxt 4, your core application lives inside app/, while the root handles global configuration.
Let's understand the most important stuffs in the structure:
app/: Contains pages/, components/, layouts/, and app.vue."server/: Nitro API routes and server-side middleware.public/: Static assets (favicons, robots.txt) served at the root."- `nuxt.config.ts: The central brain for your app's configuration.
shared/: (New) Utilities or types shared between client and server code.
For more information on features, modules etc., visit the official Nuxt 4 documentation