Skip to content

JustTanwa/js-event-loop-visualizer

Repository files navigation

JavaScript Event Loop Visualizer (Vibe Coded)

A Next.js application designed to provide an interactive and visual explanation of the JavaScript Event Loop, helping developers understand how asynchronous code is handled.

This project showcases the flow of code from the Call Stack to (Macro)Task Queue and Microtask Queue.

Features

Interactive Simulation: Step through different scenarios to see how JavaScript handles setTimeout, fetch, and other asynchronous operations.

Real-time Visualization: Watch the Call Stack, Microtask Queue and Task Queue update dynamically as animation for example codes.

Getting Started

To get a copy of this project up and running on your local machine, follow these steps.

Prerequisites

  • Node.js (npm comes bundled with Node.js)

Installation

git clone https://github.com/justtanwa/js-event-loop-visualizer.git

Navigate into the project directory:

cd js-event-loop-visualizer

Install the project dependencies:

npm install

How to Run Locally

Once the dependencies are installed, you can start the development server.

npm run dev

The application will now be running on your local machine. Open your web browser and navigate to:

http://localhost:3000

The page will automatically reload as you make changes to the code.

Technologies Used

Next.js: The React framework used for building the application.

React: For building the user interface.

TypeScript: The core language for the application logic.

Tailwind: For component-scoped styling.

About

A SPA to show how JavaScript Event Loop works with examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published