elysia-llm-graceful-fallback

Community

Stop generic 500s for optional LLM calls in Elysia.

Authorfreedomw1987
Version1.0.0
Installs0

System Documentation

What problem does it solve?

When optional LLM or third-party API calls fail in Elysia.js routes, throwing unhandled errors leads to generic 500 HTTP responses, leaving users with unactionable error messages and breaking non-critical optional features that should not disrupt core request functionality.

Core Features & Use Cases

  • Result Object Pattern: Returns typed success/failure objects for service calls instead of throwing exceptions, eliminating unhandled 500 errors for optional dependencies.
  • Custom Error Responses: Lets route handlers define custom HTTP status codes and structured error payloads for failed LLM/API calls.
  • Use Case: Ideal for Elysia backends with optional AI features like document analysis, content generation, or third-party integrations where service failures should only impact the optional feature, not the entire request.

Quick Start

Use this skill to add graceful LLM fallback logic to your Elysia.js document parsing route so users see clear, actionable error messages when the AI service is unavailable instead of generic 500 errors.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: elysia-llm-graceful-fallback
Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#elysia-llm-graceful-fallback

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.