Elysia (Bun Framework)
Build blazing-fast APIs with Elysia, the Bun-native web framework. Generates type-safe routes, validation schemas, WebSocket handlers, and Eden Treaty RPC clients with end-to-end type inference.
This skill helps you build high-performance APIs with Elysia on Bun. It generates route handlers with full type inference, request/response validation, lifecycle hooks, WebSocket support, Eden Treaty typed clients, and Swagger documentation — all with Bun's native speed.
When to use
Use when building APIs on Bun for maximum performance, creating typed RPC-style backends, or when you want Express-like DX with end-to-end type safety.
Examples
Type-safe REST API
Create a fully typed API with validation
Build an Elysia REST API with typed route params, body validation using t.Object, error handling, and Swagger docs
Eden Treaty client
Generate a typed RPC client for frontend
Set up Eden Treaty to create a fully typed client from my Elysia API that I can use in my React frontend with auto-complete
WebSocket chat server
Build a real-time WebSocket server
Create an Elysia WebSocket server for a chat app with rooms, authentication, and message history using Bun's native WebSocket