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