bloodyowl/boxed

Essential building-blocks for functional & safe TypeScript code

TypeScript

767

424 commits

updated Sep 14, 2026

See the code

README

@bloodyowl/boxed logo

@bloodyowl/boxed

mit licence npm version bundlephobia

Essential building-blocks for functional & safe TypeScript code

Boxed provides essential building-blocks (in the form of types and functions) so that you can write functional, safe TypeScript code.

Design principles

  • Provide utility types that make data-manipulation and storage easier
  • Immutable (all provided types are)
  • Give a good development experience (chaining API, reliable types)
  • Simple interoperability (you can convert back and forth to JS native types)
  • Compatibility with ts-pattern (using patterns we provide).

What's in the box?

  • Option<Value>
  • Result<Ok, Error>
  • Future<Value>
  • AsyncData<Value>
  • Lazy<Value>
  • Some utils like Deferred, Dict & Array

Installation

$ yarn add @bloodyowl/boxed
# --- or ---
$ npm install --save @bloodyowl/boxed
adt
fp
functional
future
monads
option
result
typescript

bloodyowl/boxed

Essential building-blocks for functional & safe TypeScript code

TypeScript

767

424 commits

updated Sep 14, 2026

See the code

README

@bloodyowl/boxed logo

@bloodyowl/boxed

mit licence npm version bundlephobia

Essential building-blocks for functional & safe TypeScript code

Boxed provides essential building-blocks (in the form of types and functions) so that you can write functional, safe TypeScript code.

Design principles

  • Provide utility types that make data-manipulation and storage easier
  • Immutable (all provided types are)
  • Give a good development experience (chaining API, reliable types)
  • Simple interoperability (you can convert back and forth to JS native types)
  • Compatibility with ts-pattern (using patterns we provide).

What's in the box?

  • Option<Value>
  • Result<Ok, Error>
  • Future<Value>
  • AsyncData<Value>
  • Lazy<Value>
  • Some utils like Deferred, Dict & Array

Installation

$ yarn add @bloodyowl/boxed
# --- or ---
$ npm install --save @bloodyowl/boxed
adt
fp
functional
future
monads
option
result
typescript

Project health

Latest release

3.4.0 · Apr 23, 2026

Releases this year

3

Significant stargazers

Max T.

1,270 followers · starred Feb 2023

Álvaro Mondéjar Rubio

142 followers · starred Mar 2025

Dmitry Ivakhnenko

185 followers · starred May 2023

Marvin

128 followers · starred Jul 2023