什么是 elysia?
用于错误处理、状态响应和插件组合的 Elysia.js 服务器模式。在编写 Elysia 路由处理程序、返回 HTTP 错误、创建插件或使用 Eden Treaties 类型安全时使用。 来源:epicenterhq/epicenter。
用于错误处理、状态响应和插件组合的 Elysia.js 服务器模式。在编写 Elysia 路由处理程序、返回 HTTP 错误、创建插件或使用 Eden Treaties 类型安全时使用。
通过命令行快速安装 elysia AI 技能到你的开发环境
来源:epicenterhq/epicenter。
Never use set.status + return object. Always destructure status from the handler context and use it for all non-200 responses. This gives you:
Both work. The framework handles either. The difference is purely control flow:
| return status(...) | Normal return, continues to response pipeline | You're at a natural return point (validation guards, end of handler) | | throw status(...) | Short-circuits execution immediately | You're deep in nested logic or inside a try/catch and want to bail out |
用于错误处理、状态响应和插件组合的 Elysia.js 服务器模式。在编写 Elysia 路由处理程序、返回 HTTP 错误、创建插件或使用 Eden Treaties 类型安全时使用。 来源:epicenterhq/epicenter。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/epicenterhq/epicenter --skill elysia用于错误处理、状态响应和插件组合的 Elysia.js 服务器模式。在编写 Elysia 路由处理程序、返回 HTTP 错误、创建插件或使用 Eden Treaties 类型安全时使用。 来源:epicenterhq/epicenter。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/epicenterhq/epicenter --skill elysia 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/epicenterhq/epicenter