[{"data":1,"prerenderedAt":1621},["ShallowReactive",2],{"navigation":3,"-blog-v3-beta":389},[4,83,212,218,374,386],{"title":5,"path":6,"stem":7,"children":8,"icon":82},"","/docs","1.docs/1.index",[9,12,17,22,27,32,37,42,47,52,57,62,67,72,77],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-compass",{"title":13,"path":14,"stem":15,"icon":16},"Quick Start","/docs/quick-start","1.docs/2.quick-start","i-lucide-zap",{"title":18,"path":19,"stem":20,"icon":21},"Renderer","/docs/renderer","1.docs/4.renderer","ri:layout-masonry-line",{"title":23,"path":24,"stem":25,"icon":26},"Routing","/docs/routing","1.docs/5.routing","ri:direction-line",{"title":28,"path":29,"stem":30,"icon":31},"Assets","/docs/assets","1.docs/50.assets","ri:image-2-line",{"title":33,"path":34,"stem":35,"icon":36},"Configuration","/docs/configuration","1.docs/50.configuration","ri:settings-3-line",{"title":38,"path":39,"stem":40,"icon":41},"Database","/docs/database","1.docs/50.database","ri:database-2-line",{"title":43,"path":44,"stem":45,"icon":46},"Lifecycle","/docs/lifecycle","1.docs/50.lifecycle","i-lucide-layers",{"title":48,"path":49,"stem":50,"icon":51},"Plugins","/docs/plugins","1.docs/50.plugins","ri:plug-line",{"title":53,"path":54,"stem":55,"icon":56},"Tasks","/docs/tasks","1.docs/50.tasks","codicon:run-all",{"title":58,"path":59,"stem":60,"icon":61},"Server Entry","/docs/server-entry","1.docs/6.server-entry","ri:server-line",{"title":63,"path":64,"stem":65,"icon":66},"Cache","/docs/cache","1.docs/7.cache","ri:speed-line",{"title":68,"path":69,"stem":70,"icon":71},"KV Storage","/docs/storage","1.docs/8.storage","carbon:datastore",{"title":73,"path":74,"stem":75,"icon":76},"Migration Guide","/docs/migration","1.docs/99.migration","ri:arrow-right-up-line",{"title":78,"path":79,"stem":80,"icon":81},"Nightly Channel","/docs/nightly","1.docs/99.nightly","ri:moon-fill","i-lucide-book-open",{"title":84,"path":85,"stem":86,"children":87,"icon":89},"Deploy","/deploy","2.deploy/0.index",[88,90,111],{"title":84,"path":85,"stem":86,"icon":89},"ri:upload-cloud-2-line",{"title":91,"path":92,"stem":93,"children":94,"page":110},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[95,100,105],{"title":96,"path":97,"stem":98,"icon":99},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":101,"path":102,"stem":103,"icon":104},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":106,"path":107,"stem":108,"icon":109},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":112,"path":113,"stem":114,"children":115,"page":110},"Providers","/deploy/providers","2.deploy/20.providers",[116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208],{"title":117,"path":118,"stem":119},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":121,"path":122,"stem":123},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":125,"path":126,"stem":127},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":129,"path":130,"stem":131},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":133,"path":134,"stem":135},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":137,"path":138,"stem":139},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":141,"path":142,"stem":143},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":145,"path":146,"stem":147},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":149,"path":150,"stem":151},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":153,"path":154,"stem":155},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":157,"path":158,"stem":159},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":161,"path":162,"stem":163},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":165,"path":166,"stem":167},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":169,"path":170,"stem":171},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":173,"path":174,"stem":175},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":177,"path":178,"stem":179},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":181,"path":182,"stem":183},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":185,"path":186,"stem":187},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":189,"path":190,"stem":191},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":193,"path":194,"stem":195},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":197,"path":198,"stem":199},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":201,"path":202,"stem":203},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":205,"path":206,"stem":207},"Zephyr Cloud","/deploy/providers/zephyr","2.deploy/20.providers/zephyr",{"title":209,"path":210,"stem":211},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":213,"path":214,"stem":215,"children":216,"icon":36},"Config","/config","3.config/0.index",[217],{"title":213,"path":214,"stem":215,"icon":36},{"title":219,"path":220,"stem":221,"children":222,"icon":224},"Examples","/examples","4.examples/0.index",[223,225,230,235,240,245,249,254,259,264,269,274,279,283,288,292,296,301,306,311,316,321,326,331,336,341,345,350,355,359,364,369],{"title":219,"path":220,"stem":221,"icon":224},"i-lucide-folder-code",{"title":226,"path":227,"stem":228,"icon":229},"API Routes","/examples/api-routes","4.examples/api-routes","i-lucide-route",{"title":231,"path":232,"stem":233,"icon":234},"Auto Imports","/examples/auto-imports","4.examples/auto-imports","i-lucide-import",{"title":236,"path":237,"stem":238,"icon":239},"Cached Handler","/examples/cached-handler","4.examples/cached-handler","i-lucide-clock",{"title":241,"path":242,"stem":243,"icon":244},"Custom Error Handler","/examples/custom-error-handler","4.examples/custom-error-handler","i-lucide-alert-circle",{"title":38,"path":246,"stem":247,"icon":248},"/examples/database","4.examples/database","i-lucide-database",{"title":250,"path":251,"stem":252,"icon":253},"Elysia","/examples/elysia","4.examples/elysia","i-skill-icons-elysia-dark",{"title":255,"path":256,"stem":257,"icon":258},"Express","/examples/express","4.examples/express","i-simple-icons-express",{"title":260,"path":261,"stem":262,"icon":263},"Fastify","/examples/fastify","4.examples/fastify","i-simple-icons-fastify",{"title":265,"path":266,"stem":267,"icon":268},"Hello World","/examples/hello-world","4.examples/hello-world","i-lucide-sparkles",{"title":270,"path":271,"stem":272,"icon":273},"Hono","/examples/hono","4.examples/hono","i-logos-hono",{"title":275,"path":276,"stem":277,"icon":278},"Import Alias","/examples/import-alias","4.examples/import-alias","i-lucide-at-sign",{"title":280,"path":281,"stem":282,"icon":46},"Middleware","/examples/middleware","4.examples/middleware",{"title":284,"path":285,"stem":286,"icon":287},"Mono JSX","/examples/mono-jsx","4.examples/mono-jsx","i-lucide-brackets",{"title":289,"path":290,"stem":291,"icon":287},"Nano JSX","/examples/nano-jsx","4.examples/nano-jsx",{"title":48,"path":293,"stem":294,"icon":295},"/examples/plugins","4.examples/plugins","i-lucide-plug",{"title":297,"path":298,"stem":299,"icon":300},"Custom Renderer","/examples/renderer","4.examples/renderer","i-lucide-code",{"title":302,"path":303,"stem":304,"icon":305},"Runtime Config","/examples/runtime-config","4.examples/runtime-config","i-lucide-settings",{"title":307,"path":308,"stem":309,"icon":310},"Server Fetch","/examples/server-fetch","4.examples/server-fetch","i-lucide-arrow-right-left",{"title":312,"path":313,"stem":314,"icon":315},"Shiki","/examples/shiki","4.examples/shiki","i-lucide-highlighter",{"title":317,"path":318,"stem":319,"icon":320},"Virtual Routes","/examples/virtual-routes","4.examples/virtual-routes","i-lucide-box",{"title":322,"path":323,"stem":324,"icon":325},"Vite Nitro Plugin","/examples/vite-nitro-plugin","4.examples/vite-nitro-plugin","i-logos-vitejs",{"title":327,"path":328,"stem":329,"icon":330},"Vite RSC","/examples/vite-rsc","4.examples/vite-rsc","i-logos-react",{"title":332,"path":333,"stem":334,"icon":335},"Vite SSR HTML","/examples/vite-ssr-html","4.examples/vite-ssr-html","i-logos-html-5",{"title":337,"path":338,"stem":339,"icon":340},"SSR with Preact","/examples/vite-ssr-preact","4.examples/vite-ssr-preact","i-logos-preact",{"title":342,"path":343,"stem":344,"icon":330},"SSR with React","/examples/vite-ssr-react","4.examples/vite-ssr-react",{"title":346,"path":347,"stem":348,"icon":349},"SSR with SolidJS","/examples/vite-ssr-solid","4.examples/vite-ssr-solid","i-logos-solidjs-icon",{"title":351,"path":352,"stem":353,"icon":354},"SSR with TanStack Router","/examples/vite-ssr-tsr-react","4.examples/vite-ssr-tsr-react","i-simple-icons-tanstack",{"title":356,"path":357,"stem":358,"icon":354},"SSR with TanStack Start","/examples/vite-ssr-tss-react","4.examples/vite-ssr-tss-react",{"title":360,"path":361,"stem":362,"icon":363},"SSR with Vue Router","/examples/vite-ssr-vue-router","4.examples/vite-ssr-vue-router","i-logos-vue",{"title":365,"path":366,"stem":367,"icon":368},"Vite + tRPC","/examples/vite-trpc","4.examples/vite-trpc","i-simple-icons-trpc",{"title":370,"path":371,"stem":372,"icon":373},"WebSocket","/examples/websocket","4.examples/websocket","i-lucide-radio",{"title":375,"path":376,"stem":377,"children":378},"Blog","/blog","9.blog",[379,382],{"title":375,"path":376,"stem":380,"icon":381},"9.blog/index","i-lucide-file-text",{"title":383,"path":384,"stem":385,"icon":381},"Nitro v3 Beta is here!","/blog/v3-beta","9.blog/1.v3-beta",{"title":5,"path":387,"stem":388},"/","index",{"id":390,"title":383,"body":391,"description":1609,"extension":1610,"meta":1611,"navigation":1618,"path":384,"seo":1619,"stem":385,"__hash__":1620},"content/9.blog/1.v3-beta.md",{"type":392,"value":393,"toc":1587,"icon":381},"minimark",[394,399,411,426,465,473,477,502,505,520,526,530,538,627,634,664,680,684,687,709,723,729,742,749,810,817,821,828,926,930,968,971,1056,1059,1136,1139,1154,1158,1165,1182,1186,1195,1255,1258,1262,1265,1332,1334,1337,1345,1402,1404,1408,1414,1427,1430,1434,1437,1440,1442,1446,1453,1461,1470,1474,1478,1482,1489,1493,1496,1553,1559,1562,1565,1583],[395,396,398],"h2",{"id":397},"a-brief-history","A Brief History",[400,401,402,403,410],"p",{},"Nitro started as the server engine for ",[404,405,409],"a",{"href":406,"rel":407},"https://nuxt.com",[408],"nofollow","Nuxt 3",", designed to solve a specific problem: deployment-agnostic servers.\nOver time, Nitro grew beyond Nuxt. It became the foundation for many meta-frameworks and a toolkit for building standalone servers.",[400,412,413,414,419,420,425],{},"With Nitro v3, we took the opportunity to rethink the fundamentals. leaner APIs, Web standards, first-class ",[404,415,418],{"href":416,"rel":417},"https://rolldown.rs/",[408],"Rolldown"," and ",[404,421,424],{"href":422,"rel":423},"https://vite.dev/",[408],"Vite v8"," integration, and a better experience for both humans and agents (more on that later!)",[400,427,428,429,434,435,440,441,446,447,452,453,458,459,464],{},"Since we quietly announced v3 ",[404,430,433],{"href":431,"rel":432},"https://github.com/nitrojs/nitro/releases/tag/v3.0.1-alpha.0",[408],"alpha.0"," (11 Oct 2025) at the first ",[404,436,439],{"href":437,"rel":438},"https://viteconf.amsterdam/",[408],"Vite Conf",", Nitro v3 has been adopted by many users (",[404,442,445],{"href":443,"rel":444},"https://npmtrends.com/nitro-vs-nitro-nightly",[408],"~280k"," weekly downloads!) and refined through amazing contributions and feedback. including ",[404,448,451],{"href":449,"rel":450},"https://tanstack.com/start/latest/docs/framework/react/guide/hosting#nitro",[408],"Tanstack Start",", ",[404,454,457],{"href":455,"rel":456},"https://useworkflow.dev/docs/getting-started",[408],"Vercel Workflows",", and production apps like ",[404,460,463],{"href":461,"rel":462},"https://t3.chat/",[408],"T3Chat",".",[400,466,467,468,472],{},"A huge thanks to the VoidZero (Vite and Rolldown), Nuxt (",[404,469,471],{"href":470},"#nuxt-v5","v5 is coming!",") and TanStack Start teams and every contributor who helped bring Nitro v3 to this milestone. ❤️",[395,474,476],{"id":475},"why-build-servers","Why Build Servers?",[400,478,479,480,484,485,488,489,492,493,496,497,501],{},"We don't ship raw source files to the browser. We use build tools because they solve real problems: ",[481,482,483],"strong",{},"HMR"," for instant feedback, ",[481,486,487],{},"code splitting"," to load only what a route needs, ",[481,490,491],{},"tree shaking"," to eliminate dead code, and ",[481,494,495],{},"minification"," for smaller payloads. Tools like Webpack and then ",[404,498,500],{"href":422,"rel":499},[408],"Vite"," transformed frontend development from painful to productive.",[400,503,504],{},"But frontend apps don't exist in isolation, they need APIs, databases, authentication, real-time data. They need a server.",[400,506,507,508,511,512,515,516,519],{},"With the rise of serverless and edge computing, the server side now faces the same constraints the frontend solved years ago. ",[481,509,510],{},"Cold starts"," mean every millisecond of startup matters. ",[481,513,514],{},"Memory limits"," are strict — bloated dependencies can push you over. ",[481,517,518],{},"Bundle size"," directly impacts deploy speed and boot time. And your code needs to run everywhere: Node.js, Deno, Bun, Cloudflare Workers, Vercel, etc. Yet most server frameworks still ship unoptimized, unbundled code, assuming a long-running process where none of this matters.",[400,521,522,523],{},"Nitro brings the build-tool philosophy to the backend. The same great DX you expect from frontend tooling: HMR for fast iteration and optimized builds powered by Rolldown with tree-shaken production output that performs as close to bare-metal as possible. ",[481,524,525],{},"One codebase, any runtime, any platform.",[395,527,529],{"id":528},"first-class-vite-integration","⚡ First-Class Vite Integration",[400,531,532,533,537],{},"Nitro now has a native ",[404,534,500],{"href":535,"rel":536},"https://vite.dev",[408]," plugin to build full stack apps.",[539,540,545],"pre",{"className":541,"code":542,"filename":543,"language":544,"meta":5,"style":5},"language-ts shiki shiki-themes github-light github-dark github-dark","import { defineConfig } from \"vite\";\nimport { nitro } from \"nitro/vite\";\n\nexport default defineConfig({\n  plugins: [nitro()],\n});\n","vite.config.ts","ts",[546,547,548,571,586,593,609,621],"code",{"__ignoreMap":5},[549,550,553,557,561,564,568],"span",{"class":551,"line":552},"line",1,[549,554,556],{"class":555},"so5gQ","import",[549,558,560],{"class":559},"slsVL"," { defineConfig } ",[549,562,563],{"class":555},"from",[549,565,567],{"class":566},"sfrk1"," \"vite\"",[549,569,570],{"class":559},";\n",[549,572,574,576,579,581,584],{"class":551,"line":573},2,[549,575,556],{"class":555},[549,577,578],{"class":559}," { nitro } ",[549,580,563],{"class":555},[549,582,583],{"class":566}," \"nitro/vite\"",[549,585,570],{"class":559},[549,587,589],{"class":551,"line":588},3,[549,590,592],{"emptyLinePlaceholder":591},true,"\n",[549,594,596,599,602,606],{"class":551,"line":595},4,[549,597,598],{"class":555},"export",[549,600,601],{"class":555}," default",[549,603,605],{"class":604},"shcOC"," defineConfig",[549,607,608],{"class":559},"({\n",[549,610,612,615,618],{"class":551,"line":611},5,[549,613,614],{"class":559},"  plugins: [",[549,616,617],{"class":604},"nitro",[549,619,620],{"class":559},"()],\n",[549,622,624],{"class":551,"line":623},6,[549,625,626],{"class":559},"});\n",[400,628,629,630,633],{},"Adding ",[546,631,632],{},"nitro()"," to your Vite apps gives you:",[635,636,637,644,650],"ul",{},[638,639,640,643],"li",{},[481,641,642],{},"API routes"," via filesystem routing",[638,645,646,649],{},[481,647,648],{},"Server-side rendering"," integrated with your frontend build",[638,651,652,655,656,659,660,663],{},[481,653,654],{},"A production server"," — a single ",[546,657,658],{},"vite build"," produces an optimized ",[546,661,662],{},".output/"," folder with both frontend and backend, ready to deploy",[400,665,666,667,670,671,452,674,419,677,464],{},"This means you can add a full backend to any Vite project — See ",[404,668,669],{"href":220},"examples"," with ",[404,672,673],{"href":343},"React",[404,675,676],{"href":361},"Vue",[404,678,679],{"href":347},"Solid.js",[395,681,683],{"id":682},"performance-by-default-zero-bloat","🚀 Performance by Default, Zero Bloat",[400,685,686],{},"Nitro compiles your routes at build time. There is no runtime router — each route loads on demand. Only the code needed to handle a specific request is loaded and executed.",[400,688,689,690,693,694,697,698,703,704,464],{},"Minimal server bundle built with the ",[546,691,692],{},"standard"," preset is less than ",[546,695,696],{},"10kB",", can be served with ",[404,699,702],{"href":700,"rel":701},"https://srvx.h3.dev/",[408],"srvx"," at close to native speeds, and includes all the good features from ",[404,705,708],{"href":706,"rel":707},"https://h3.dev/",[408],"H3",[400,710,711,712,717,718,464],{},"We have also significantly reduced the number of dependencies, down to ",[404,713,716],{"href":714,"rel":715},"https://npmgraph.js.org/?q=nitro-nightly",[408],"less than 20"," from ",[404,719,722],{"href":720,"rel":721},"https://npmgraph.js.org/?q=nitropack",[408],"321 dependencies",[395,724,726,727],{"id":725},"️-new-identity-nitro","🖌️ New Identity: ",[546,728,617],{},[400,730,731,732,738,739,464],{},"Nitro v3 ships under a new NPM package: ",[404,733,736],{"href":734,"rel":735},"https://npmx.dev/package/nitro",[408],[546,737,617],{},", replacing the legacy ",[546,740,741],{},"nitropack",[400,743,744,745,748],{},"All imports now use clean ",[546,746,747],{},"nitro/*"," subpaths:",[539,750,752],{"className":541,"code":751,"language":544,"meta":5,"style":5},"import { defineNitroConfig } from \"nitro/config\";\nimport { defineHandler } from \"nitro\";\nimport { useStorage } from \"nitro/storage\";\nimport { useDatabase } from \"nitro/database\";\n",[546,753,754,768,782,796],{"__ignoreMap":5},[549,755,756,758,761,763,766],{"class":551,"line":552},[549,757,556],{"class":555},[549,759,760],{"class":559}," { defineNitroConfig } ",[549,762,563],{"class":555},[549,764,765],{"class":566}," \"nitro/config\"",[549,767,570],{"class":559},[549,769,770,772,775,777,780],{"class":551,"line":573},[549,771,556],{"class":555},[549,773,774],{"class":559}," { defineHandler } ",[549,776,563],{"class":555},[549,778,779],{"class":566}," \"nitro\"",[549,781,570],{"class":559},[549,783,784,786,789,791,794],{"class":551,"line":588},[549,785,556],{"class":555},[549,787,788],{"class":559}," { useStorage } ",[549,790,563],{"class":555},[549,792,793],{"class":566}," \"nitro/storage\"",[549,795,570],{"class":559},[549,797,798,800,803,805,808],{"class":551,"line":595},[549,799,556],{"class":555},[549,801,802],{"class":559}," { useDatabase } ",[549,804,563],{"class":555},[549,806,807],{"class":566}," \"nitro/database\"",[549,809,570],{"class":559},[400,811,812,813,816],{},"No more deep ",[546,814,815],{},"nitropack/runtime/*"," paths, plus, you can import nitro subpaths outside of builder useful for unit testing.",[395,818,820],{"id":819},"bring-your-own-framework","🔧 Bring Your Own Framework",[400,822,823,824,827],{},"Nitro v3 is not opinionated about your HTTP layer. You can use the built-in filesystem routing, or take full control with a ",[546,825,826],{},"server.ts"," entry file and bring any framework you prefer:",[539,829,831],{"className":541,"code":830,"filename":826,"language":544,"meta":5,"style":5},"import { Hono } from \"hono\";\n\nconst app = new Hono();\napp.get(\"/\", (c) => c.text(\"Hello from Hono!\"));\n\nexport default app;\n",[546,832,833,847,851,872,913,917],{"__ignoreMap":5},[549,834,835,837,840,842,845],{"class":551,"line":552},[549,836,556],{"class":555},[549,838,839],{"class":559}," { Hono } ",[549,841,563],{"class":555},[549,843,844],{"class":566}," \"hono\"",[549,846,570],{"class":559},[549,848,849],{"class":551,"line":573},[549,850,592],{"emptyLinePlaceholder":591},[549,852,853,856,860,863,866,869],{"class":551,"line":588},[549,854,855],{"class":555},"const",[549,857,859],{"class":858},"suiK_"," app",[549,861,862],{"class":555}," =",[549,864,865],{"class":555}," new",[549,867,868],{"class":604}," Hono",[549,870,871],{"class":559},"();\n",[549,873,874,877,880,883,886,889,893,896,899,902,905,907,910],{"class":551,"line":595},[549,875,876],{"class":559},"app.",[549,878,879],{"class":604},"get",[549,881,882],{"class":559},"(",[549,884,885],{"class":566},"\"/\"",[549,887,888],{"class":559},", (",[549,890,892],{"class":891},"sQHwn","c",[549,894,895],{"class":559},") ",[549,897,898],{"class":555},"=>",[549,900,901],{"class":559}," c.",[549,903,904],{"class":604},"text",[549,906,882],{"class":559},[549,908,909],{"class":566},"\"Hello from Hono!\"",[549,911,912],{"class":559},"));\n",[549,914,915],{"class":551,"line":611},[549,916,592],{"emptyLinePlaceholder":591},[549,918,919,921,923],{"class":551,"line":623},[549,920,598],{"class":555},[549,922,601],{"class":555},[549,924,925],{"class":559}," app;\n",[395,927,929],{"id":928},"h3-v2-with-web-standards","🌐 H3 (v2) with Web Standards",[400,931,932,933,938,939,452,946,452,953,960,961,464],{},"Nitro v3 upgrades to ",[404,934,937],{"href":935,"rel":936},"https://h3.dev",[408],"H3 v2",", which has been fully rewritten around web standard primitives — ",[404,940,943],{"href":941,"rel":942},"https://developer.mozilla.org/en-US/docs/Web/API/Request",[408],[546,944,945],{},"Request",[404,947,950],{"href":948,"rel":949},"https://developer.mozilla.org/en-US/docs/Web/API/Response",[408],[546,951,952],{},"Response",[404,954,957],{"href":955,"rel":956},"https://developer.mozilla.org/en-US/docs/Web/API/Headers",[408],[546,958,959],{},"Headers",", and ",[404,962,965],{"href":963,"rel":964},"https://developer.mozilla.org/en-US/docs/Web/API/URL",[408],[546,966,967],{},"URL",[400,969,970],{},"The result is cleaner, more portable server code:",[539,972,975],{"className":541,"code":973,"filename":974,"language":544,"meta":5,"style":5},"import { defineHandler } from \"nitro\";\n\nexport default defineHandler((event) => {\n  const ua = event.req.headers.get(\"user-agent\");\n  return { message: \"Hello Nitro v3!\", ua };\n});\n","routes/hello.ts",[546,976,977,989,993,1015,1038,1052],{"__ignoreMap":5},[549,978,979,981,983,985,987],{"class":551,"line":552},[549,980,556],{"class":555},[549,982,774],{"class":559},[549,984,563],{"class":555},[549,986,779],{"class":566},[549,988,570],{"class":559},[549,990,991],{"class":551,"line":573},[549,992,592],{"emptyLinePlaceholder":591},[549,994,995,997,999,1002,1005,1008,1010,1012],{"class":551,"line":588},[549,996,598],{"class":555},[549,998,601],{"class":555},[549,1000,1001],{"class":604}," defineHandler",[549,1003,1004],{"class":559},"((",[549,1006,1007],{"class":891},"event",[549,1009,895],{"class":559},[549,1011,898],{"class":555},[549,1013,1014],{"class":559}," {\n",[549,1016,1017,1020,1023,1025,1028,1030,1032,1035],{"class":551,"line":595},[549,1018,1019],{"class":555},"  const",[549,1021,1022],{"class":858}," ua",[549,1024,862],{"class":555},[549,1026,1027],{"class":559}," event.req.headers.",[549,1029,879],{"class":604},[549,1031,882],{"class":559},[549,1033,1034],{"class":566},"\"user-agent\"",[549,1036,1037],{"class":559},");\n",[549,1039,1040,1043,1046,1049],{"class":551,"line":611},[549,1041,1042],{"class":555},"  return",[549,1044,1045],{"class":559}," { message: ",[549,1047,1048],{"class":566},"\"Hello Nitro v3!\"",[549,1050,1051],{"class":559},", ua };\n",[549,1053,1054],{"class":551,"line":623},[549,1055,626],{"class":559},[400,1057,1058],{},"Reading request bodies uses native APIs:",[539,1060,1063],{"className":541,"code":1061,"filename":1062,"language":544,"meta":5,"style":5},"import { defineHandler } from \"nitro\";\n\nexport default defineHandler(async (event) => {\n  const body = await event.req.json();\n  return { received: body };\n});\n","routes/submit.ts",[546,1064,1065,1077,1081,1105,1125,1132],{"__ignoreMap":5},[549,1066,1067,1069,1071,1073,1075],{"class":551,"line":552},[549,1068,556],{"class":555},[549,1070,774],{"class":559},[549,1072,563],{"class":555},[549,1074,779],{"class":566},[549,1076,570],{"class":559},[549,1078,1079],{"class":551,"line":573},[549,1080,592],{"emptyLinePlaceholder":591},[549,1082,1083,1085,1087,1089,1091,1094,1097,1099,1101,1103],{"class":551,"line":588},[549,1084,598],{"class":555},[549,1086,601],{"class":555},[549,1088,1001],{"class":604},[549,1090,882],{"class":559},[549,1092,1093],{"class":555},"async",[549,1095,1096],{"class":559}," (",[549,1098,1007],{"class":891},[549,1100,895],{"class":559},[549,1102,898],{"class":555},[549,1104,1014],{"class":559},[549,1106,1107,1109,1112,1114,1117,1120,1123],{"class":551,"line":595},[549,1108,1019],{"class":555},[549,1110,1111],{"class":858}," body",[549,1113,862],{"class":555},[549,1115,1116],{"class":555}," await",[549,1118,1119],{"class":559}," event.req.",[549,1121,1122],{"class":604},"json",[549,1124,871],{"class":559},[549,1126,1127,1129],{"class":551,"line":611},[549,1128,1042],{"class":555},[549,1130,1131],{"class":559}," { received: body };\n",[549,1133,1134],{"class":551,"line":623},[549,1135,626],{"class":559},[400,1137,1138],{},"No wrappers, no abstractions for things the platform already provides. If you know the Web API, you know H3 v2.",[400,1140,1141,452,1145,452,1149,1153],{},[404,1142,250],{"href":1143,"rel":1144},"https://elysiajs.com/",[408],[404,1146,1148],{"href":935,"rel":1147},[408],"h3",[404,1150,270],{"href":1151,"rel":1152},"https://hono.dev",[408]," — anything that speaks web standards works with Nitro.",[395,1155,1157],{"id":1156},"️-built-in-primitives","🗄️ Built-in Primitives",[400,1159,1160,1161,1164],{},"Nitro ships with powerful but small and ",[481,1162,1163],{},"fully opt-in"," agnostic server primitives that work across every runtime.",[1166,1167,1168],"note",{},[400,1169,1170,1171,419,1176,1181],{},"When not used, nothing extra will be added to the server bundle. You can still use native platform primitives alongside Nitro's built-in ones.\nWe are also bringing first class emulation for platform-specific primitives for dev See ",[404,1172,1175],{"href":1173,"rel":1174},"https://github.com/unjs/env-runner",[408],"env-runner",[404,1177,1180],{"href":1178,"rel":1179},"https://github.com/nitrojs/nitro/pull/4088",[408],"nitrojs/nitro#4088"," for more details.",[1148,1183,1185],{"id":1184},"storage","Storage",[400,1187,1188,1189,1194],{},"A runtime-agnostic key-value layer with 20+ drivers — FS, Redis, S3, Cloudflare KV, Vercel Blob and ",[404,1190,1193],{"href":1191,"rel":1192},"https://unstorage.unjs.io/drivers",[408],"more",". Attach drivers to namespaces and swap them without changing your application code.",[539,1196,1198],{"className":541,"code":1197,"language":544,"meta":5,"style":5},"import { useStorage } from \"nitro/storage\";\n\nconst storage = useStorage();\nawait storage.setItem(\"user:1\", { name: \"Nitro\" });\n",[546,1199,1200,1212,1216,1230],{"__ignoreMap":5},[549,1201,1202,1204,1206,1208,1210],{"class":551,"line":552},[549,1203,556],{"class":555},[549,1205,788],{"class":559},[549,1207,563],{"class":555},[549,1209,793],{"class":566},[549,1211,570],{"class":559},[549,1213,1214],{"class":551,"line":573},[549,1215,592],{"emptyLinePlaceholder":591},[549,1217,1218,1220,1223,1225,1228],{"class":551,"line":588},[549,1219,855],{"class":555},[549,1221,1222],{"class":858}," storage",[549,1224,862],{"class":555},[549,1226,1227],{"class":604}," useStorage",[549,1229,871],{"class":559},[549,1231,1232,1235,1238,1241,1243,1246,1249,1252],{"class":551,"line":595},[549,1233,1234],{"class":555},"await",[549,1236,1237],{"class":559}," storage.",[549,1239,1240],{"class":604},"setItem",[549,1242,882],{"class":559},[549,1244,1245],{"class":566},"\"user:1\"",[549,1247,1248],{"class":559},", { name: ",[549,1250,1251],{"class":566},"\"Nitro\"",[549,1253,1254],{"class":559}," });\n",[1256,1257],"read-more",{"to":69},[1148,1259,1261],{"id":1260},"caching","Caching",[400,1263,1264],{},"Cache server routes and functions, backed by the storage layer. Supports stale-while-revalidate, TTL, and custom cache keys out of the box.",[539,1266,1268],{"className":541,"code":1267,"language":544,"meta":5,"style":5},"import { defineCachedHandler } from \"nitro/cache\";\n\nexport default defineCachedHandler((event) => {\n  return \"I am cached for an hour\";\n}, { maxAge: 60 * 60 });\n",[546,1269,1270,1284,1288,1307,1316],{"__ignoreMap":5},[549,1271,1272,1274,1277,1279,1282],{"class":551,"line":552},[549,1273,556],{"class":555},[549,1275,1276],{"class":559}," { defineCachedHandler } ",[549,1278,563],{"class":555},[549,1280,1281],{"class":566}," \"nitro/cache\"",[549,1283,570],{"class":559},[549,1285,1286],{"class":551,"line":573},[549,1287,592],{"emptyLinePlaceholder":591},[549,1289,1290,1292,1294,1297,1299,1301,1303,1305],{"class":551,"line":588},[549,1291,598],{"class":555},[549,1293,601],{"class":555},[549,1295,1296],{"class":604}," defineCachedHandler",[549,1298,1004],{"class":559},[549,1300,1007],{"class":891},[549,1302,895],{"class":559},[549,1304,898],{"class":555},[549,1306,1014],{"class":559},[549,1308,1309,1311,1314],{"class":551,"line":595},[549,1310,1042],{"class":555},[549,1312,1313],{"class":566}," \"I am cached for an hour\"",[549,1315,570],{"class":559},[549,1317,1318,1321,1324,1327,1330],{"class":551,"line":611},[549,1319,1320],{"class":559},"}, { maxAge: ",[549,1322,1323],{"class":858},"60",[549,1325,1326],{"class":555}," *",[549,1328,1329],{"class":858}," 60",[549,1331,1254],{"class":559},[1256,1333],{"to":64},[1148,1335,38],{"id":1336},"database",[400,1338,1339,1340,1344],{},"A built-in SQL database that defaults to SQLite for development and can connect to Postgres, MySQL, and ",[404,1341,1193],{"href":1342,"rel":1343},"https://db0.unjs.io/connectors",[408]," using the same API.",[539,1346,1348],{"className":541,"code":1347,"language":544,"meta":5,"style":5},"import { useDatabase } from \"nitro/database\";\n\nconst db = useDatabase();\nconst users = await db.sql`SELECT * FROM users`;\n",[546,1349,1350,1362,1366,1380],{"__ignoreMap":5},[549,1351,1352,1354,1356,1358,1360],{"class":551,"line":552},[549,1353,556],{"class":555},[549,1355,802],{"class":559},[549,1357,563],{"class":555},[549,1359,807],{"class":566},[549,1361,570],{"class":559},[549,1363,1364],{"class":551,"line":573},[549,1365,592],{"emptyLinePlaceholder":591},[549,1367,1368,1370,1373,1375,1378],{"class":551,"line":588},[549,1369,855],{"class":555},[549,1371,1372],{"class":858}," db",[549,1374,862],{"class":555},[549,1376,1377],{"class":604}," useDatabase",[549,1379,871],{"class":559},[549,1381,1382,1384,1387,1389,1391,1394,1397,1400],{"class":551,"line":595},[549,1383,855],{"class":555},[549,1385,1386],{"class":858}," users",[549,1388,862],{"class":555},[549,1390,1116],{"class":555},[549,1392,1393],{"class":559}," db.",[549,1395,1396],{"class":604},"sql",[549,1398,1399],{"class":566},"`SELECT * FROM users`",[549,1401,570],{"class":559},[1256,1403],{"to":39},[395,1405,1407],{"id":1406},"deploy-anywhere","🌍 Deploy Anywhere",[400,1409,1410,1411,1413],{},"Build your server into an optimized ",[546,1412,662],{}," folder compatible with:",[635,1415,1416,1421],{},[638,1417,1418,1420],{},[481,1419,91],{},": Node.js, Bun, Deno",[638,1422,1423,1426],{},[481,1424,1425],{},"Platforms",": Cloudflare Workers, Netlify, Vercel, AWS Lambda, Azure, Firebase, Deno Deploy, and more",[400,1428,1429],{},"No configuration needed — Nitro auto-detects your deployment target. Take advantage of platform features like ISR, SWR, and edge rendering without changing a single line of code.",[395,1431,1433],{"id":1432},"server-side-rendering","🎨 Server-Side Rendering",[400,1435,1436],{},"Render HTML with your favorite templating engine, or use component libraries like React, Vue, or Svelte directly on the server. Go full universal rendering with client-side hydration.",[400,1438,1439],{},"Nitro provides the foundation and a progressive approach — start with API routes, add rendering when you need it, and scale to full SSR at your own pace.",[1256,1441],{"to":19},[395,1443,1445],{"id":1444},"nuxt-v5","🟢 Nuxt v5",[400,1447,1448,1449,464],{},"Nitro v3 will power the next major version of ",[404,1450,1452],{"href":406,"rel":1451},[408],"Nuxt",[400,1454,1455,1460],{},[404,1456,1459],{"href":1457,"rel":1458},"https://nuxt.com/blog/roadmap-v4",[408],"Nuxt v5"," will ship with Nitro v3 and H3 v2 at its core, bringing web-standard request handling, Rolldown-powered builds, and the Vite Environment API to the Nuxt ecosystem.",[400,1462,1463,1464,1469],{},"If you're a Nuxt user, you can already start preparing by familiarizing yourself with  Nitro v3's new APIs, which will carry directly into Nuxt 5, and you can ",[404,1465,1468],{"href":1466,"rel":1467},"https://github.com/nuxt/nuxt/discussions/34504",[408],"follow progress"," on adopting Nitro v3 in Nuxt",[395,1471,1473],{"id":1472},"getting-started","🏁 Getting Started",[1148,1475,1477],{"id":1476},"create-a-new-project","Create a New Project",[1479,1480],"pm-x",{"command":1481},"create-nitro-app",[400,1483,1484,1485,1488],{},"See the ",[404,1486,1487],{"href":14},"quick start guide"," for a full step-by-step walkthrough.",[395,1490,1492],{"id":1491},"migrating-from-v2","🔄 Migrating from v2",[400,1494,1495],{},"Nitro v3 introduces intentional breaking changes to set a cleaner foundation. Here are the key ones:",[635,1497,1498,1506,1513,1522,1530,1537,1543],{},[638,1499,1500,1502,1503,1505],{},[546,1501,741],{}," → ",[546,1504,617],{}," (package rename)",[638,1507,1508,1502,1510,1512],{},[546,1509,815],{},[546,1511,747],{}," (clean subpath imports)",[638,1514,1515,1502,1518,1521],{},[546,1516,1517],{},"eventHandler",[546,1519,1520],{},"defineHandler"," (H3 v2)",[638,1523,1524,1502,1527,1521],{},[546,1525,1526],{},"createError",[546,1528,1529],{},"HTTPError",[638,1531,1532,1533,1536],{},"Web standard ",[546,1534,1535],{},"event.req"," headers and body APIs",[638,1538,1539,1540],{},"Node.js minimum version: ",[481,1541,1542],{},"20",[638,1544,1545,1546,1502,1549,1552],{},"Preset renames and consolidation (e.g., ",[546,1547,1548],{},"cloudflare",[546,1550,1551],{},"cloudflare_module",")",[400,1554,1555,1556,464],{},"For a complete list, see the ",[404,1557,1558],{"href":74},"migration guide",[1560,1561],"hr",{},[400,1563,1564],{},"Thank you to everyone who has contributed to Nitro over the years. We can't wait to see what you build with the new Nitro! ❤️",[635,1566,1567,1575],{},[638,1568,1569,1574],{},[404,1570,1573],{"href":1571,"rel":1572},"https://github.com/nitrojs/nitro",[408],"GitHub"," — Issues and discussions",[638,1576,1577,1582],{},[404,1578,1581],{"href":1579,"rel":1580},"https://discord.nitro.build",[408],"Discord"," — Chat with the community",[1584,1585,1586],"style",{},"html pre.shiki code .so5gQ, html code.shiki .so5gQ{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F97583}html pre.shiki code .slsVL, html code.shiki .slsVL{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .sfrk1, html code.shiki .sfrk1{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}html pre.shiki code .shcOC, html code.shiki .shcOC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#B392F0}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}html pre.shiki code .sQHwn, html code.shiki .sQHwn{--shiki-light:#E36209;--shiki-default:#FFAB70;--shiki-dark:#FFAB70}",{"title":5,"searchDepth":573,"depth":573,"links":1588},[1589,1590,1591,1592,1593,1595,1596,1597,1602,1603,1604,1605,1608],{"id":397,"depth":573,"text":398},{"id":475,"depth":573,"text":476},{"id":528,"depth":573,"text":529},{"id":682,"depth":573,"text":683},{"id":725,"depth":573,"text":1594},"🖌️ New Identity: nitro",{"id":819,"depth":573,"text":820},{"id":928,"depth":573,"text":929},{"id":1156,"depth":573,"text":1157,"children":1598},[1599,1600,1601],{"id":1184,"depth":588,"text":1185},{"id":1260,"depth":588,"text":1261},{"id":1336,"depth":588,"text":38},{"id":1406,"depth":573,"text":1407},{"id":1432,"depth":573,"text":1433},{"id":1444,"depth":573,"text":1445},{"id":1472,"depth":573,"text":1473,"children":1606},[1607],{"id":1476,"depth":588,"text":1477},{"id":1491,"depth":573,"text":1492},"Nitro v3 is now available as a public beta — a ground-up evolution of the server framework, built around web standards, Rolldown, Vite v8, and the same deploy-anywhere promise.","md",{"date":1612,"category":1613,"authors":1614,"icon":381},"2026-03-11","release",[1615],{"name":1616,"github":1617},"Pooya Parsa","pi0",{"icon":381},{"title":383,"description":1609},"Hb62Zadr-PaU06SzG7J4BDpm3lmOnHwUwKY8MosspyU",1775151290478]