Nitro
ELI5 - The Vibe Check
Nitro is the server engine humming quietly under the hood of Nuxt, and increasingly other frameworks too. You write API routes and server logic once, and Nitro figures out how to run that same code on Node, Deno, Cloudflare Workers, or Vercel Edge, without you rewriting anything. It's the universal adapter that makes deploy anywhere actually true.
Real Talk
Nitro is an open source, framework agnostic server toolkit that powers Nuxt's server layer, providing file based API routes, auto imports, and a unified runtime abstraction over Node.js, Deno, Bun, and edge platforms like Cloudflare Workers and Vercel Edge. It compiles server code into deployment specific builds via presets, so the same codebase targets multiple hosting providers without manual adaptation.
Show Me The Code
// server/api/hello.ts (Nitro auto-registers this route)
export default defineEventHandler((event) => {
return { message: 'Hello from Nitro' }
})
When You'll Hear This
"Switching hosts was a one line preset change since we're on Nitro." / "Nitro's auto imported server utils saved us from writing the same fetch wrapper twice."
Related Terms
Cloudflare Workers
Workers run JavaScript at the edge — on Cloudflare's network of 300+ data centers worldwide. Your code executes in milliseconds, right next to the user.
Edge Runtime
Edge Runtime is like having tiny copies of your server scattered around the world in every city, so your code runs right next to the user instead of in som
Nuxt
Nuxt is Vue on steroids. It's a meta-framework that adds SSR, SSG, file-based routing, auto-imports, and a full deployment pipeline on top of Vue.
Serverless Functions
Serverless functions are snippets of code that run in the cloud without you managing any servers.