Designed for Humans
Our goal is to design an ergonomic, sensible, and productive framework that even beginners can use easily.
Designed to avoid unnecessary complexity and type complexity for you to focus on building.
A framework that feels just like JavaScript.
import { Elysia, file } from 'elysia'
new Elysia()
.get('/', 'Hello World')
.get('/image', file('mika.webp'))
.get('/stream', function* () {
yield 'Hello'
yield 'World'
})
.ws('/realtime', {
message(ws, message) {
ws.send('got:' + message)
},
})
.listen(3000)