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