Table of contents
There’s no single way to learn Elysia. The interactive tutorial is a good place to get familiar with it:
Learn Elysia with an editor and playground in your browser.
Not sure what you’re looking for? Use the Ask Elysia assistant on elysiajs.com. That site documents Elysia 1.x, so its answers may not match v2.
First up
Section titled “First up”Start with these two pages for the core concepts and recommended patterns:
Key concept
Understand Elysia’s core concepts and how to use them effectively
Best practice
Learn recommended patterns for writing Elysia applications
AI skills and LLM references
Section titled “AI skills and LLM references”Elysia offers llms.txt and skills for AI agents such as Claude Code and OpenCode. Select a skill version that matches the Elysia version in your project.
bunx skills add elysiajs/skillsllms.txt
Read this site’s Elysia v2 documentation index for use with LLMs.
llms-full.txt
Read this site’s Elysia v2 documentation in one Markdown file.
From other frameworks
Section titled “From other frameworks”If you have used other popular frameworks like Express, Fastify, or Hono, you will find Elysia right at home with just a few differences.
From Express
Comparison between Express and Elysia
From Fastify
Comparison between Fastify and Elysia
From Hono
Comparison between Hono and Elysia
From tRPC
Comparison between tRPC and Elysia
Essential chapter
Section titled “Essential chapter”Here are the foundations of Elysia. We highly recommend you go through these pages before jumping to other topics:
Routing
Understand how routing works in Elysia
Handler
Learn how to handle requests and return responses
Validation
How to enforce type safety with Elysia
Life cycle
Learn the stages of the request lifecycle
Plugin
Learn how to compose Elysia applications with plugins
More patterns
Section titled “More patterns”If you feel like exploring more Elysia features, check out:
Handler
Learn how to send files, stream responses, and use server-sent events
WebSocket
Create real-time applications with Elysia
Eden
Learn more about Eden and how to use it effectively
OpenTelemetry
Monitor your application with OpenTelemetry
Deploy to production
Learn how to deploy Elysia to production
Integration with meta frameworks
Section titled “Integration with meta frameworks”You can also use Elysia with meta frameworks such as Next.js, Nuxt, and Astro.
Astro
Use Elysia in Astro endpoints
Expo
Use Elysia in Expo API routes
Next.js
Use Elysia in Next.js route handlers
Nuxt
Use Elysia in Nuxt server routes
SvelteKit
Use Elysia in SvelteKit endpoints
Integration with your favorite tools
Section titled “Integration with your favorite tools”We have some integrations with popular tools:
AI SDK
Learn how to use Vercel AI SDK with Elysia
Better Auth
Learn how to use Better Auth with Elysia
Drizzle
Elysia provides type-safe utilities with Drizzle
Prisma
Learn how to use Prisma with Elysia
React Email
Use JSX to create email templates
Community and support
Section titled “Community and support”If you are stuck, feel free to ask our community on GitHub Discussions, Discord, and Twitter.
Discord
Official ElysiaJS Discord community server
Track updates and status of Elysia
GitHub
Source code and development
We hope you will love Elysia as much as we do!