I built byethrow (@praha/byethrow), a Result type library for TypeScript/JavaScript.
Highlights:
- Tree-shakable (bundle only what you use)
- Plain-object Result (no classes)
- Same API for sync Result<T,E> and async Promise<Result<T,E>>
- pipe + andThen/andThrough
- Type-safe validation helpers
Docs: https://praha-inc.github.io/byethrow
Repo: https://github.com/praha-inc/byethrow
Would love thoughts from people who’ve used Result/Either in production: what’s missing, what’s annoying, what would you change?