rembrembdocs

Skip to main content

Bun home pagelight logodark logo

[Runtime

](../../../index.md)[Package Manager

](../../../pm/cli/install/index.md)[Bundler

](../../../bundler/index.md)[Test Runner

](../../../test/index.md)[Guides

](../../index.md)[Reference

](https://bun.com/reference)[Blog

](https://bun.com/blog)[Feedback

](../../../feedback/index.md)

Elysia is a Bun-first performance focused web framework that takes full advantage of Bun’s HTTP, file system, and hot reloading APIs. Get started with bun create.

terminal

bun create elysia myapp
cd myapp
bun run dev

To define an HTTP route and start a server with Elysia:

https://mintcdn.com/bun-1dd33a4e/JUhaF6Mf68z_zHyy/icons/typescript.svg?fit=max&auto=format&n=JUhaF6Mf68z_zHyy&q=85&s=7ac549adaea8d5487d8fbd58cc3ea35bserver.ts

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 full-featured server framework with Express-like syntax, type inference, middleware, file uploads, and plugins for JWT authentication, tRPC, and more. It’s also is one of the fastest Bun web frameworks. Refer to the Elysia documentation for more information.

Was this page helpful?

Suggest editsRaise issue

[

Use Gel with Bun

Previous

](../gel/index.md)[

Build an HTTP server using Express and Bun

Next

](../express/index.md)