Skip to main content
Logo Light

Welcome to Tryo

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

No more try-catch blocks. Get discriminated unions with full TypeScript support.
Built-in exponential backoff with jitter to prevent thundering herd.
Run multiple operations with controlled parallelism.
First-class support for AbortController and graceful cancellation.

Installation

Quick Example

Pro tip: Use tryo() once and reuse it across your app for consistent error handling.

Next Steps

Core Concepts

Learn about Result types and error normalization

React Integration

See how to use it with React hooks