## When to Use This Skill
Use this skill whenever you need to work with **Elysia**, the high-performance web framework for Bun. Elysia is ergonomic, type-safe, and optimized for Bun with extensive TypeScript support.
**Trigger this skill for:**
- Building REST APIs, GraphQL servers, or WebSocket applications
- Setting up authentication, validation, cookies, CORS, or middleware
- Configuring routes, groups, guards, path parameters, or dynamic paths
- Using plugins (Apollo, Yoga, Bearer, CORS, Cron, OpenAPI, etc.)
- Implementing lifecycle hooks (onRequest, beforeHandle, afterHandle, etc.)
- Type-safe client generation with Eden (Treaty, Fetch, Test)
- Learning Elysia patterns: best practices, folder structure, MVC setup
- Deployment strategies: binary compilation, Docker, Vercel, Railway, clustering
- Integrating with databases, authentication frameworks, or services
- Troubleshooting performance, typing issues, or configuration problems
- Creating custom body parsers, error handlers, or macros
- Testing Elys
2026-05-30