r/coolgithubprojects • • 11m ago

workflow-walker: a durable DAG runner for Vercel Workflow, Inngest, Cloudflare Workflows and AWS Lambda durable functions

https://github.com/pipevals/workflow-walker

I built workflow-walker for pipevals, an open-source LLM evaluation platform, where it runs the evaluation pipelines. I've extracted it into its own MIT-licensed package so other projects can use it.

You give it a graph of steps, a persistence adapter and your step handlers. It runs the graph level by level, runs the steps within a level in parallel, follows conditional branches, and can suspend on a hook, for example to wait for a human review.

What it does

  • Resumes after a crash. Every step has a deterministic name (node:<id>:handler and so on), so the engine can replay a run and pick up at the first unfinished step.
  • Runs on several engines. Vercel Workflow ("use step"), Inngest (step.run), Cloudflare Workflows (step.do) and AWS Lambda durable functions (context.step) through a small adapter, or in-process with no engine.
  • Gates on branches. A node behind a branching node runs only on its branch, even if it also takes data from upstream.
  • Always finishes the run. A run ends in a terminal status even when something fails outside a step.

Repo: https://github.com/pipevals/workflow-walker npm: https://www.npmjs.com/package/@pipevals/workflow-walker

It's early, so the API can still change. I'd like to hear what's missing for your engine or use case.

1 Upvotes

0 comments sorted by