@wfgraph/client
v2.0.2
Published
Workflow Graph's node-based editor, built and handed to createWfGraphApp as its client bundle
Downloads
442
Maintainers
Readme
@wfgraph/client
The visual editor for Workflow Graph, shipped as a
built single-page bundle. Your team builds workflow graphs and declares Lifecycle Rules here,
against the Events and actions your code declared with
@wfgraph/core.
npm install @wfgraph/clientThe package exports one value, a pointer to the built assets on disk. Workflow Graph's server does not depend on this package and cannot find it on its own, so passing it is what turns the UI on.
import { clientBundle } from "@wfgraph/client";
import { createWfGraphApp } from "@wfgraph/core";
const wfgraph = await createWfGraphApp({
client: clientBundle /* ...the rest */,
});Nothing here is a React component you render yourself, and the package has no runtime
dependencies: React, the graph canvas, and the stylesheet are already inside the bundle. It is
released in lockstep with @wfgraph/core and always carries the same version, because the
editor speaks that version's API contract.
Docs
- Embedding, which covers serving the editor and the SPA path rule
- Product and design vocabulary
Apache-2.0.
