Package: stepeditor
A step-by-step workflow editor for Go projects, similar to Power Automate. It provides an embeddable UI — Vue.js 3 and Bootstrap — where users build flows with branching and conditional logic, serialized as deeply nested JSON.
Repository: https://github.com/dracory/stepeditor
Installation
go get github.com/dracory/stepeditor
Usage
editor := stepeditor.New(stepeditor.Config{
Endpoint: "/editor",
StepDefinitions: []stepeditor.CustomStep{
ConditionStep{}, // implements StepDefinition() stepeditor.StepDefinition
},
})
http.Handle("/editor/", editor)
Features
- Branching support — True/False style conditional paths.
- Mount on any HTTP endpoint (
ServeHTTP) or embed viaToHTML(). - Custom step types via the
CustomStepinterface. - Load/save flows as nested JSON (
GetFlow/SetFlow).