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