proposal-observable VS fp-ts

Compare proposal-observable vs fp-ts and see what are their differences.

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - 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.
www.influxdata.com
featured
proposal-observable fp-ts
12 97
3,036 10,474
0.2% -
0.0 7.0
over 4 years ago about 1 month ago
JavaScript TypeScript
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

proposal-observable

Posts with mentions or reviews of proposal-observable. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-31.
  • Proposal: Signals as a Built-In Primitive of JavaScript
    9 projects | news.ycombinator.com | 31 Mar 2024
    https://github.com/tc39/proposal-observable

    And there's the new one which seems to be getting implemented in node right now:

  • Observable API Proposal
    6 projects | news.ycombinator.com | 28 Jul 2023
    How does it differ from <https://github.com/tc39/proposal-observable/>?
  • The Truth about Svelte
    2 projects | news.ycombinator.com | 11 Jul 2023
    I think it is a shame that the Observable proposal [1] still seems somewhat stuck in Stage 1. It's a better idea than just raw event emitters because of composability (if no other reason). Making Observables "first class" could go a long way to unifying a lot of reactivity patterns in various frameworks, in theory at least.

    To be fair, Observables and especially Observable composition has a rough learning curve and many frameworks like Svelte intentionally prefer implict reactivity and avoiding things like explicit Observables because they are seen as too complex/"too hard" for the average developer.

    (Then you get awful worst of both worlds frameworks like Angular that sort of rely on Observables but yet also don't trust teaching Observables and wind up with code that isn't properly Observable and so also has all the code for implicit reactivity and is full of nasty escape hatches that cause all sorts of composition problems and unnecessary side effects.)

    [1] https://github.com/tc39/proposal-observable

  • 💡 Observable Mutable Wrapper Object
    1 project | dev.to | 26 Jul 2022
    Uses an interface described in the TC39 observables proposal
  • Example of Asynchronous programming using Observer pattern vs Promise
    1 project | /r/learnjavascript | 5 Jul 2022
    JavaScript doesn't have any built-in observables (addEventListener is part of the DOM API specific to browsers) though there is an old observable proposal collecting dust. I think ReactiveX (RxJS) is pretty much the go-to for any kind of observable functionality you may want. That may be a good place to start to really see what observables can do.
  • JavaScript Evolutsiyasi Qisqa Satrlarda!
    7 projects | dev.to | 12 May 2022
    Observablelar streamlarga asoslangan reaktiv dasturlash paradigmasini olib kiradi JSga. Shaxsan menga eng yoqqan takliflardan biri. Bu haqida ham alohida maqola yozish niyat bor. RxJS (Angular) bilan ishlab ko'rganlar bo'lsa buni nimaligini juda yaxshi tushunishadi, endi bu library emas balki native 🚀 !!!
  • 4 Ways to Handle Async Operations in Javascript
    2 projects | dev.to | 21 Feb 2022
    Observable is an object that takes a stream of data and emits events over time to react accordingly. There is a talk to add it to the ECMAScript standard and its proposal is here. Till now it is not part of the ECMAScript standard so to use it, you have to use a third-party library and the well-known Reactive Extension in Javascript is RxJs.
  • Reactive Programming
    2 projects | dev.to | 4 Feb 2022
    Well, the answer is surprisingly no. But, there is an active tc39 proposal going on around for a while, didn’t find it much active though, you could watch out here — https://github.com/tc39/proposal-observable
  • Why do we need rxjs library as JavaScript is reactive by default?
    2 projects | /r/learnjavascript | 1 Feb 2022
    RxJS is an implementation of observables which do not exist natively in JavaScript. There is a proposal for adding observables to the language, but it's only stage 1 and hasn't been active for years.
  • Query Engines: Push vs. Pull
    5 projects | news.ycombinator.com | 1 May 2021

fp-ts

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 2024-03-24.
  • 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.
  • 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:

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

    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.
  • What are some strategies for ensuring correctness and fewer errors in dynamically typed languages?
    1 project | /r/ProgrammingLanguages | 22 May 2023
    Also, don't underestimate how powerful TypeScript can be in capable hands (namely Giulio Canti's). Check out fp-ts, for instance.
  • Use Pure Functions to understand functional programming
    1 project | /r/javascript | 18 May 2023
    You are able to type it using function overloads, an example can be found here - link, line 236.
  • 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/

What are some alternatives?

When comparing proposal-observable and fp-ts you can also consider the following projects:

duckdb - DuckDB is an in-process SQL OLAP Database Management System

effect - An ecosystem of tools to build robust applications in TypeScript.

eslint-plugin-unicorn - More than 100 powerful ESLint rules

ramda - :ram: Practical functional Javascript

eslint-plugin-github - An opinionated collection of ESLint rules used by GitHub.

proposal-pattern-matching - Pattern matching syntax for ECMAScript

RxJS - A reactive programming library for JavaScript

purescript - A strongly-typed language that compiles to JavaScript

cross-project-council - OpenJS Foundation Cross Project Council

io-ts - Runtime type system for IO decoding/encoding

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