purescript-halogen VS redux-saga

Compare purescript-halogen vs redux-saga and see what are their differences.

purescript-halogen

A declarative, type-safe UI library for PureScript. (by purescript-halogen)

redux-saga

An alternative side effect model for Redux apps (by redux-saga)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
purescript-halogen redux-saga
11 42
1,512 22,501
0.3% 0.0%
3.6 4.0
2 months ago 16 days ago
PureScript JavaScript
Apache License 2.0 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.

purescript-halogen

Posts with mentions or reviews of purescript-halogen. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-11.
  • Designing an HTML Component system
    3 projects | /r/scala | 11 May 2023
    There's a framework in purescript from which u can grab some ideas I think: https://github.com/purescript-halogen/purescript-halogen.
  • What can I do in Haskell? UwU
    8 projects | /r/haskell | 16 Nov 2022
    If you wanna do web frontends right now, I'd recommend Halogen for Purescript since it is maintained and has documentation.
  • Building Mystery Mansion Madness without a UI Framework
    8 projects | dev.to | 21 Oct 2022
    Before 2012, all of my websites were made using HTML, CSS and a sprinkling of JS. Then, I went all-in on AngularJS, followed by React. I started using Typescript and then PureScript and learned more frameworks like Halogen and Concur. I even wrote my own UI framework called purescript-deku.
  • Inflist, an experiment using PureScript and React
    8 projects | dev.to | 13 May 2022
    First of all I had to choose what to use to manage the User Interface. I narrowed down to two modules: Halogen and react-basic-hooks (which is a “wrapper” of the unmaintained react-basic). I decided to go with react-basic-hooks just because I work with React on a daily basis and I wanted to understand its interoperability with PureScript. I will 10/10 try Halogen too in the next future since as far as I can see is the most famous and maintained in the PureScript community.
  • State of Scala.js frameworks
    14 projects | /r/scala | 5 May 2022
    There's also Purescript, which is sort of a Haskell for frontend. It has type classes, HKTs and so on and also has a very nice FFI. When it comes to UI libraries there is Halogen which I think is very well though out and allows for using tagless final approach. There's also react-basic but I haven't used that one myself.
  • Solid JS Good for Production and what are the Pro and Cons ?
    1 project | /r/reactjs | 3 Mar 2022
    My favorite webapp stack at the moment is Halogen (PureScript UI library); I have always gravitated toward functional programming and strong static typing. For commercial work, however, I use React. While it isn’t perfect it strikes, for me, the right balance of purity, composability, and simplicity.
  • Solid.js feels like what I always wanted React to be
    17 projects | news.ycombinator.com | 28 Feb 2022
    Yeah? I wrote something to deal with it too (https://github.com/toastal/return-optics) 5.5 years ago. You arguably chose the wrong data as `(model, Cmd msg, Maybe extMsg)` instead of `(model, Cmd msg, List extMsg)` which would give you more flexibility and still functions as a monoid on [] instead of Nothing, but allows multiple messages shrug. I tried this approach more recently and it involved me having to encode all of actions in a massive tree and then I still had issues with certain messages including now having to UUID all elements that that previously I didn't need to think about. It was a mess, but the best I could do with the tools at hand.

    If you compare this to Halogen (https://github.com/purescript-halogen/purescript-halogen/blo...) where you still have purity but can set up subscribers and listeners from any component. It's much easier to use and for some components like dialogs, it's much simpler. And this actually isn't the best example because with the latest Halogen, Portals (https://github.com/purescript-halogen/purescript-halogen/pul...) was introduced so you can launch a dialog on the spot instead of even needing to communicate between them at all.

  • 7 Useful Tools Written in Haskell
    5 projects | dev.to | 18 Oct 2021
    Below you can find the example of a simple button component written in Halogen:
  • PureScript and Haskell
    1 project | news.ycombinator.com | 26 Feb 2021
  • Q: Webapps in Purescript for Haskellers
    2 projects | /r/purescript | 26 Feb 2021

redux-saga

Posts with mentions or reviews of redux-saga. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-04.
  • Main-Thread-Scheduling
    4 projects | news.ycombinator.com | 4 Jan 2024
  • Creating Own Chat GPT
    9 projects | dev.to | 15 Sep 2023
    For the backend, we chose Python, Django Rest Framework. On the frontend, React, Redux, Saga, Sass. Let’s start with the backend, which was managed by Yegor. He writes about the server part of the project himself.
  • Internals of Async / Await in JavaScript
    5 projects | news.ycombinator.com | 1 Sep 2023
    The whole article properly the best explanation of generators I have come across. This quote stuck out:

    > Generators are a special type of function that can return multiple pieces of data during its execution. Traditional functions can return multiple data by using structures like Arrays and Objects, but Generators return data whenever the caller asks for it, and they pause execution until they are asked to continue to generate and return more data.

    Applications of generators? I have only used Redux-Saga[1]. Can't even think of other libraries that use them, but would be interested in learning.

    [1]: https://redux-saga.js.org/

  • Generators in the wild
    3 projects | dev.to | 6 Aug 2023
    redux-saga. The most popular effects library in js
  • I don't get why I should use Redux
    6 projects | /r/webdev | 9 Mar 2023
    Redux can be extended with a lot of other packages. For example with a side effect manager, you can separate side effects from your business logic, help with error handling and in the same process make testing of side effects a lot easier.
  • What Is The Best Name for This Synchronous Function?
    4 projects | /r/learnjavascript | 3 Feb 2023
    Consumer vs. Producer: Check out Redux Saga
  • Front-end Guide
    54 projects | dev.to | 23 Nov 2022
    Your app will likely have to deal with async calls like making remote API requests. redux-thunk and redux-saga were created to solve those problems. They may take some time to understand as they require understanding of functional programming and generators. Our advice is to deal with it only when you need it.
  • Why Would Anyone Need JavaScript Generator Functions?
    19 projects | news.ycombinator.com | 7 Nov 2022
    Hey thanks for the thoughtful response.

    I agree with everything you mentioned here. I'd love to continue to chat with you about how to make testing sagas better.

    If you'd like, it would be great if we could move this convo to https://github.com/redux-saga/redux-saga/discussions/2337

  • What is the best plan to catch data from multiple api calls and display some data
    2 projects | /r/reactjs | 16 Oct 2022
    If there are dependent API calls, you can probably look at redux-saga. It’s one of the best libraries out there to manage the data.
  • [AskJS] Where will I need to write generator functions?
    4 projects | /r/javascript | 17 Sep 2022
    redux-saga makes use of them in really nice way. https://redux-saga.js.org/ That’s where I’ve used them the most.

What are some alternatives?

When comparing purescript-halogen and redux-saga you can also consider the following projects:

solid-start - SolidStart, the Solid app framework

redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development

purescript-flame - Fast & simple framework for building web applications

react-query - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]

solid-site - Code that powers the SolidJS.com platform.

rtk-query - Data fetching and caching addon for Redux Toolkit

reagent - A minimalistic ClojureScript interface to React.js

axios - Promise based HTTP client for the browser and node.js

nixos-config - My NixOS configuration

SWR - React Hooks for Data Fetching

purescript-react-basic - An opinionated set of bindings to the React library, optimizing for the most basic use cases

Immer - Create the next immutable state by mutating the current one