User Experience on mobile might not be great yet, but I'm working on it.

Your first time on this page? Allow me to give some explanations.

Awesome Functional Programming

A curated list of awesome functional programming stuff in js

Here you can see meta information about this topic like the time we last updated this page, the original creator of the awesome list and a link to the original GitHub repository.

Last Update: Nov. 30, 2020, 12:03 a.m.

Thank you stoeffel & contributors
View Topic on GitHub:
stoeffel/awesome-fp-js

Search for resources by name or description.
Simply type in what you are looking for and the results will be filtered on the fly.

Further filter the resources on this page by type (repository/other resource), number of stars on GitHub and time of last commit in months.

Libraries

Practical functional Javascript

19.86K
1.27K
17d
MIT

Ramda Adjunct is the most popular and most comprehensive set of functional utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.

524
79
3d
BSD-3-Clause

🤘Utility library for functional JavaScript. With ❤️ to Ramda.

136
24
4m
Apache-2.0

Faster and smaller alternative to Ramda

996
60
5d
MIT

Extended version of Rambda

126
17
64d
MIT

A modern JavaScript utility library delivering modularity, performance, & extras.

47.27K
5.35K
33d
n/a

A modern JS utility library

1.55K
81
2y 7m
MIT

a functional library for coffeescript (and javascript)

12
1
4y 12m
n/a

tiny (2.7kb) functional programming library using native es5/6 operations

96
10
3y 36d
n/a

A practical functional programming library for promises

47
4
2y 11m
MIT

Hardcore Functional Programming for JavaScript

80
4
7m
MIT

Functional tools that couldn’t be simpler.

744
60
1y 5m
MIT

A simple function to curry a function with an arbitrary number of arguments.

5
2
6y 10m
n/a

Currying made simple.

81
7
5y 38d
MIT

Function composition

48
3
5y 58d
MIT

A library which aids in making any JavaScript library more functional.

49
0
5y 8m
MIT
144
12
6y 4m
n/a

A JavaScript library for building React applications in more functional way. Alternative to JSX.

179
32
11m
MIT

[DEFUNCT] trifling functional views

37
1
3y 8m
n/a

An experiment in adding functional pattern matching to JavaScript

247
23
2y 6m
n/a

Functional programming date manipulation library

123
17
2y 6m
n/a

Immutable date and time library for javascript

1.27K
95
8d
n/a

Make native methods available as partially applied functions.

43
2
6y 10m
MIT

[Unmaintained: please use jsverify instead] A property-based testing library for clearly specifying code invariants and behaviour.

79
4
6y 8m
MIT

FP library for JavaScript. Supports named-argument style methods.

418
20
1y 4m
MIT

Javascript Generalized Parser Combinators

104
9
60d
LGPL-2.1

Abstraction for managing asynchronous code in JS

362
17
2y 50d
MIT

Ultra-high performance reactive programming

3.31K
230
52d
MIT

☯ The simplest signal library possible

34
1
5m
n/a

Functional Programming Library for JavaScript, TypeScript and Flow ✨⚡️

589
28
1y 4m
Apache-2.0

pico sized functional library

71
6
3y 10d
MIT

An extremely small, intuitive and fast functional utility library for JavaScript

251
20
2y 61d
n/a

Functional Programming for EcmaScript(Javascript)

38
4
111d
MIT

TypeScript Grid Computing Framework supporting RFC (Remote Function Call)

70
14
61d
MIT

Features from the rust language in javascript: Provides Traits/Type classes & an advanced library for working with sequences/iterators in js

432
19
6d
Apache-2.0

The iterable toolbox

83
13
5d
MIT

F(unctional) util(ities). Resistance is futile.

516
45
66d
MIT

[a]synchronous functional programming

98
11
6d
MIT

Powerful pipes for TypeScript, that chain Promise and ADT for you 🚌 -> ⛰️ -> 🚠 -> 🏂 -> 🚀

5
0
7d
MIT

Curry All Code

131
5
82d
n/a

A standard library for functional programming in JavaScript. Typescript support expected mid-2020. -TS.

A lightweight functional JavaScript library that facilitates currying and point-free / tacit programming.

A functionally oriented utility library somewhat based off of Haskell's Prelude module. -TS.

Sophisticated and functionally-minded async with advanced features: coroutines, promises, ES2015 iterables, fantasy-land. -TS.

Typed functional programming in TypeScript. +CT, +TS.

A function library roughly subsetting Ramda, but written in Typescript and thus more type-friendly. +TS.

Data Structures

Utilities for treating frozen JavaScript objects as persistent immutable collections

392
37
1y 21d
MIT

Immutable persistent data collections for Javascript which increase efficiency and simplicity.

30.44K
1.76K
10m
MIT

Create the next immutable state by mutating the current one

18.56K
510
11d
MIT

ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript

3.28K
148
5y 5m
n/a

JavaScript & TypeScript persistent and optionally immutable data tree with cursors.

3.05K
127
105d
MIT

High performance implementation of Immutable Sequence in JavaScript, based on Finger Tree.

18
0
5y 114d
n/a

Like Underscore, but lazier

