Elysia provides a runtime adapter system that lets you run the same application code across multiple JavaScript runtimes. The Node adapter bridges Elysia’s Web Standard internals to Node.js HTTP, so you can deploy to any Node.js-compatible environment without rewriting your application.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/elysiajs/documentation/llms.txt
Use this file to discover all available pages before exploring further.
Apply the adapter to your Elysia instance
Import
node from @elysia/node and pass it as the adapter option when constructing your app.(Optional) Add tsx for development hot-reload
Install
tsx, @types/node, and typescript as dev dependencies for a development experience similar to bun dev.Add scripts to package.json
- dev — Start with auto-reload on code changes.
- build — Compile TypeScript for production.
- start — Run the compiled production server.