Skip to main content

Debug UI for flow-forge-ai workflows.

Project description

flow-forge-ai-ui

Web UI for browsing and replaying flow-forge-ai workflow runs.

PyPI Python CI codecov Type Checking: mypy UI: FastAPI

What It Does

  • Connects to the runtime listener started by flow-forge-ai
  • Displays a list of recorded runs and their steps/events
  • Lets you trigger and monitor workflow replays from the browser

Requirements

  • flow-forge-ai installed and configured with [runtime].enable = true
  • The runtime listener must be reachable at the configured listener_host:listener_port

Installation

Install the package and its dependencies:

pip install flow-forge-ai[ui]

For development

cd ui
pip install -e .

Or install via the ui extra from the core package:

cd core
pip install -e ".[ui]"

Starting the UI

flow-forge-ai-ui

By default the server listens on http://127.0.0.1:8080.

Options

flow-forge-ai-ui --host 0.0.0.0 --port 9090
Flag Default Description
-H / --host 127.0.0.1 Bind address
-p / --port 8080 Port

Configuration

The UI reads config.toml from the current working directory (the same file used by the core runtime). It uses the [runtime] section to locate the listener:

[runtime]
enable = true
listener_host = "127.0.0.1"
listener_port = 7070

Make sure the runtime listener is started before opening the UI. The core package starts the listener automatically when a workflow run begins inside an instrumented process.

Usage

  1. Start your workflow in another terminal (the core runtime listener starts automatically):

    cd core/examples/02_ollama_workflow_decorator
    python example.py
    
  2. Start the UI from the directory containing config.toml:

    flow-forge-ai-ui
    
  3. Open http://127.0.0.1:8080 in your browser.

The UI shows all recorded runs. Select a run to inspect its steps and events, or trigger a replay.

API Routes

The UI itself is a thin FastAPI app that proxies requests to the core runtime listener. It exposes the following routes:

Method Path Description
GET / Main UI page (HTML)
GET /api/runs Proxy: list runs
GET /api/steps Proxy: list steps for a run
POST /api/runs/{run_id}/replay Proxy: start replay
GET /api/runs/{run_id}/replay Proxy: get replay status
DELETE /api/runs/{run_id}/replay Proxy: stop replay

Package Layout

ui/
├── src/flow_forge_ai_ui/
│   ├── app.py          # FastAPI app factory and CLI entry point
│   ├── routes.py       # Route handlers and runtime proxy client
│   ├── templates/      # Jinja2 HTML templates
│   └── static/         # JS and static assets
└── tests/

Development

# Install dev dependencies (from core package which includes UI dev deps)
cd core
pip install -e ".[dev]"

# Run UI tests
cd ui
pytest

# Run tests with coverage
pytest --cov=flow_forge_ai_ui --cov-report=term-missing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flow_forge_ai_sdk_ui-0.1.1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flow_forge_ai_sdk_ui-0.1.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file flow_forge_ai_sdk_ui-0.1.1.tar.gz.

File metadata

  • Download URL: flow_forge_ai_sdk_ui-0.1.1.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flow_forge_ai_sdk_ui-0.1.1.tar.gz
Algorithm Hash digest
SHA256 79b2d8cf0381b45a6ce0c01a163aee96ada47c275702267ea21cbb5afa1df95e
MD5 aa77fd12baa49ff2ad703f320c0a5a2a
BLAKE2b-256 fc18cda0d768f533cf452aa7209b459ca9993e27d85fe9a60ec82c1806a2d361

See more details on using hashes here.

Provenance

The following attestation bundles were made for flow_forge_ai_sdk_ui-0.1.1.tar.gz:

Publisher: publish.yml on alonzo86/flow-forge-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flow_forge_ai_sdk_ui-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for flow_forge_ai_sdk_ui-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d75b6fefafec900c64190e714bd7d54662b58fc0bcc2e1a57e8f1706d1d259a
MD5 0b2c2ff5c40b20dec66f948a169e0f9c
BLAKE2b-256 9eadf5d3f730ffdc6f131ec7a63eb6532bf631e5d2228a35b7c773eba2f231d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for flow_forge_ai_sdk_ui-0.1.1-py3-none-any.whl:

Publisher: publish.yml on alonzo86/flow-forge-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page