elysiajs

Installation
Summary

Type-safe, high-performance backend framework built for Bun with TypeScript-first routing and validation.

  • Supports HTTP methods, path/query parameters, request bodies, headers, and WebSocket endpoints with full type inference across routes
  • Built-in TypeBox validation with support for nested objects, arrays, file uploads, and response schemas; also compatible with Zod, Valibot, and ArkType
  • Feature-based project structure with controllers, services, and models; includes guards, macros, and lifecycle hooks (onBeforeHandle, onError) for cross-cutting concerns
  • Official plugins for authentication (JWT, Bearer), CORS, OpenAPI documentation, static files, GraphQL, and integrations with Drizzle ORM, Better Auth, and Next.js
  • Method chaining required for type safety; encapsulation via local/scoped/global lifecycle levels; deduplication support for plugins via naming
SKILL.md

ElysiaJS Development Skill

Always consult elysiajs.com/llms.txt for code examples and latest API.

Overview

ElysiaJS is a TypeScript framework for building Bun-first (but not limited to Bun) type-safe, high-performance backend servers. This skill provides comprehensive guidance for developing with Elysia, including routing, validation, authentication, plugins, integrations, and deployment.

When to Use This Skill

Trigger this skill when the user asks to:

  • Create or modify ElysiaJS routes, handlers, or servers
  • Setup validation with TypeBox or other schema libraries (Zod, Valibot)
  • Implement authentication (JWT, session-based, macros, guards)
  • Add plugins (CORS, OpenAPI, Static files, JWT)
  • Integrate with external services (Drizzle ORM, Better Auth, Next.js, Eden Treaty)
  • Setup WebSocket endpoints for real-time features
  • Create unit tests for Elysia instances
  • Deploy Elysia servers to production
Installs
5.6K
Repository
elysiajs/skills
GitHub Stars
65
First Seen
Jan 19, 2026