Build cloud backends with Infrastructure-from-Code (IfC), a revolutionary technique for generating and updating cloud infrastructure. Try IfC with AWS and Klotho now (Now open-source) Learn more →
Fp-ts Alternatives
Similar projects and alternatives to fp-ts
-
-
TypeScript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
Appwrite
Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
-
-
effect
A Fully-fledged functional effect system for typescript with a rich standard library
-
-
-
-
Klotho
AWS Cloud-aware infrastructure-from-code toolbox [NEW]. Build cloud backends with Infrastructure-from-Code (IfC), a revolutionary technique for generating and updating cloud infrastructure. Try IfC with AWS and Klotho now (Now open-source)
-
-
-
-
-
immutable-js
Immutable persistent data collections for Javascript which increase efficiency and simplicity.
-
-
-
-
-
DefinitelyTyped
The repository for high quality TypeScript type definitions.
-
InfluxDB
Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.
fp-ts reviews and mentions
-
Ask HN: What is the “proper” way to do error-handling in TypeScript?
I use fp-ts with its Result type, works great.
- libraries you are happy that you discovered them
-
ts-belt - Fast, modern, and practical utility library for FP in TypeScript / Flow / JavaScript. (Faster than ramda, rambda, remeda and lodash/fp.)
Why not just https://gcanti.github.io/fp-ts/?
-
Introduction
Welcome to the series of blog posts about functional programming in TypeScript. In this series, we explore the basic concepts of function composition and monads. The code examples in this series are built using the fp-ts library and TypeScript's native features.
-
The type system is a programmer's best friend
I think TypeScript's type system is "good" in the sense it's expressively powerful enough to implement e.g. fp-ts. So it's effectively in the same class as OCaml's. And there are a lot of similarities: both are structurally typed, both have some flavor of "polymorphic variants," both (a criticism) lack higher-kinded types and have to resort to the "Lightweight Higher-Kinded Types" emulation to implement things like fp-ts.
-
Should I Move From PHP to Node/Express?
JS by it's nature is neither functional nor OOP'ish - somewhere in between. For instance, promises do lack referential transparency and side-effect capturing guarantees, compared to something like IO Monad, although there are some wrappers in fpts with partial IO Monad support.
-
I find myself going back to Rust to maintain my skillset at work
I used fp-ts for common ones like Option or Either. But yeah that's pretty limited.
-
Learn how to unleash the full potential of the type system of TypeScript
fp-ts [0] and the accompanying io-ts [1] are very well designed and neatly implemented. I'd consider them the reference for all things FP in Typescript.
In practice though I find that they don't mesh well with the language and ecosystem at large. Using them in a React/Vue/Whatever app will catch you at every step, as neither the language nor the frameworks have these principles at their core. It takes a lot of effort to escape from their gravitational pull. Using Zod [2] for your parsing needs and strict TS settings for the rest feel more natural.
It could work in a framework-agnostic backend or logic-heavy codebase where the majority of the devs are in to FP and really want / have to use Typescript.
0 - https://gcanti.github.io/fp-ts/
1 - https://gcanti.github.io/io-ts/
2 - https://zod.dev
-
Multiple condition array sorting made easy
If you interested in functional programming there is great library, written by Giulio Canti - https://github.com/gcanti/fp-ts , that allready implement similar data types in same maner and even much more from functional languages world, moreover, there is big ecosystem based on fp-ts library - most exiting members are: io-ts - runtime data validation https://github.com/gcanti/io-ts, fault-tolerant and type safe data fetching by Yuriy Bogomolov - https://github.com/YBogomolov/fetcher-ts, functional type for fetched data by devexperts - https://github.com/devexperts/remote-data-ts and much more!
- Either type
-
A note from our sponsor - Klotho
klo.dev | 31 Jan 2023
Stats
gcanti/fp-ts is an open source project licensed under MIT License which is an OSI approved license.