Skip to main content

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.

Elysia is a TypeScript backend framework with support for multiple runtimes, optimized for Bun. The steps below walk you through getting a running server regardless of which runtime you are targeting.

Install Bun

Elysia is optimized for Bun, a fast JavaScript runtime designed as a drop-in replacement for Node.js.
curl -fsSL https://bun.sh/install | bash

Create a project

The fastest way to start is with bun create elysia, which scaffolds a project with sensible defaults:
1

Scaffold the project

bun create elysia app
This creates an app folder with Elysia installed and a starter src/index.ts.
2

Enter the project directory

cd app
3

Start the development server

bun dev
Navigate to http://localhost:3000. You should see Hello Elysia.
The dev command uses Bun’s --watch flag to reload the server automatically on file changes.

Next steps

Now that your server is running, explore the core concepts:

Routing

Define routes, path parameters, query strings, and method handlers.

Validation

Validate requests at runtime using Elysia.t, Zod, Valibot, and more.

Eden client

Connect a frontend with end-to-end type safety and no code generation.

Plugins

Add CORS, JWT, OpenAPI, static files, and more with official plugins.

Build docs developers (and LLMs) love