Show HN: With generators/DI, LazyPromise has become a tiny alternative to Effect
Category: library
Tags: typescript, async, cancellation, dependency-injection, promises
Score: 6.3/10 (Innovation: 6, Technical: 7, Documentation: 7, Utility: 5)
LazyPromise is a TypeScript async primitive that combines the familiar semantics of native promises with auto-propagating cancellation, type-safe errors, and dependency injection. It positions itself as a simpler alternative to Effect and a single-shot counterpart to RxJS Observable, targeting developers who want richer async control flow without the complexity of full effect systems.
Target audience: backend devs, frontend devs, TypeScript developers
Repository: https://lazypromise.com/ · TypeScript · MIT · 72 stars
View on Hacker News