Back to feed
Dev.to
Dev.to
7/23/2026
houhou wraps TypeScript async functions with composable resilience policies

houhou wraps TypeScript async functions with composable resilience policies

Original: houhou — Resilience Policies for TypeScript Async Functions

Short summary

houhou is a zero-dependency TypeScript library (~500 LOC) that wraps any async function with composable resilience policies — retry, timeout, fallback, circuit breaker, and delay — while preserving the original function signature. Policies chain fluently in any order with compile-time and runtime guards preventing duplicate configuration. It uses AbortController for cancellation and supports external signals, making it a lightweight alternative to heavier resilience frameworks tied to HTTP clients.

  • Zero-dependency TS library wrapping async functions with retry, timeout, fallback, circuit breaker
  • Policies chain fluently; order determines nesting and execution semantics
  • AbortController integration enables cancellation on timeout or external signal

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more