[{"data":1,"prerenderedAt":833},["ShallowReactive",2],{"navigation":3,"examples-nav":228,"-examples-elysia":357,"-examples-elysia-surround":828},[4,83,212,218,225],{"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],{"title":219,"path":220,"stem":221,"icon":224},"i-lucide-folder-code",{"title":5,"path":226,"stem":227},"/","index",[229,234,239,243,247,250,255,259,263,267,271,275,279,284,288,291,295,299,303,308,312,317,321,325,329,333,337,341,345,349,353],{"title":230,"description":231,"category":232,"path":233},"API Routes","File-based API routing with HTTP method support and dynamic parameters.","features","/examples/api-routes/readme",{"title":235,"description":236,"category":237,"path":238},"Auto Imports","Automatic imports for utilities and composables.","config","/examples/auto-imports/readme",{"title":240,"description":241,"category":232,"path":242},"Cached Handler","Cache route responses with configurable bypass logic.","/examples/cached-handler/readme",{"title":244,"description":245,"category":232,"path":246},"Custom Error Handler","Customize error responses with a global error handler.","/examples/custom-error-handler/readme",{"title":38,"description":248,"category":232,"path":249},"Built-in database support with SQL template literals.","/examples/database/readme",{"title":251,"description":252,"category":253,"path":254},"Elysia","Integrate Elysia with Nitro using the server entry.","backend frameworks","/examples/elysia/readme",{"title":256,"description":257,"category":253,"path":258},"Express","Integrate Express with Nitro using the server entry.","/examples/express/readme",{"title":260,"description":261,"category":253,"path":262},"Fastify","Integrate Fastify with Nitro using the server entry.","/examples/fastify/readme",{"title":264,"description":265,"category":232,"path":266},"Hello World","Minimal Nitro server using the web standard fetch handler.","/examples/hello-world/readme",{"title":268,"description":269,"category":253,"path":270},"Hono","Integrate Hono with Nitro using the server entry.","/examples/hono/readme",{"title":272,"description":273,"category":237,"path":274},"Import Alias","Custom import aliases for cleaner module paths.","/examples/import-alias/readme",{"title":276,"description":277,"category":232,"path":278},"Middleware","Request middleware for authentication, logging, and request modification.","/examples/middleware/readme",{"title":280,"description":281,"category":282,"path":283},"Mono JSX","Server-side JSX rendering in Nitro with mono-jsx.","server side rendering","/examples/mono-jsx/readme",{"title":285,"description":286,"category":282,"path":287},"Nano JSX","Server-side JSX rendering in Nitro with nano-jsx.","/examples/nano-jsx/readme",{"title":48,"description":289,"category":232,"path":290},"Extend Nitro with custom plugins for hooks and lifecycle events.","/examples/plugins/readme",{"title":292,"description":293,"category":282,"path":294},"Custom Renderer","Build a custom HTML renderer in Nitro with server-side data fetching.","/examples/renderer/readme",{"title":296,"description":297,"category":237,"path":298},"Runtime Config","Environment-aware configuration with runtime access.","/examples/runtime-config/readme",{"title":300,"description":301,"category":232,"path":302},"Server Fetch","Internal server-to-server requests without network overhead.","/examples/server-fetch/readme",{"title":304,"description":305,"category":306,"path":307},"Shiki","Server-side syntax highlighting in Nitro with Shiki.","integrations","/examples/shiki/readme",{"title":309,"description":310,"category":232,"path":311},"Virtual Routes","Define routes programmatically using Nitro's virtual module system.","/examples/virtual-routes/readme",{"title":313,"description":314,"category":315,"path":316},"Vite Nitro Plugin","Use Nitro as a Vite plugin for programmatic configuration.","vite","/examples/vite-nitro-plugin/readme",{"title":318,"description":319,"category":315,"path":320},"Vite RSC","React Server Components with Vite and Nitro.","/examples/vite-rsc/readme",{"title":322,"description":323,"category":282,"path":324},"Vite SSR HTML","Server-side rendering with vanilla HTML, Vite, and Nitro.","/examples/vite-ssr-html/readme",{"title":326,"description":327,"category":282,"path":328},"SSR with Preact","Server-side rendering with Preact in Nitro using Vite.","/examples/vite-ssr-preact/readme",{"title":330,"description":331,"category":282,"path":332},"SSR with React","Server-side rendering with React in Nitro using Vite.","/examples/vite-ssr-react/readme",{"title":334,"description":335,"category":282,"path":336},"SSR with SolidJS","Server-side rendering with SolidJS in Nitro using Vite.","/examples/vite-ssr-solid/readme",{"title":338,"description":339,"category":282,"path":340},"SSR with TanStack Router","Client-side routing with TanStack Router in Nitro using Vite.","/examples/vite-ssr-tsr-react/readme",{"title":342,"description":343,"category":282,"path":344},"SSR with TanStack Start","Full-stack React with TanStack Start in Nitro using Vite.","/examples/vite-ssr-tss-react/readme",{"title":346,"description":347,"category":282,"path":348},"SSR with Vue Router","Server-side rendering with Vue Router in Nitro using Vite.","/examples/vite-ssr-vue-router/readme",{"title":350,"description":351,"category":315,"path":352},"Vite + tRPC","End-to-end typesafe APIs with tRPC in Nitro using Vite.","/examples/vite-trpc/readme",{"title":354,"description":355,"category":232,"path":356},"WebSocket","Real-time bidirectional communication with WebSocket support.","/examples/websocket/readme",{"id":358,"title":251,"body":359,"category":253,"description":252,"extension":821,"icon":822,"meta":823,"navigation":824,"path":254,"seo":825,"stem":826,"__hash__":827},"examples/examples/elysia/README.md",{"type":360,"value":361,"toc":817},"minimark",[362,702,706,778,785,792,796,813],[363,364,367,423,533,624,648],"code-tree",{":expand-all":365,"default-value":366,"expand-all":5},"true","server.ts",[368,369,374],"pre",{"className":370,"code":371,"filename":372,"language":373,"meta":5,"style":5},"language-ts shiki shiki-themes github-light github-dark github-dark","import { defineConfig } from \"nitro\";\n\nexport default defineConfig({});\n","nitro.config.ts","ts",[375,376,377,400,407],"code",{"__ignoreMap":5},[378,379,382,386,390,393,397],"span",{"class":380,"line":381},"line",1,[378,383,385],{"class":384},"so5gQ","import",[378,387,389],{"class":388},"slsVL"," { defineConfig } ",[378,391,392],{"class":384},"from",[378,394,396],{"class":395},"sfrk1"," \"nitro\"",[378,398,399],{"class":388},";\n",[378,401,403],{"class":380,"line":402},2,[378,404,406],{"emptyLinePlaceholder":405},true,"\n",[378,408,410,413,416,420],{"class":380,"line":409},3,[378,411,412],{"class":384},"export",[378,414,415],{"class":384}," default",[378,417,419],{"class":418},"shcOC"," defineConfig",[378,421,422],{"class":388},"({});\n",[368,424,429],{"className":425,"code":426,"filename":427,"language":428,"meta":5,"style":5},"language-json shiki shiki-themes github-light github-dark github-dark","{\n  \"type\": \"module\",\n  \"scripts\": {\n    \"build\": \"nitro build\",\n    \"dev\": \"nitro dev\"\n  },\n  \"devDependencies\": {\n    \"elysia\": \"^1.4.22\",\n    \"nitro\": \"latest\"\n  }\n}\n","package.json","json",[375,430,431,436,451,459,472,483,489,497,510,521,527],{"__ignoreMap":5},[378,432,433],{"class":380,"line":381},[378,434,435],{"class":388},"{\n",[378,437,438,442,445,448],{"class":380,"line":402},[378,439,441],{"class":440},"suiK_","  \"type\"",[378,443,444],{"class":388},": ",[378,446,447],{"class":395},"\"module\"",[378,449,450],{"class":388},",\n",[378,452,453,456],{"class":380,"line":409},[378,454,455],{"class":440},"  \"scripts\"",[378,457,458],{"class":388},": {\n",[378,460,462,465,467,470],{"class":380,"line":461},4,[378,463,464],{"class":440},"    \"build\"",[378,466,444],{"class":388},[378,468,469],{"class":395},"\"nitro build\"",[378,471,450],{"class":388},[378,473,475,478,480],{"class":380,"line":474},5,[378,476,477],{"class":440},"    \"dev\"",[378,479,444],{"class":388},[378,481,482],{"class":395},"\"nitro dev\"\n",[378,484,486],{"class":380,"line":485},6,[378,487,488],{"class":388},"  },\n",[378,490,492,495],{"class":380,"line":491},7,[378,493,494],{"class":440},"  \"devDependencies\"",[378,496,458],{"class":388},[378,498,500,503,505,508],{"class":380,"line":499},8,[378,501,502],{"class":440},"    \"elysia\"",[378,504,444],{"class":388},[378,506,507],{"class":395},"\"^1.4.22\"",[378,509,450],{"class":388},[378,511,513,516,518],{"class":380,"line":512},9,[378,514,515],{"class":440},"    \"nitro\"",[378,517,444],{"class":388},[378,519,520],{"class":395},"\"latest\"\n",[378,522,524],{"class":380,"line":523},10,[378,525,526],{"class":388},"  }\n",[378,528,530],{"class":380,"line":529},11,[378,531,532],{"class":388},"}\n",[368,534,536],{"className":370,"code":535,"filename":366,"language":373,"meta":5,"style":5},"import { Elysia } from \"elysia\";\n\nconst app = new Elysia();\n\napp.get(\"/\", () => \"Hello, Elysia with Nitro!\");\n\nexport default app.compile();\n",[375,537,538,552,556,576,580,606,610],{"__ignoreMap":5},[378,539,540,542,545,547,550],{"class":380,"line":381},[378,541,385],{"class":384},[378,543,544],{"class":388}," { Elysia } ",[378,546,392],{"class":384},[378,548,549],{"class":395}," \"elysia\"",[378,551,399],{"class":388},[378,553,554],{"class":380,"line":402},[378,555,406],{"emptyLinePlaceholder":405},[378,557,558,561,564,567,570,573],{"class":380,"line":409},[378,559,560],{"class":384},"const",[378,562,563],{"class":440}," app",[378,565,566],{"class":384}," =",[378,568,569],{"class":384}," new",[378,571,572],{"class":418}," Elysia",[378,574,575],{"class":388},"();\n",[378,577,578],{"class":380,"line":461},[378,579,406],{"emptyLinePlaceholder":405},[378,581,582,585,588,591,594,597,600,603],{"class":380,"line":474},[378,583,584],{"class":388},"app.",[378,586,587],{"class":418},"get",[378,589,590],{"class":388},"(",[378,592,593],{"class":395},"\"/\"",[378,595,596],{"class":388},", () ",[378,598,599],{"class":384},"=>",[378,601,602],{"class":395}," \"Hello, Elysia with Nitro!\"",[378,604,605],{"class":388},");\n",[378,607,608],{"class":380,"line":485},[378,609,406],{"emptyLinePlaceholder":405},[378,611,612,614,616,619,622],{"class":380,"line":491},[378,613,412],{"class":384},[378,615,415],{"class":384},[378,617,618],{"class":388}," app.",[378,620,621],{"class":418},"compile",[378,623,575],{"class":388},[368,625,628],{"className":425,"code":626,"filename":627,"language":428,"meta":5,"style":5},"{\n  \"extends\": \"nitro/tsconfig\"\n}\n","tsconfig.json",[375,629,630,634,644],{"__ignoreMap":5},[378,631,632],{"class":380,"line":381},[378,633,435],{"class":388},[378,635,636,639,641],{"class":380,"line":402},[378,637,638],{"class":440},"  \"extends\"",[378,640,444],{"class":388},[378,642,643],{"class":395},"\"nitro/tsconfig\"\n",[378,645,646],{"class":380,"line":409},[378,647,532],{"class":388},[368,649,652],{"className":370,"code":650,"filename":651,"language":373,"meta":5,"style":5},"import { defineConfig } from \"vite\";\nimport { nitro } from \"nitro/vite\";\n\nexport default defineConfig({ plugins: [nitro()] });\n","vite.config.ts",[375,653,654,667,681,685],{"__ignoreMap":5},[378,655,656,658,660,662,665],{"class":380,"line":381},[378,657,385],{"class":384},[378,659,389],{"class":388},[378,661,392],{"class":384},[378,663,664],{"class":395}," \"vite\"",[378,666,399],{"class":388},[378,668,669,671,674,676,679],{"class":380,"line":402},[378,670,385],{"class":384},[378,672,673],{"class":388}," { nitro } ",[378,675,392],{"class":384},[378,677,678],{"class":395}," \"nitro/vite\"",[378,680,399],{"class":388},[378,682,683],{"class":380,"line":409},[378,684,406],{"emptyLinePlaceholder":405},[378,686,687,689,691,693,696,699],{"class":380,"line":461},[378,688,412],{"class":384},[378,690,415],{"class":384},[378,692,419],{"class":418},[378,694,695],{"class":388},"({ plugins: [",[378,697,698],{"class":418},"nitro",[378,700,701],{"class":388},"()] });\n",[703,704,58],"h2",{"id":705},"server-entry",[368,707,708],{"className":370,"code":535,"filename":366,"language":373,"meta":5,"style":5},[375,709,710,722,726,740,744,762,766],{"__ignoreMap":5},[378,711,712,714,716,718,720],{"class":380,"line":381},[378,713,385],{"class":384},[378,715,544],{"class":388},[378,717,392],{"class":384},[378,719,549],{"class":395},[378,721,399],{"class":388},[378,723,724],{"class":380,"line":402},[378,725,406],{"emptyLinePlaceholder":405},[378,727,728,730,732,734,736,738],{"class":380,"line":409},[378,729,560],{"class":384},[378,731,563],{"class":440},[378,733,566],{"class":384},[378,735,569],{"class":384},[378,737,572],{"class":418},[378,739,575],{"class":388},[378,741,742],{"class":380,"line":461},[378,743,406],{"emptyLinePlaceholder":405},[378,745,746,748,750,752,754,756,758,760],{"class":380,"line":474},[378,747,584],{"class":388},[378,749,587],{"class":418},[378,751,590],{"class":388},[378,753,593],{"class":395},[378,755,596],{"class":388},[378,757,599],{"class":384},[378,759,602],{"class":395},[378,761,605],{"class":388},[378,763,764],{"class":380,"line":485},[378,765,406],{"emptyLinePlaceholder":405},[378,767,768,770,772,774,776],{"class":380,"line":491},[378,769,412],{"class":384},[378,771,415],{"class":384},[378,773,618],{"class":388},[378,775,621],{"class":418},[378,777,575],{"class":388},[779,780,781,782,784],"p",{},"Nitro auto-detects ",[375,783,366],{}," in your project root and uses it as the server entry. The Elysia app handles all incoming requests, giving you full control over routing and middleware.",[779,786,787,788,791],{},"Call ",[375,789,790],{},"app.compile()"," before exporting to optimize the router for production.",[703,793,795],{"id":794},"learn-more","Learn More",[797,798,799,805],"ul",{},[800,801,802],"li",{},[803,804,58],"a",{"href":59},[800,806,807],{},[803,808,812],{"href":809,"rel":810},"https://elysiajs.com/",[811],"nofollow","Elysia Documentation",[814,815,816],"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}",{"title":5,"searchDepth":402,"depth":402,"links":818},[819,820],{"id":705,"depth":402,"text":58},{"id":794,"depth":402,"text":795},"md","i-skill-icons-elysia-dark",{"automd":405},{},{"title":251,"description":252},"examples/elysia/README","2NPHGRvZ9UR7jYnP3G1Mgfe_InFNgSW_efY8OC1OrNA",[829,830],null,{"title":256,"path":831,"stem":832,"description":257,"children":-1},"/examples/express","examples/express/README",1773176191505]