Get a taste of Nitro in your browser using our playground.
The fastest way to create a Nitro application is using the create-nitro-app.
npx create-nitro-app
yarn dlx create-nitro-app
pnpm dlx create-nitro-app
bunx create-nitro-app
deno run -A npm:create-nitro-app

Follow the instructions from the CLI and you will be ready to start your development server.
To add Nitro to an existing Vite project, follow these instructions:
nitro packagenpm i nitro
yarn add nitro
pnpm i nitro
bun i nitro
deno i npm:nitro
import { defineConfig } from "vite";
import { nitro } from "nitro/vite";
export default defineConfig({
plugins: [
nitro()
],
nitro: {
serverDir: './'
}
});
That's it, you can now add server and API routes to your Vite project!