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