Repository navigation
feat(workflows): if/else, loops, dynamic ports and custom nodes on the canvas - #68
Merged
Merged
Conversation
…and custom nodes Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012EHxSymUdfN5QfB1y384zm
The editor draws named input and output ports, opens loop and group bodies with a breadcrumb, folds selected nodes into a group or a saved custom node, sets custom node parameters, and dry-runs a workflow on a recording with a per-node trace. Custom nodes get their own tab and editor with versions and sharing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012EHxSymUdfN5QfB1y384zm
OpenAPI client regenerated with make openapi. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012EHxSymUdfN5QfB1y384zm
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012EHxSymUdfN5QfB1y384zm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Description
Before: a workflow was a straight graph of fixed nodes. The only branch was a yes/no condition, nothing could repeat, every node had one input and one output, and there was no way to package nodes for reuse.
After: the canvas works the way n8n and Langflow do. You get:
Existing workflows run unchanged, because old condition edges are read as ports.
Motivation and Context
Adeel asked that workflows and pipelines be fully customizable without friction, including the nodes themselves: primitive nodes users can extend or combine into private or shared custom nodes. We stayed on React Flow (MIT, already in use). Langflow and VisualFlow are both built on it. Flow-Like is a BSL Rust/Tauri app and can't be embedded. Formity is a forms library.
How: a single engine (
app/domain/flow.py) now runs both recording and organize workflows. It covers port-aware DAG ordering, skipping of untaken branches, loop and group bodies as nested graphs, and step, depth and node budgets.app/domain/custom_nodes.pywith/api/v1/custom-nodesstores versioned custom nodes, along with their visibility and parameters ({"$param": name}references).POST /api/v1/workflows/testis the dry run. On the frontend,GraphEditoradds breadcrumbs into bodies, multi-select, fold into a group or custom node, and parameter settings. Custom nodes also get a tab and an editor under Workflows. The OpenAPI client was regenerated withmake openapi.Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.## UnreleasedinCHANGELOG.md.Validation, run locally:
test_office_and_text_files_become_documents, is because LibreOffice in the container can't load the docx, which is unrelated.🤖 Generated with Claude Code
https://claude.ai/code/session_012EHxSymUdfN5QfB1y384zm
Generated by Claude Code