Robust, Scalable, DRY

Folktale is a suite of libraries for generic functional programming in JavaScript that allows you to write elegant modular applications with fewer bugs, and more reuse.

In a Nutshell

  • Don't Repeat Yourself

    Take advantage of the common algebraic interfaces to use and write abstractions that just work for all data structures.

  • Modular

    Include only the parts of the libraries you need in your project, no bloat.

  • Fast Persistent Structures

    Simplify your code-base, and reduce the amount of bugs, by using fast immutable data structures.

  • Better Error Handling

    Treat errors as first-class, and abstract over failure flows with the Maybe[A] and Either[A, B] monads.

  • Simpler Validations

    Easily aggregate failures with the Validation[A, B] applicative functor.

  • Simple Asynchronous Flows

    Keep your asynchronous code simple with the Future[A, B] monad.