Preview of LazyPromiseOpen lazypromise.com

lazypromise.com

LazyPromise

An async primitive with native promise-like API, supporting auto-propagating cancellation, type-safe errors, and dependency injection.

Visit project

Show me a random project

First shared
Sep 22, 2026
HN activity
11

Show HN@ivan7237dSep 22, 2026

Show HN: With generators/DI, LazyPromise has become a tiny alternative to Effect

I actually started LazyPromise without knowing much about Effect (https://www.effect.website/), coming from the world of RxJS and Solid-style signals (my post from last year: https://news.ycombinator.com/item?id=46321852). But Effect is a lazy promise too, and showed how useful generator syntax, type-safe errors and dependency injection can be. So there you go: a version of promise with auto-propagating cancellation and Effect-style features, but essentially the same API as the native promise.

Community

Hacker News discussion

Loading the thread…