fp-ts

Functional programming in TypeScript (by gcanti)

Fp-ts Alternatives

Similar projects and alternatives to fp-ts

  1. Visual Studio Code

    3,319 fp-ts VS Visual Studio Code

    Visual Studio Code

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. TypeScript

    1,508 fp-ts VS TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  4. zod

    440 fp-ts VS zod

    TypeScript-first schema validation with static type inference

  5. ramda

    87 fp-ts VS ramda

    :ram: Practical functional Javascript

  6. AoC

    87 fp-ts VS AoC

    my personal repo for the advent of code yearly challenge (by Fadi88)

  7. adventofcode

    86 fp-ts VS adventofcode

    Solutions for problems from AdventOfCode.com (by bhosale-ajay)

  8. io-ts

    81 fp-ts VS io-ts

    Runtime type system for IO decoding/encoding

  9. effect

    70 fp-ts VS effect

    Build production-ready applications in TypeScript

  10. purescript

    57 fp-ts VS purescript

    A strongly-typed language that compiles to JavaScript

  11. neverthrow

    26 fp-ts VS neverthrow

    Type-Safe Errors for JS & TypeScript

  12. returns

    21 fp-ts VS returns

    Make your functions return something meaningful, typed, and safe!

  13. froebel

    15 fp-ts VS froebel

    A strictly typed utility library.

  14. adventofcode

    Advent of code solutions (by julian-west)

  15. advent-of-code-kotlin

    Advent of code 2021 - Kotlin

  16. ts-belt

    10 fp-ts VS ts-belt

    đź”§ Fast, modern, and practical utility library for FP in TypeScript.

  17. adventofcode

    Advent of code in rust (by Japanuspus)

  18. proposal-pattern-matching

    Pattern matching syntax for ECMAScript

  19. runtypes

    24 fp-ts VS runtypes

    Runtime validation for static types

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 discussion

Log in or Post with

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 2026-01-01.
  • Designing type-safe sync/async mode support in TypeScript
    3 projects | dev.to | 1 Jan 2026
    Use the technique from fp-ts to simulate Higher-Kinded Types:
  • fp-ts library in Hoppscotch codebase.
    4 projects | dev.to | 29 Oct 2025
    Learn more about fp-ts library.
  • Using Either/Result in TypeScript for Error Handling
    1 project | dev.to | 3 Oct 2025
    When we discuss the Either type in TypeScript, the fp-ts library empowers developers to build pure functional programming apps, using key abstractions from languages like Haskell, PureScript, and Scala.
  • Why Next.js Apps Struggle at Scale (And How Feature Layers Solve It)
    3 projects | dev.to | 3 May 2025
    Functional programming plays a crucial role in our feature layer, providing a structured and efficient approach to managing connections between different layers of our system. Beyond its traditional benefits, functional programming enables robust error handling and manipulation throughout the application. By following to functional principles, we ensure that each process within our system is handled independently and comprehensively, enhancing clarity and maintainability. Through functional programming, we can easily propagate return types across layers, enabling clear communication and transparent data flow. This approach not only enhances code organization and readability but also promote modularization and decoupling, leading to a more maintainable and scalable architecture. We leverage the fp-ts library for functional programming in TypeScript, which provides a rich set of abstractions and utilities for working with functional concepts. For more detailed information on functional programming concepts, see Functional programming documentation
  • Encapsulating the Past: How We Tamed a Legacy System with Timeless Software Engineering Principles
    3 projects | dev.to | 18 Sep 2024
    In addition to our testing strategy, we ensure that each service in our modules—whether public or private—follows a functional programming style using the fp-ts library.
  • The problem with new URL(), and how URL.parse() fixes that
    2 projects | news.ycombinator.com | 19 May 2024
    You might be interested in `fp-ts` (and the related `io-ts`).

    https://gcanti.github.io/fp-ts/

    https://gcanti.github.io/io-ts/

  • From a Lorry Driver to Ruby on Rails Developer at 38
    1 project | news.ycombinator.com | 21 Apr 2024
    I think it’s great that functional programming is making its way into traditional imperative languages - even JavaScript (I recently came across https://gcanti.github.io/fp-ts/ as a pretty extreme example)

    Elixir/Erlang has function-level pattern matching, which I really like. I’ve yet to see it anywhere else, though my understanding is it came from Prolog.

  • Type-Safe Printf() in TypeScript
    4 projects | news.ycombinator.com | 24 Mar 2024
    While I certainly agree, I've found that this is often an indication of too-complex an architecture, and a fundamental re-think being necessary. I've had projects that depend on [fp-ts], which end up incredibly generic-heavy, but still make it entirely through a typecheck(not build- typescript's just worse at that than other tools like esbuild) in seconds-at-worse.

    Obviously depends on your organization/project/application, but I do like these things as complexity-smells.

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

  • 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.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 10 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic fp-ts repo stats
103
11,518
4.2
about 2 months 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.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that TypeScript is
the 2nd most popular programming language
based on number of references?