elysiajs-expert

Build type-safe REST APIs, GraphQL services, and WebSocket servers with Elysia on Bun.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/lammesen/skills --skill elysiajs-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elysiajs-expert
Source: https://github.com/lammesen/skills/tree/main/.claude/skills/elysiajs-expert
Command: npx skills add https://github.com/lammesen/skills --skill elysiajs-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance for building high-performance, type-safe web apps with Elysia on Bun, including routing, validation with TypeBox, Eden type-safe clients, authentication, plugins, testing, and deployment patterns.

Core Features & Use Cases

  • Routing & Validation: Elysia routing, TypeBox validation, Eden type-safe clients, and OpenAPI integration.
  • Auth & RBAC: JWT and cookie-based auth patterns, role-based access control.
  • Plugins & Testing: Official plugins, testing patterns, and Eden/CICD deployment patterns.

Quick Start

Spin up a minimal Elysia app, add OpenAPI docs and authentication, then run with bun.

Frequently Asked Questions about elysiajs-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build type-safe REST APIs with Elysia on Bun?

Elysia on Bun provides end-to-end type safety through TypeBox validation and Eden type-safe clients. Define routes with validators, and Eden automatically infers types for client calls, eliminating runtime type mismatches and enabling autocomplete across your API surface.

Can I add JWT authentication and OpenAPI documentation to an Elysia API?

Yes. Elysia's official JWT plugin handles Bearer token validation, and the OpenAPI plugin auto-generates interactive docs from your route definitions and TypeBox schemas. Both integrate seamlessly into your routing lifecycle without manual configuration.

What's the best way to validate request data in Elysia?

TypeBox validation in Elysia lets you define schemas once and reuse them for request validation, OpenAPI documentation, and type inference. Validation errors are caught at the route level before reaching your handlers.

Does Elysia work with WebSocket servers and GraphQL services?

Elysia supports WebSocket servers and GraphQL services through official plugins. Both integrate with your existing routes, middleware, and lifecycle hooks, maintaining type safety and consistent error handling.

How do I test Elysia applications and deploy them to production?

Elysia provides testing patterns compatible with standard test runners and supports production deployment through Bun's native bundling and optimization. Official plugins and deployment patterns ensure observability and reliability in production environments.

Can I implement role-based access control in Elysia?

JWT and cookie-based authentication patterns in Elysia enable role-based access control through custom middleware and lifecycle hooks. Extract claims from tokens and enforce permissions at the route or handler level.