FlowGraph Core
FlowGraph is the GUI-free Python workflow engine. It provides typed workflow
composition, validation, persistence, execution, adapters, mesh and image data
operations, browser-WASM execution support, and metadata-only catalog export
for compatible external clients.
Alpha status: FlowGraph Core
0.1.xis an alpha series for evaluation, development, experimentation, and early adopter feedback. APIs and workflow behavior may change before1.0.0. SeeRelease Policy.
Incremental workflow execution
WorkflowExecutor remains stateless. Use WorkflowSession for selected targets,
dependency-aware cache reuse, forced runs and session lifecycle. See
Incremental execution for the Python
API, node safety contracts, transport options and resource limits.
Development setup
uv sync --extra dev --extra io
uv run pytest
uv run ruff check .
See Contributing for prerequisites, development
workflow, testing, documentation, and pull-request expectations.
Headless workflows
The flowgraph command is headless and has no GUI runtime dependency:
uv run flowgraph inspect workflow.json
uv run flowgraph inspect workflow.json --full
uv run flowgraph inspect workflow.json -i name=value --override node-id.parameter=value
uv run flowgraph run workflow.json --input name=value
uv run flowgraph run workflow.json -i name=value
uv run flowgraph run workflow.json --override node-id.parameter=value
uv run flowgraph run workflow.json --json-output results.json
uv run flowgraph run workflow.json --verbose
uv run flowgraph run workflow.json --plugin /path/custom_nodes.py
uv run flowgraph inspect workflow.json --plugin /path/custom_nodes.py --full
Use repeatable --plugin FILE.py to load trusted custom definitions exported as
AVAILABLE_NODES. The same option on flowgraph serve adds nodes to its catalog
and execution workers. Imports execute Python code, including during inspection;
only load trusted files. See the plugin guide
for the file format, path rules, dependencies and restart requirements.
Use --input or its short form -i for each published workflow input; repeat
the option to provide multiple inputs.
Add --verbose (or -v) to run for execution states and live, bounded node
output-port summaries on stderr, matching serve diagnostics. Node stdout/stderr
remain visible and Python console output is line-buffered in verbose mode.
Summaries use runtime values without making copies or generating previews.
Verbose logs may contain sensitive workflow data; keep them private.
Final outputs and --json-output retain their normal behavior.
flowgraph inspect displays the resolved default to the right of each published
input, or marks it as required or having conflicting saved values.
Inspection is compact by default; add --full (or -f) to include the workflow
graph. Arbitrary-code warnings remain visible in both modes.
Inspection accepts the same --input / -i and --override assignments as
execution: overrides update the displayed defaults, and explicit inputs take
precedence and are marked (--input). It never executes nodes or saves changes.
When an input is omitted, flowgraph run uses its downstream node's saved
parameter value and prints a warning to stderr identifying the input, value,
and parameter. This also works for directly exported parameters and nested
workflow inputs. Explicit inputs take precedence; parameter overrides are applied
before resolving defaults. Inputs without usable saved values remain required,
and conflicting saved values require an explicit --input.
For examples and warning output, see
Omitted inputs and saved parameter values.
Workflows use the versioned flowgraph-workflow JSON format. Core validation and
execution are UI-independent.
JSON execution boundary
Python clients and browser-hosted Python workers use the same entry point:
from flowgraph.application.workflow_execution import execute_workflow_json
result_json = execute_workflow_json(workflow_json)
The response includes execution order, public outputs, retained node values, display previews, warnings, and structured errors. A process-local node registry is reused, but each call reconstructs its workflow. This API does not provide a server, authentication, cancellation, or filesystem isolation.
Mesh display previews retain scalar values or vector magnitudes in fields and
cell_fields. Multi-component fields additionally expose their original tuples
in field_components and cell_field_components, indexed by vertex or surface
triangle respectively, so viewers can select an individual component without
rerunning the workflow. These preview projections do not modify the input mesh.
The former WASM-specific execution module has been removed without a compatibility alias. Browser clients must update their import and rebuild/stage their core wheel together; the workflow file and execution response formats are unchanged.
Experimental local server
Optional workspace packages
Install the server extra (uv sync --extra server, or install flowgraph[server])
and pass --allow-package-install to flowgraph serve to enable the web editor's
confirmed wheel-only installation API. It is disabled by default. Compatible
prebuilt Python/native wheels are installed with uv into
<workspace>/.flowgraph-packages/<python-and-platform-id>/site-packages, not the
base environment. Extras persist across server restarts. Stop the backend and
delete .flowgraph-packages to remove them. Read-only workspace destinations,
source builds, conflicting distributions and base-module shadowing are rejected.
Installation requires idle execution and restarts session workers, clearing caches.
The managed directory is excluded from the file API. Only install trusted code;
this is not a sandbox or a multi-user package service.
The prototype branch includes an authenticated execution API (loopback by default):
For LAN or internet browser clients, put an HTTPS reverse proxy in front of the
API and pass --public-url https://python.example.com to flowgraph serve.
The proxy must preserve the public Host header, Authorization, Origin, and CORS
preflight headers. Leave Python on 127.0.0.1:8765 when the proxy runs on the
same machine. An explicit IPv4 --host (including 0.0.0.0) is supported but
non-loopback binding requires --public-url; restrict the HTTP port to a trusted
proxy network. This option advertises HTTPS; it does not enable TLS in Python.
Certificates must be trusted by browser clients, including for private LAN IPs.
Use --allow-origin to allow your exact editor origin (the hosted editor is the
default). The launch link includes the remote backend address in its fragment.
This is a trusted single-user service, not a sandbox or a public multi-user API;
use an unprivileged account, firewall/VPN restrictions, and proxy request limits.
uv run flowgraph serve --workspace /absolute/path/to/existing/workspace
Add --verbose (or -v) for server lifecycle, configuration, sanitized HTTP
activity, execution state changes, and bounded node output-port summaries on
stderr. Worker stdout/stderr (prints and logs) also appear in the console.
Verbose logs may contain sensitive workflow data; keep them private.
For an isolated tool launch:
uvx --with imagej flowgraph serve --workspace . --verbose
Port 8765 and the allowed editor origin https://flowgraph-web.fbw-es.com are
defaults; explicit --allow-origin values replace that origin. The editor still
requires bearer authentication and browser local-network permission. Click the
printed Open editor link to pass the token and port automatically; keep the
link private.
It runs one workflow at a time in a cancellable native subprocess and provides
runtime metadata, catalog, and workspace file endpoints. Execution timeouts are
advisory: the worker remains alive until completion or explicit cancellation,
and the HTTP server is not stopped. GUI clients can supply a per-job timeout;
--execution-timeout sets the default warning threshold (120 seconds).
Core is API-only and never
serves editor assets. Web and desktop clients own their GUI hosting and explicitly
allow their origin with --allow-origin. Native workflow code is not sandboxed.
See Local server API and limitations for authentication,
request/response formats, examples, limits, and shutdown behavior.
Package artifacts
Build the portable, pure-Python source distribution and wheel with:
uv build --out-dir dist/
The resulting wheel is compatible with all supported Python platforms. See
packaging/README.md for release details.
Conda, Docker, operating-system package managers, and third-party mirrors are not
supported release channels at this time. See
Release Channels for the release policy.
FlowGraph Core declares Python 3.11 or newer. CI covers Python 3.11, 3.12, 3.13, and 3.14 on
GitHub-hosted Ubuntu, Windows, and macOS runners; a platform/version combination
is supported only after its release-candidate job passes. See
Support Policy for compatibility, deprecation,
maintenance, and unsupported-use policies.
Catalog export
FlowGraph can export non-executable node metadata for tools that need to author or structurally validate workflow JSON:
uv run python -m flowgraph.application.workflow_web_catalog node-catalog.json
The catalog intentionally excludes node executors and other callable runtime behavior.
Documentation and support
- FlowGraph documentation
- Built-in node catalog and Python custom-node guide.
- The website documentation lives in
doc/(outside the Python package). To build the Read the Docs site locally, runuv run --with zensical zensical build -f zensical.tomlfrom this repository. Architecturedescribes the core boundaries and workflow model.Support Policydescribes supported environments and compatibility expectations.SECURITY.mdexplains private vulnerability reporting and the security boundaries of workflows and adapters.Changelogrecords release changes and known limitations.docs/workflow-format.mddocuments persistence, compatibility, and capability boundaries.
Optional integrations
The io extra supplies meshio, Meshlane, pandas, h5py, Pillow, and openpyxl
for mesh, table, and image I/O and image processing. Install it when your
workflows use these libraries:
uv pip install 'flowgraph[io]'
# From a source checkout:
uv sync --extra io
The ml extra enables the PyPlaid adapter and the cosapp extra enables the
CoSApp adapter. Neither extra is part of the minimum core support guarantee.
Install an extra only when its upstream dependency, license terms, platform
requirements, and integration behavior have been reviewed for the target
release:
uv sync --extra ml
uv sync --extra cosapp
Optional adapters may execute external tools or user-provided models. Treat their workflows as trusted input and test the exact dependency versions before production use.
License
FlowGraph Core is licensed under the BSD 3-Clause License. Release compliance requires review of the exact dependency lockfile, build artifacts, third-party notices, native dependencies, and applicable license obligations.
Metadata
Release files for flowgraph 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flowgraph-0.1.9.tar.gz | 2.1 MB | With provenance | Details for flowgraph-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flowgraph-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for flowgraph-0.1.9-py3-none-any.whl |
Total release size: 4.0 MB
Release files / flowgraph-0.1.9.tar.gz
| Download URL | flowgraph-0.1.9.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81d5dd930cc496f690a2ec997825f579cf85b343f64ed353740b8c76761be687
|
|
BLAKE2b-256 checksum How to use checksums |
e490283d28a6654338426702e1ba17aef1fdb31692ca34824920220e8f3a3fca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / flowgraph-0.1.9-py3-none-any.whl
| Download URL | flowgraph-0.1.9-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6cb11326e88f5bf378f15cfb667ffd8c00c2ca737cb97f890227c9f1a5ccd80b
|
|
BLAKE2b-256 checksum How to use checksums |
848c89baf611a3608b42c1556281d7568a24493bdd5d39e22f443126ec1b4620
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for flowgraph 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for flowgraph-0.1.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.