@guidegraph/effects
v0.1.0-alpha.1
Published
Optional side-effect/outbox worker utilities for GuideGraph.
Maintainers
Readme
@guidegraph/effects
Optional side-effect/outbox worker utilities for GuideGraph.
GuideGraph server can return structured WorkflowSideEffect records when workflow definitions, steps, transitions, hooks, or compensation metadata produce effects. This package helps host apps dispatch those effects explicitly.
GuideGraph does not secretly send emails, call webhooks, or run arbitrary code. The host app registers handlers.
import { processGuideGraphEffects } from "@guidegraph/effects";
await processGuideGraphEffects(result.sideEffects, {
webhook: async ({ effect }) => {
await fetch(effect.target!, { method: "POST" });
}
});