@rezza.io/workflow
TypeScript icon, indicating that this package has built-in type declarations

0.5.5 • Public • Published

@rezza.io/workflow

Getting Started

Install

With NPM

npm add @rezza.io/workflow

With bun

bun add @rezza.io/workflow

Create a workflow

import { WorkflowBuilder } from "@rezza.io/workflow";

const workflow = WorkflowBuilder.create()
  .addGroup("input")
  .addNode({ key: "name", group: "input" }, () => "World")
  .addNode({ key: "greeting", deps: ["name"] }, ({ get }) => `Hello, ${get("name")}!`)
  .build();

const result = await workflow.run();
console.log(result.greeting); // Output: "Hello, World!"

Readme

Keywords

none

Package Sidebar

Install

npm i @rezza.io/workflow

Weekly Downloads

4

Version

0.5.5

License

none

Unpacked Size

35.3 kB

Total Files

14

Last publish

Collaborators

  • cinoss