5.94K
302
2y 4m
MIT

Functional Reactive State for JavaScript and TypeScript

502
22
2y 8m
Apache-2.0

😴 Functional programming with lazy immutable iterables

87
3
7d
MIT

High-performance immutable data structures for modern JavaScript and TypeScript applications. Functional interfaces, deep/composite operations API, mixed mutability API, TypeScript definitions, ES2015 module exports.

231
13
2y 10m
MIT

🐆 An immutable list with unmatched performance and a comprehensive functional API.

1.56K
48
84d
MIT

Functional programming, immutable collections and FP constructs for typescript and javascript

297
14
5d
ISC

TypeScript-STL (Standard Template Library, migrated from C++)

376
35
16d
MIT

Immutability helpers with fast reads and acceptable writes.

Algebraic Data Types

Specification for interoperability of common algebraic structures in JavaScript

8.54K
349
5m
MIT

Specification for common algebraic structures in JavaScript based on Fantasy Land

682
43
1y 98d
MIT

fantasyland extensions for immutablejs

462
26
2y 5m
ISC

Library for creating tagged constructors.

620
41
1y 33d
MIT

Refuge from unsafe JavaScript

2.62K
103
93d
MIT

A small JavaScript library for defining and using union types.

469
29
1y 5m
MIT

Free monad Collection

157
13
4y 88d
MIT

Fantasy Land compliant (monadic) alternative to Promises

2.02K
85
21d
MIT

Common combinators.

63
7
4y 10m
n/a

port of the haskell package Data.Aviary.Birds. Every thing for your combinatory needs.

70
7
4y 9m
n/a

A collection of well known Algebraic Data Types for your utter enjoyment.

1.39K
104
63d
ISC

A utility library to write code in functional programming style in Javascript

19
1
1y 11m
MIT

Functional programming library for TypeScript - https://gigobyte.github.io/purify/

764
29
6d
ISC

MojiScript is an async-first, opinionated, and functional library

139
18
4m
MIT

🥃 Functional Algebraic Data Types

233
10
4m
Apache-2.0

🔧 Tifi solves a problem of the existence of both undefined and null. Inspired by the OCaml/Reason utilities for various data types.

47
0
7m
MIT

A library that assists functional programming by providing a rich set of Monads and other useful functions. +CT, +TS.

Lenses

Composable kmett style lenses

206
13
5y 65d
n/a

Profunctor implementation of Lenses, Prisms, Traversals, Isos, etc.

83
4
4y 7m
n/a

Lens library built on ramda

180
15
3y 5m
n/a

Composable, immutable getters and setters.

108
9
4y 10m
n/a

A Lens Library for Javascript

174
2
5y 5m
MIT

Partial lenses is a comprehensive, high-performance optics library for JavaScript

833
37
1y 9m
MIT

A lodash-inspired lens-like library for Javascript

365
13
8m
MIT

Functional Languages that Compile to JavaScript

Clojure to JS compiler

8.52K
751
57d
EPL-1.0

Haskell to JavaScript compiler, based on GHC

2.38K
173
9m
MIT

Converts Elixir to JavaScript

1.46K
64
1y 103d
MIT

A multi-paradigm programming language with gradual and duck typing that targets PHP and JS

304
30
3y 11d
GPL-3.0

יון no BS JS (under heavy dev)

74
3
3y 79d
n/a

Lisp that compiles to JavaScript in the Ramda way

125
4
2y 10m
MIT

Racket to JavaScript Compiler

322
12
31d
MIT

Elm

A type-safe functional programming language for declaratively creating web browser-based graphical user interfaces. Implemented in Haskell.

Compiles F# to readable JavaScript.

A small strongly typed programming language that compiles to JavaScript.

A general purpose pure functional programming language with dependent types.

Compiles OCaml bytecode to JavaScript, making it possible to run OCaml programs in the browser.

Reason is a new interface to OCaml, a highly expressive dialect of the ML language featuring type inference and static type checking.

Compiles Scala to JavaScript.

LiveScript has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate.

Koka is a function-oriented programming language that seperates pure values from side-effecting computations with a familiar JavaScript like syntax.

A typed superset of JavaScript that compiles to plain JavaScript.

Programming Tools

ESLint rules for functional programming

838
42
2y 9m
MIT

Monadic Assertions library

18
0
3y 9m
MIT

Runtime type checking for JS with Hindley Milner signatures

164
12
1y 20d
MIT

ftor enables ML-like type-directed, functional programming with Javascript including reasonable debugging.

43
1
2y 8m
MIT

Books

Mostly adequate guide to FP (in javascript)

19.02K
1.58K
7m
n/a

Pragmatic, balanced FP in JavaScript. @FLJSBook on twitter.

13.63K
1.62K
8m
n/a

A fool's scriptum on functional programming

248
15
89d
MIT

the “Six” edition. Starts with as little as possible about functions – but no less! – and builds up towards powerful combinators and decorators. A foundational book. By Reginald Braithwaite (2016)

