Quick Start

Start with a fresh Nitro project or adopt it in your current Vite project.
Nitro v3 Alpha docs are a work in progress — expect updates, rough edges, and occasional inaccuracies.

Try Nitro online

Get a taste of Nitro in your browser using our playground.

Nitro+Vite Starter

Play with Nitro in your browser with a minimal vite project.

Create a Nitro project

The fastest way to create a Nitro application is using the create-nitro-app.

Make sure to have installed the latest LTS version of either Node.js, Bun, or Deno.
npx create-nitro-app

Follow the instructions from the CLI and you will be ready to start your development server.

Add to a Vite project

To add Nitro to an existing Vite project, follow these instructions:

Install nitro package

npm i nitro

Add Nitro plugin

vite.config.mjs
import { defineConfig } from "vite";
import { nitro } from "nitro/vite";

export default defineConfig({
  plugins: [
    nitro()
  ],
});

That's it, you can now add server and API routes to your Vite project!