awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
facebook avatar

facebook/regeneratorArchived

0
View on GitHub↗
3,827 stars·1,135 forks·JavaScript·MIT·14 viewsfacebook.github.io/regenerator↗

Regenerator

Regenerator is a JavaScript generator transpiler and build-time code processor. It converts ECMAScript generator functions and asynchronous iteration into ES5 compatible state machines to ensure modern control flow works in legacy runtimes.

The project functions as an ES5 compatibility transformer that rewrites advanced asynchronous patterns into standard JavaScript. It includes a runtime polyfill helper library to manage the iteration protocol and coordinate state transitions for the transpiled code.

The tool provides capabilities for language transformation and asynchronous workflow polyfilling, enabling legacy browser compatibility by integrating into the JavaScript build pipeline.

Features

  • JavaScript Transpilers - Convert generator functions and asynchronous iteration into compatible code to ensure modern control flow works in older environments.
  • Iteration Protocol - Provides a runtime helper library that polyfills the iteration protocol to coordinate state transitions.
  • JavaScript Compatibility Transformations - Provides compatibility transformations to rewrite modern asynchronous patterns for older environments.
  • Asynchronous Primitives Polyfills - Ships a runtime polyfill for asynchronous primitives to manage iteration protocols and state transitions.
  • JavaScript Transpilation - Converts advanced ECMAScript features into standard ES5 code for cross-browser compatibility.
  • Source-To-Source Transpilers - Implements a source-to-source transpiler that converts modern ECMAScript generators into ES5 compatible code.
  • Asynchronous Flow Control - Implements technical asynchronous flow control to enable generator-like behavior in legacy runtimes.
  • Generator State Machines - Rewrites generator functions into a flat switch-case state machine to emulate execution pauses.
  • Source Code Rewriting - Performs structural rewriting of source code to replace high-level constructs with lower-level logic.
  • Build-Time Transformation Tools - Functions as a build-time tool that transforms source code into a distributable ES5 format.
  • Closure-Based Variable Retentions - Utilizes closures to retain variable access and execution state across generator yields.
  • Legacy Browser Support - Ensures modern asynchronous patterns work in older web browsers lacking native generator support.
  • Transpilers - Transforms generator functions into ES5-compatible code.

Star history

Star history chart for facebook/regeneratorStar history chart for facebook/regenerator

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does facebook/regenerator do?

Regenerator is a JavaScript generator transpiler and build-time code processor. It converts ECMAScript generator functions and asynchronous iteration into ES5 compatible state machines to ensure modern control flow works in legacy runtimes.

What are the main features of facebook/regenerator?

The main features of facebook/regenerator are: JavaScript Transpilers, Iteration Protocol, JavaScript Compatibility Transformations, Asynchronous Primitives Polyfills, JavaScript Transpilation, Source-To-Source Transpilers, Asynchronous Flow Control, Generator State Machines.

Which projects share features with facebook/regenerator?

Projects with overlapping indexed features include: google/traceur-compiler — Traceur is a JavaScript syntax transpiler that transforms modern and next-generation language features into compatible… babel/babel — Babel is a pluggable JavaScript compiler and transpiler that converts modern ECMAScript syntax into… thejameskyle/babel-handbook — This project is a comprehensive manual and educational resource focused on the Babel compiler. It serves as a… jashkenas/coffeescript — CoffeeScript is a source-to-source transpiler that transforms a concise high-level syntax into standard JavaScript. It… babel/minify — This project is an AST-based code optimizer and compressor for modern ECMAScript, JSX, and TypeScript source code. It… alangpierce/sucrase — Sucrase is a high-speed transpilation tool that compiles modern JavaScript, TypeScript, JSX, and Flow to standard…

Projects sharing features with Regenerator

These projects share indexed features with Regenerator. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • google/traceur-compilergoogle avatar

    google/traceur-compiler

    8,164View on GitHub↗

    Traceur is a JavaScript syntax transpiler that transforms modern and next-generation language features into compatible versions for older runtime environments. It functions as a compiler that translates proposed language standards and upcoming syntax into current versions to maintain cross-engine compatibility. The project operates as an asynchronous code transformer, converting async functions and generators into promise-based state machines. It includes a functional tail-call optimizer that wraps recursive functions in trampolines to prevent stack overflows and an ECMAScript polyfill engine

    JavaScript
    View on GitHub↗8,164
  • babel/babelbabel avatar

    babel/babel

    44,009View on GitHub↗

    Babel is a pluggable JavaScript compiler and transpiler that converts modern ECMAScript syntax into backwards-compatible versions of the language. It functions as an abstract syntax tree manipulator, parsing source code into a hierarchical structure to traverse and modify nodes for custom code transformations. The system utilizes a plugin-driven architecture to apply specific transformation rules and supports presets that bundle multiple plugins into named configuration groups. This enables the transformation of experimental syntax and the injection of non-global polyfills to ensure consisten

    TypeScriptastbabelcompiler
    View on GitHub↗44,009
  • jashkenas/coffeescriptJ

    jashkenas/coffeescript

    16,601View on GitHub↗

    CoffeeScript is a source-to-source transpiler that transforms a concise high-level syntax into standard JavaScript. It enables the development of logic for web applications and server-side environments by converting source code into a format compatible with browsers and server runtimes. The project provides a workflow for rapid prototyping and script execution automation, allowing users to run source files through a compiler and execute the resulting code immediately without a manual build step. The tooling leverages lexical analysis and abstract syntax tree transformations to manipulate cod

    CoffeeScript
    View on GitHub↗16,601
  • thejameskyle/babel-handbookthejameskyle avatar

    thejameskyle/babel-handbook

    12,109View on GitHub↗

    This project is a comprehensive manual and educational resource focused on the Babel compiler. It serves as a documentation guide and handbook for understanding the inner workings of JavaScript compilation, specifically regarding the transformation of source code. The material provides a technical walkthrough for developing custom plugins and extensions. It covers the process of creating tailored transformations to modify how JavaScript is parsed and generated. The content encompasses the broader JavaScript compilation workflow, focusing on abstract syntax tree manipulation, code generation,

    View on GitHub↗12,109
Compare all 30 related projects→