Guides Ecosystem & Frameworks
Build an HTTP server using Elysia and Bun
Elysia is a Bun-first web framework built on Bun's HTTP, file system, and hot reloading APIs. Get started with bun create.
$ bun create elysia myapp
$ cd myapp
$ bun run devTo define an HTTP route and start a server with Elysia:
import { Elysia } from "elysia";
const app = new Elysia().get("/", () => "Hello Elysia").listen(8080);
console.log(`🦊 Elysia is running at on port ${app.server?.port}...`);Elysia is a server framework with Express-like syntax, type inference, middleware, file uploads, and plugins for JWT authentication and tRPC. It's one of the fastest Bun web frameworks.
See the Elysia documentation.