Functional programming in TypeScript (by gcanti)

Fp-ts Alternatives

Similar projects and alternatives to fp-ts

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

fp-ts reviews and mentions

Posts with mentions or reviews of fp-ts. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-10.
  • Introducing fp-utils a functional utility library for Deno / Node
    2 projects | /r/Deno | 10 Dec 2023
    Unlike more comprehensive functional libraries like fp-ts, each module can be imported and resolved separately. If you just need options, simply add the option module and you're good to go.
  • Blog post: graphs and monads with Typescript
    2 projects | /r/typescript | 7 Dec 2023
    While it's quite abstract, I believe it may be useful to those of you who is interested to learn more about functional programming [in Typescript] and also get more intuition on diverse programming ideas. I use fp-ts as a functional programming library there.
  • Functional Programming Library for Golang by IBM
    8 projects | news.ycombinator.com | 17 Aug 2023
    The library for TypeScript that this is influenced by is here:


    Interesting how both languages with this library converge to a similar syntax, due to heavy use of functions.

  • Is Scala worth learning in 2023?
    5 projects | /r/scala | 29 Jun 2023
    Learn something that pays the bill first - nowadays it's Golang/Rust react/typescript. Then you can try some pure fp libs like fp-ts and fp-core.rs, and look through existing scala cats docs. If you'll feel bad about it - that's totally fine and expectable, fp takes a paradigm shift and not that many dev able to shift their brains way of thought due to basic psychological rigidity) (inability to change habits and to modify concepts/attitudes once developed). And that's purely a staffing and management issue - folks hired randoms out of the blue, and called 'em a team.
  • Application Bootstrapping with fp-ts
    2 projects | dev.to | 24 Jun 2023
    fp-ts, a library that caters to functional programming in TypeScript, comes with some micro-abstractions that already solve a few of our needs.
  • Error Handling Patterns
    3 projects | news.ycombinator.com | 4 May 2023
    looks like more ergonomic/focused version of fp-ts[1]

    [1] https://gcanti.github.io/fp-ts/

  • To`class` or not to `class`?
    4 projects | /r/typescript | 26 Apr 2023
    The approach of checked errors is making a comeback. See Swift, Rust, Kotlin + Arrow.kt, and several takes on it in TypeScript: purify, fp-ts, etc.
  • For Production Users: Haskell in an age of Rust and Python
    3 projects | /r/haskell | 21 Apr 2023
    Yeah, TypeScript is shockingly good for a language that is so compatible with JavaScript. For example fp-ts. The main problem with TypeScript is pervasive mutability and side-effects.
  • Why I use Typescript nominal types [3via series part 3]
    3 projects | dev.to | 18 Apr 2023
    Back at my last job I was lucky enough to stumble upon some pretty awesome colleagues thanks to which I found even greater depths in Typescript which cemented the love even more. We used FP-TS to rewrite a legacy Feathers.js application and I learned many principles I later applied to my own full-stack "framework".
  • TypeScript: why you shouldn't throw errors to control the program flow
    2 projects | dev.to | 10 Apr 2023
    Those familiar with more functional languages might be screaming about monads at their screens now. Indeed, if we want to go a step further than using discriminated unions, we can apply Either monads. Those come with a whole lot of useful tooling with them, like the possibility of monadic pattern matching and chaining operations. We have good experiences of using fp-ts in my team at Swappie, and even thought the initial learning curve can be steep, the benefits are useful. You can read more about monads in various blog posts all over the web, this one being a good example of Either specifically.
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 22 Feb 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 →


Basic fp-ts repo stats
25 days ago

gcanti/fp-ts is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of fp-ts 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.