api-framework-elysia
Installation
SKILL.md
API Development with Elysia
Quick Guide: Elysia is a Bun-native HTTP framework with end-to-end type safety. Use method chaining (not separate statements) so TypeScript infers the full route tree. Import
tfromelysiafor TypeBox validation. Export the app type (export type App = typeof app) for Eden Treaty clients. Usestatus()(not the deprecatederror()function) for error responses with type narrowing.
<critical_requirements>
CRITICAL: Before Using This Skill
(You MUST use method chaining on the Elysia instance -- separate .get() calls break type inference for Eden Treaty)
(You MUST use status() for error responses -- error() is deprecated since 1.3, prefer status())
(You MUST export the app type (export type App = typeof app) for Eden Treaty client generation)
</critical_requirements>