Sign in

Boxed

@boxed.cool
11 followers 0 following 10 posts

essential building-blocks for functional & safe TypeScript code. makes your life easier.

PostsRepliesMedia
Boxed @boxed.cool · 17/06/2026
📣 boxed has a new GitHub & npm home! → github.com/bloodyowl/bo... → @bloodyowl/boxed → boxed.cool
github.com
GitHub - bloodyowl/boxed: Essential building-blocks for functional & safe TypeScript code
Essential building-blocks for functional & safe TypeScript code - bloodyowl/boxed
051
Boxed @boxed.cool · 09/09/2025
just passed 1M downloads on npm! 🎉
012
Boxed @boxed.cool · 24/12/2024
did you know? maximum concurrency & retry mechanisms are directly handled in Boxed since 2.3.0
While you have a simple Future.all to run all futures in parallel (like Promise.all does), you might want to limit the concurrency at which you execute operations.

Using Future.concurrent, you can specify the maximum concurrency for your array of operations.Retry with maximum attempts

If getUserById outputs a Result.Ok value, the future resolves, if it outputs a Result.Error, it re-executes getUserById.

Retry with delay

The function you pass Future.retry takes an attempt parameter, which is the current number of attempts. The count starts at 0.
000
Boxed @boxed.cool · 20/12/2024
YOU DON’T HAVE TO SUFFER
010
Boxed @boxed.cool · 20/12/2024
if that happens shut the door right away and call us
121
Boxed @boxed.cool · 20/12/2024
fig. 1: impossible states when your product type could've been a sum type
041
Boxed @boxed.cool · 19/12/2024
it’d require a lot of changes in the way intellisense handles these kind of things, maybe the pipeline operator will drive some work on this area
100
Boxed @boxed.cool · 19/12/2024
with chaining, each value comes with its available functions as they belong in the prototype, with pipes you have to open a pipe, then import the module, then start typing
100
Boxed @boxed.cool · 19/12/2024
yeah, pipes are good on paper, but in the current JS/TS tooling it hurts autocompletion. (we’ll consider providing it as an alternative API if github.com/tc39/proposa... lands at some point)
github.com
GitHub - tc39/proposal-pipeline-operator: A proposal for adding a useful pipe operator to JavaScript.
A proposal for adding a useful pipe operator to JavaScript. - tc39/proposal-pipeline-operator
100
Boxed @boxed.cool · 19/12/2024
we now have a 😎 cool 😎 domain boxed.cool
boxed.cool
Boxed: Essential building-blocks for functional & safe TypeScript code | Boxed
Essential building-blocks for functional & safe TypeScript code
153