chaos engineering
cruel
inject failures, latency, and timeouts into any async function. works with fetch, ai sdks, databases, anything.
import { cruel } from "cruel"const api = cruel(fetch, {fail: 0.1,delay: [100, 500],timeout: 0.05,})const res = await api("https://api.example.com")
v1.1.1
$ bun add cruel