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