teaches JavaScript developers functional techniques that will improve extensibility, modularity, reusability, testability, and performance. Through concrete examples and jargon-free explanations, this book teaches you how to apply functional programming to real-life development tasks. By Luis Atencio (2016)

A modern introduction to programming using JavaScript. By Marijn Haverbeke (2014)

teaches how to create code that’s beautiful, safe, and simple to understand and test by using JavaScript’s functional programming support. By Michael Fogus (2013)

teaches functional programming from first principles. It uses JavaScript for all code examples and it uses real-world scenarios. By Eric Normand (2019)

Articles

Jargon from the functional programming world in simple terms!

13.84K
810
68d
MIT

Avoid The One-off Problem, Infinite Loops, Statefulness and Hidden intent.

546
18
6m
n/a

An introduction to Functional Programming Concepts in JavaScript. Uses the Ramda library to teach the concepts of composition, pointfree style, and functors through the simplest of examples.

Another introduction to Functional Programming in JavaScript with a focus on three key themes: computation as the application of functions, statelessness, avoiding side effects.

A four-part series introduction functional programming in JavaScript that gets you up to speed what all the hype about functional programming is all about.

A short overview of how to write reusable and declarative code using currying.

Practical applications of currying using Ramda.

A beginner-friendly introduction to Algebraic Data Types.

Learn to reason about your JavaScript code with type thinking. Algebraic Data Types are introduced as a conceptual basis to reason about program entities.

Use four new features of ES6 – iterables, generators, fat arrows, and for-of – in conjunction with higher-order functions, function composition, and lazy evaluation, to write cleaner and more modular JavaScript.

To those not used to functional programming, Ramda seems to serve no purpose whatsoever. However, it does offer a different style of coding, a style that’s taken for granted in purely functional programming languages: Ramda makes it simple for you to build complex logic through functional composition.

An introduction to the Monad design pattern in JavaScript.

A walk through some practical use cases for specific monadic structures in JavaScript: use the Maybe monad to handle simple failure cases and model more complex scenarios with the Either monad or the Validation applicative functor.

Many articles on various aspects of functional programming in JavaScript by Gleb Bahmutov.

A series of blog posts that reimplements various data structures in JavaScript to better understand their benefits and downsides.

Easy to understand, with some examples, introduction to Functional Programming in Javascript and Elm.

A complete introduction to functional programming patterns by Chet Corcos with a lot of javascript examples.

Learn about functional data structures and their uses in this overview of Facebook's popular library for JavaScript: Immutable.js.

A simple introduction by @ericelliott to functional principles and vocabulary.

A series of articles on learning functional programming and compositional software techniques in JavaScript ES6+ from the ground up by @ericelliott.

Short and easy to understand article about implementing anonymous recursion in JavaScript.

Step by step explanation of how to compose functions in javascript.

Practical code examples to learn functional programming concepts like pure function, immutability, first-class entities, and higher order functions

Introduction to 2 easy monads in Javascript, Maybe & Either.

Showcasing the similarities between F# and JavaScript

A step by step guide to convert imperative JavaScript to more declarative, functional JavaScript.

Videos

A series that builds a “practical” web application with React and functional programming in JavaScript.

Underscore.js claims to be a functional programming library, but is it really?

Learn about practical use cases for functors, applicatives, and monads.

Christian Johansen will show you how you can significantly up your game by leaving loops behind and embracing functions as the primary unit of abstraction.

A series by Mattias Petter Johansson, from the youtube channel FunFunFunction, that is specifically about popularization of functional programming in JavaScript.

A simple and understandable introduction of functional proramming in javascript.

A complete introduction to functional programming in javascript made it easy by ES6.

Seth House explains how ADTs (Algebraic Data Types) can be useful to JavaScript developers.

Examples and Exercises

Learning the functional paradigm with js

93
18
5y 4m
MIT

A functional javascript workshop. No libraries required (i.e. no underscore), just ES5.

1.94K
436
4y 16d
n/a

A functional frontend framework.

1.39K
93
5y 7d
MIT

A puzzle game inspired by functional programming

1.45K
70
1y 7d
MIT

YouTube search app with ReactJS, Redux, and FP concepts

57
7
3y 10m
n/a

Example Project & Guide for mastering Promises in Node/JavaScript. Feat. proposed 'Functional River' pattern

245
25
10m
MIT

Learn to apply techniques from the forefront of computer science research to solve practical problems in Javascript. Discover functional programming and see it demonstrated step-by-step with how to build an example web app using abstract interfaces like Monads, Functors, Monoids and Applicatives. (commercial)

Dozens of exercises with solutions and explanations.

A series of interactive exercises introducing five basic ingredients of functional (reactive) programming: the map, filter, concatAll, reduce, and zip functions.

Related Lists

A curated list of awesome functional reactive programming stuff in js

260
15
4y 10m
n/a

A curated list of functional programming resources such as blog posts, communities, discussion topics, wikis and more.

623
45
9m
n/a

Yet another resource for collecting articles, videos etc. regarding functional programming

2.57K
255
7m
n/a

A Learning Path for Functional Programming

530
61
6m
MIT

Talk

Community with a friendly channel for JavaScript as well as many other channels about functional programming in general.