npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

stepforge

v0.3.0

Published

Code-first workflow runner for developers

Readme

Stepforge

Stepforge is a code-first workflow runner for developers.

It lets you define operational workflows in TypeScript, automatically visualize them as a step graph, and run them from a local UI with live progress, logs, retries, and status.

Workflows are written as normal async code.
The structure is inferred and rendered automatically.

No YAML. No visual editors. Code is the source of truth.

Stepforge demo showing a workflow running with live steps, retries, and map processing

Why Stepforge?

Engineers often rely on ad-hoc scripts and runbooks to:

  • test integrations
  • orchestrate AWS services
  • provision or configure infrastructure
  • run operational or setup tasks

These scripts work, but they’re hard to observe and harder to debug:

  • no clear notion of steps
  • no progress visibility
  • failures are buried in logs
  • retries and partial reruns are manual

Existing workflow tools usually require translating working code into configuration files or rigid orchestration systems.

Stepforge runs scripts like workflows, without turning them into systems.


What you get

  • 🧠 Code-first workflows written in TypeScript
  • 🧩 Automatic step graph derived from code
  • ▶️ Local UI to run workflows and watch them execute
  • 📊 Live progress, logs, retries, and status
  • 🔁 Map / loop support with per-iteration visibility
  • Checks and assertions for explicit validation
  • 🧪 Local-first with zero infrastructure required

How it works (high level)

Stepforge is shipped as a single package, but internally has three clear responsibilities.

1. Workflow definition (TypeScript)

Workflows live in .forge.ts files and use a small SDK.

import { workflow } from "stepforge";

export default workflow("Example", (wf) => {
  wf.step("First step", async (ctx) => {
    ctx.log.info("Hello");
  });

  wf.step("Second step", async (ctx) => {
    ctx.log.info("World");
  });
});

Steps are declared directly in code. There is no separate graph definition.


Typed inputs (optional)

Workflows can declare typed inputs that automatically power the UI and CLI.

import { workflow, inputs } from "stepforge";

export default workflow(
  "Example",
  inputs([
    {
      name: "count",
      type: "number",
      label: "Count",
      default: 5,
    },
  ]),
  (wf) => {
    wf.step("Process", async (ctx) => {
      ctx.log.info(`Count: ${ctx.inputs.count}`);
    });
  }
);

Inputs are:

  • strongly typed
  • validated at runtime
  • editable in the UI before each run

2. Local daemon (planning + orchestration)

Run Stepforge against a directory of workflows:

npx stepforge ./workflows

Stepforge will:

  • scan the directory for *.forge.ts files
  • load workflows in plan mode to build a static step graph
  • serve a local UI
  • let you start workflow runs on demand

The graph is built before execution and reused during runs, ensuring stable node identities and predictable visualization.


3. Runner (execution + events)

When a workflow is run:

  • it executes in an isolated Node.js process
  • steps emit structured runtime events (start, logs, retries, end)
  • events are streamed back to the UI in real time

Because node IDs are stable, runtime events map directly onto the pre-built graph.


Key design principles

  • Code is the source of truth
  • Graphs are derived, never authored
  • Execution is observable by default
  • Retries, checks, and loops are first-class
  • No side effects at import time
  • Local-first and developer-friendly

Status

Stepforge is currently experimental.

The architecture is intentionally simple and designed to evolve toward:

  • run history and inspection
  • resumable and partial reruns
  • parallel execution
  • richer artifacts and outputs

Feedback, ideas, and contributions are very welcome.


License

MIT