boxed

Utility types for functional TypeScript (by swan-io)

Boxed Alternatives

Similar projects and alternatives to boxed

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better boxed alternative or higher similarity.

boxed reviews and mentions

Posts with mentions or reviews of boxed. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-13.
  • The gotcha of unhandled promise rejections
    5 projects | news.ycombinator.com | 13 Jan 2023
    I was happy when Promise became available, but in retrospect I'd wish we would have skipped ahead and gotten Observable (e.g: https://rxjs.dev/) instead to enable more powerful functionality and composition etc.

    In Typescript dealing with rejection is also painful since rejection reasons can't be guaranteed to be Error even when you always take care of that. And it can't help you guarantee that you're handling all types of errors thrown. For that purpose I'm thinking of using https://github.com/supermacro/neverthrow#readme or https://swan-io.github.io/boxed.

  • Boxed: Functional utility types and functions for TypeScript
    2 projects | /r/javascript | 27 Apr 2022
  • I Avoid Async/Await
    7 projects | news.ycombinator.com | 16 Apr 2022
    Agree that try/catch is verbose and not terribly ergonomic, but my solution has been to treat errors as values rather than exceptions, by default. It's much less painful to achieve this if you use a library with an implementation of a Result type, which I admin is a bit of a painful workaround, but worth it. I've recently been using: https://github.com/swan-io/boxed.

    By far the greatest benefit is being able to sanely implement a type-safe API. To me, it is utter madness throwing custom extensions of the Error class arbitrarily deep in the call-stack, and then having a catch handler somewhere up the top hoping that each error case is matched and correctly translated to the intended http response (at least this seems to be a common alternative).

  • A note from our sponsor - InfluxDB
    www.influxdata.com | 19 Mar 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic boxed repo stats
6
596
7.8
7 days ago

swan-io/boxed is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of boxed is TypeScript.

Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com