Effection 3.0 – Structured Concurrency and Effects for JavaScript

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • starfx

    A modern approach to side-effect and state management for web apps.

  • `redux-saga` maintainer here.

    I've been using `effection` to build a replacement for `redux-saga` over at https://github.com/neurosnap/starfx

    Effection has demonstrated to me how truly powerful delimited continuations are and why structured concurrency is an incredible asset for anything that requires async flow control -- basically everything in TS/JS.

    I know sometimes it's hard to imagine why someone would need structured concurrency or care about delimited continuations for a front-end application, but this is a game changer in terms of expressing async flow control.

    Some things to note about Effection:

    - API surface area is small https://github.com/thefrontside/effection/issues/851

    - It tries to stay as close to JS constructs as possible so it will feel very familiar

    - Resource cleanup is automatic (when a function passes out of scope all descendent tasks are shut down automatically)

    - End-user doesn't need to think about delimited continuations

    The only leap users need to "deal with" coming from async/await is the syntax.

        import { main, call } from "effection";

  • effection

    Structured concurrency and effects for JavaScript

  • `redux-saga` maintainer here.

    I've been using `effection` to build a replacement for `redux-saga` over at https://github.com/neurosnap/starfx

    Effection has demonstrated to me how truly powerful delimited continuations are and why structured concurrency is an incredible asset for anything that requires async flow control -- basically everything in TS/JS.

    I know sometimes it's hard to imagine why someone would need structured concurrency or care about delimited continuations for a front-end application, but this is a game changer in terms of expressing async flow control.

    Some things to note about Effection:

    - API surface area is small https://github.com/thefrontside/effection/issues/851

    - It tries to stay as close to JS constructs as possible so it will feel very familiar

    - Resource cleanup is automatic (when a function passes out of scope all descendent tasks are shut down automatically)

    - End-user doesn't need to think about delimited continuations

    The only leap users need to "deal with" coming from async/await is the syntax.

        import { main, call } from "effection";

  • 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 logo
  • effection-react-loadingspinner

    Demo of a sophisticated loading spinner using structured concurrency with Effection

  • Here is an example of using Effection with React to build a sophisticated loader https://github.com/taras/effection-react-loadingspinner

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts