🤖

Automate Your Life: Building a Workflow Engine in TypeScript

Recordings

YouTubeYouTubeAutomate Your Life: Building a Workflow Engine in TypeScript | Alfonso Graziano | jsday 2025

Slides

Google DocsGoogle DocsBuilding a Workflow Engine in Typescript

Abstract

In today's world, repetitive tasks can be automated to make life easier. I'll guide you in building a custom Workflow Engine using TypeScript to simplify your daily routines. We'll explore practical uses and create various plugins, including connections with IoT devices and Large Language Models.
You will learn how to build a Workflow Engine that uses Directed Acyclic Graphs (DAGs), allowing for complex workflows with parallel tasks and decision-making paths. We'll explain how graph structures support automation, using algorithms like Depth-First Search for validation. You'll also learn to use recursive Promise chaining to handle tasks running at the same time and branching paths, ensuring workflows run smoothly.
We'll begin with the basics of workflow automation, then move to real-world examples that combine software, hardware, and AI. The goal of this talk is to give you a blend of useful theoretical foundations and practical tools to quickly build automations using Javascript or Typescript.
As cherry on the cake, we will look at how to build a dynamic plugin system to build your plugins and expand the capabilities of the base engine.