Nitro is the universal server engine powering Nuxt — build APIs that deploy to any platform without changing code.
What You Get for Free
- Universal deployment — Node.js, Deno, Bun, Cloudflare, Vercel, Netlify, AWS Lambda
-
File-based routing —
api/users.ts→GET /api/users - Auto-imports — no import statements needed
- Storage — unified key-value storage API (Redis, FS, Cloudflare KV)
- Cache — built-in response caching
- WebSocket — real-time support
- Tasks — scheduled and background tasks
- TypeScript native — zero config, full type safety
- Hot reload — instant dev server updates
Quick Start
npx giget@latest nitro my-api
cd my-api && npm install && npm run dev
// routes/hello.ts
export default defineEventHandler(() => {
return { hello: 'world' }
})
// GET http://localhost:3000/hello → {"hello":"world"}
// routes/users/[id].ts
export default defineEventHandler((event) => {
const id = getRouterParam(event, 'id')
return { userId: id }
})
Why Developers Switch from Express
Express is tied to Node.js and has no built-in deployment flexibility:
- Deploy anywhere — same code runs on 10+ platforms
-
File routing — no
app.get()boilerplate - Auto-imports — write handlers, not import statements
- Built-in cache — response caching without Redis setup
A team maintained separate Express (Node) and Hono (Workers) codebases for the same API. After Nitro: one codebase,
nitro build --preset=cloudflareor--preset=node, deploys to both.
Need Custom Data Solutions?
I build production-grade scrapers and data pipelines for startups, agencies, and research teams.
Browse 88+ ready-made scrapers on Apify → — Reddit, HN, LinkedIn, Google, Amazon, and more.
Custom project? Email me: spinov001@gmail.com — fast turnaround, fair pricing.
Top comments (0)