Show HN: Safe-fetch – fetch() without try/catch

1 asouei 0 9/2/2025, 10:20:55 AM github.com ↗
Every project repeats the same fetch pattern: try/catch, check `res.ok`, handle timeouts. I got tired of the boilerplate.

*safe-fetch* always returns `{ ok: boolean, data | error }` with typed errors. 3kb, built-in retries, dual timeouts, Retry-After support.

Recently featured in Awesome TypeScript. Feedback welcome!

Comments (0)

No comments yet