Welcome to Runtry
A modern, type-safe error handling library that makes async operations predictable and resilient.Quick Start
Get up and running in less than 5 minutes
API Reference
Explore the complete API documentation
Examples
Real-world examples and patterns
GitHub
View source code and contribute
Features
Type-Safe Error Handling
Type-Safe Error Handling
No more
try-catch blocks. Get discriminated unions with full TypeScript support.Smart Retry Logic
Smart Retry Logic
Built-in exponential backoff with jitter to prevent thundering herd.
Concurrency Control
Concurrency Control
Run multiple operations with controlled parallelism.
Abort Handling
Abort Handling
First-class support for
AbortController and graceful cancellation.Installation
Quick Example
Pro tip: Use
createRunner() once and reuse it across your app for consistent error handling.