Skills
Skill 6 of 14
Nitro is the framework-agnostic server toolkit (powering Nuxt) for building and deploying web servers anywhere.
1 minute · 276 words · 3 sections
Install
npx skills add antfu/skills --skill nitronpx skills add antfu/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
The skill is based on Nitro v3 (beta, 3.0.260903), generated at 2026-09-25.
Nitro is a framework-agnostic, deployment-agnostic server toolkit powered by H3 (opens in a new tab) v2, unstorage (opens in a new tab), and Vite/Rolldown/Rollup. It powers Nuxt and works standalone. From one codebase it builds optimized output for Node.js, Bun, Deno, Cloudflare, Vercel, Netlify, and more.
Key capabilities:
NITRO_* env vars.Key v3 changes (vs.
nitropackv2): the package is renamednitropack→nitrowith H3 v2 (web-standardRequest/Response); auto-imports are removed (import everything explicitly); directory scanning is opt-in viaserverDir;useStorage→useKV(nitro/kv) and thestorageconfig option →kv; cacheswrnow defaults tofalse. If unsure about v2-vs-v3 APIs, read advanced-migration (opens in a new tab) first.
| Topic | Description | Reference |
|---|---|---|
| Routing | File-based routes, defineHandler, params, middleware, route rules, errors | core-routing (opens in a new tab) |
| Configuration | nitro.config.ts, defineConfig, key options, runtime config | core-configuration (opens in a new tab) |
| Storage | unstorage KV, mount points, drivers, dynamic mounts | core-storage (opens in a new tab) |
| Cache | defineCachedHandler, defineCachedFunction, SWR, invalidation | core-cache (opens in a new tab) |
| Assets | Public assets, compression, server assets via storage | core-assets (opens in a new tab) |
| Rendering | Renderer (HTML/SSR), server entry, framework integration | core-rendering (opens in a new tab) |
| Topic | Description | Reference |
|---|---|---|
| Plugins & Hooks | definePlugin, runtime lifecycle hooks, error capture | features-plugins (opens in a new tab) |
| Tasks | On-demand & scheduled (cron) tasks, runTask | features-tasks (opens in a new tab) |
| WebSocket & SSE | defineWebSocketHandler, pub/sub, namespaces, event streams | features-websocket (opens in a new tab) |
| Database | Built-in SQL layer via db0, useDatabase, connectors | features-database (opens in a new tab) |
| OpenAPI | Auto spec from defineRouteMeta, Scalar/Swagger UIs | features-openapi (opens in a new tab) |
| Topic | Description | Reference |
|---|---|---|
| Deployment Presets | Runtimes & providers, compatibility dates, platform integration | deploy-presets (opens in a new tab) |
| v2 → v3 Migration | Package rename, nitro/* imports, H3 v2 API, preset changes | advanced-migration (opens in a new tab) |
Nitro is the framework-agnostic server toolkit (powering Nuxt) for building and deploying web servers anywhere. Use when working with nitro.config, server routes/event handlers, route rules, caching, storage, tasks, websockets, or deploying to Node/Bun/Deno/Cloudflare/Vercel.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 5 November 2026.SKILL.md, not by matching a directory convention. One layout observed: skills/*/SKILL.md./antfu/skills.md, and each skill at its own .md URL.14 files · 64 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of skill 6.
Documentation the agent loads on demand, rather than up front.
Everything else published alongside the skill.