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