JavaScript Generators

Open-source JavaScript projects categorized as Generators

Top 5 JavaScript Generator Projects

  • co

    The ultimate generator based flow-control goodness for nodejs (supports thunks, promises, etc)

    Project mention: Unlocking the Power of JavaScript Generators: Master Asynchronous Programming with Ease | dev.to | 2024-06-21

    Leverage Libraries: Libraries like co can help manage generators and asynchronous code, providing a more streamlined experience.

  • CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  • taskr

    A fast, concurrency-focused task automation tool.

  • suspend

    Callback-free control flow for Node using ES6 generators.

  • bluebird-co

    A set of high performance yield handlers for Bluebird coroutines

  • delimgen

    Delimited Generators - Minimal Delimited Control for JS

    Project mention: A more natural API for JavaScript generators | news.ycombinator.com | 2024-05-03

    I think it's unclear because the examples are simple enough that you could easily reproduce them with generators.

    I think the ball example (https://github.com/manuel/delimgen/blob/main/demo/balls.html) is maybe the most helpful to look at. It provides an abstraction over the wrapped generator which allows you to inject events into the generator. You could do this with generators alone, but this syntax lets you write it more like synchronous code (and has the added benefit of not being "coloured" by async/await). The `run` method essentially allows you to pass of handling of a continuous process so you don't need to worry about the orchestration of concurrent tasks. In this case, ball is able to move itself around the document as soon as it's yielded, and the implementation details of that behaviour are totally hidden from where the event is injected.

    I'm still trying to wrap my head around how I'd use delimited continuation in more practical ways, so I might be misunderstanding quite badly. It seems to me that generators themselves are a form of continuation, and we often create delimited continuations when we implement programs with generators. In this case, the library essentially ties the loose ends by reifying the continuation as a function. In this case, the function is what provides the synchronous-like syntax as well.

  • SaaSHub

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

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

JavaScript Generators discussion

Log in or Post with

JavaScript Generators related posts

  • Unlocking the Power of JavaScript Generators: Master Asynchronous Programming with Ease

    1 project | dev.to | 21 Jun 2024
  • Main-Thread-Scheduling

    4 projects | news.ycombinator.com | 4 Jan 2024
  • What's another way to write "for await" that is es6 compatible?

    1 project | /r/learnjavascript | 25 Jun 2022
  • Promises: async/await vs .then(), how we got here and why I use both

    2 projects | dev.to | 19 Mar 2022
  • What happened to faker.js?

    3 projects | /r/opensource | 4 Jan 2022
  • 🚀10 Trending projects on GitHub for web developers - 2nd April 2021

    2 projects | dev.to | 2 Apr 2021
  • A note from our sponsor - SaaSHub
    www.saashub.com | 1 Nov 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Generator projects in JavaScript? This list will help you:

Project Stars
1 co 11,873
2 taskr 2,534
3 suspend 547
4 bluebird-co 76
5 delimgen 12

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you konow that JavaScript is
the 3rd most popular programming language
based on number of metions?