This module provides the user interface for FlowDrop, a visual workflow editor built with Svelte. It integrates the FlowDrop library into Drupal, allowing users to visually build and manage workflows.
A Drupal module providing the user interface for FlowDrop - a visual workflow editor built with Svelte.
NOTE:
- This project is released in sync with upstream flowdrop library.
- For detailed changelog please refer to https://github.com/flowdrop-io/flowdrop/blob/main/libs/flowdrop/CHANGELO...
Overview
FlowDrop UI is a supporting module of the FlowDrop ecosystem that delivers a modern, interactive workflow editor interface. It wraps the @d34dman/flowdrop library as an IIFE (Immediately Invoked Function Expression) bundle for seamless Drupal integration.
Usage
Attaching the Library
In your Drupal render arrays or templates, attach the FlowDrop editor library:
$build['#attached']['library'][] = 'flowdrop_ui/editor';
Mounting the Editor
The library exposes mounting functions on the global window.FlowDrop object:
// Mount the full FlowDrop App
window.FlowDrop.mountFlowDropApp(container, options);
// Mount just the WorkflowEditor component
window.FlowDrop.mountWorkflowEditor(container, options);
Drupal Behavior Example
Drupal.behaviors.flowdropWorkflowEditor = {
attach: function (context, settings) {
const container = context.querySelector(".flowdrop-workflow-editor");
if (container && window.FlowDrop) {
window.FlowDrop.mountWorkflowEditor(container, {
endpointConfig: settings.flowdrop.endpointConfig,
workflow: settings.flowdrop.workflow,
nodes: settings.flowdrop.nodes
});
}
}
};
Services
FlowDropEndpointConfigService
Generates API endpoint configuration for the FlowDrop frontend:
/** @var \Drupal\flowdrop_ui\Service\FlowDropEndpointConfigService $service */
$service = \Drupal::service('flowdrop_ui.endpoint_config');
$config = $service->generateEndpointConfig('/api/flowdrop');
Configuration Options
The editor accepts various configuration options:
window.FlowDrop.mountWorkflowEditor(container, {
workflow: myWorkflow, // Workflow data object
nodes: availableNodes, // Available node definitions
endpointConfig: {
baseUrl: "/api/flowdrop",
endpoints: { /* endpoint definitions */ },
timeout: 30000,
retry: {
enabled: true,
maxAttempts: 3,
delay: 1000,
backoff: "exponential"
}
}
});
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 2.0.1 | Stable | 11 | Aug 17, 2026 | ||
| 1.7.0 | Stable | 11 | Apr 10, 2026 | ||
| 1.6.0 | Stable | 11 | Apr 9, 2026 | ||
| 1.5.0 | Stable | 11 | Apr 9, 2026 | ||
| 1.4.0 | Stable | 11 | Mar 16, 2026 | ||
| 1.3.0 | Stable | 11 | Mar 15, 2026 | ||
| 1.x-dev | Dev | 11 | Mar 15, 2026 | ||
| 1.2.2 | Stable | 11 | Mar 13, 2026 | ||
| 1.2.1 | Stable | 11 | Mar 13, 2026 | ||
| 1.2.0 | Stable | 11 | Mar 13, 2026 | ||
| 1.1.0 | Stable | 11 | Mar 13, 2026 | ||
| 1.0.1 | Stable | 11 | Mar 13, 2026 | ||
| 1.0.0 | Stable | 11 | Mar 7, 2026 | ||
| 0.0.56 | Stable | 11 | Feb 11, 2026 | ||
| 0.0.55 | Stable | 11 | Feb 10, 2026 | ||
| 0.0.54 | Stable | 11 | better proximity connect | Feb 10, 2026 | |
| 0.0.53 | Stable | 11 | Feb 9, 2026 | ||
| 0.0.52 | Stable | 11 | Feb 9, 2026 | ||
| 0.0.51 | Stable | 11 | Configurable Tool Badge | Feb 6, 2026 | |
| 0.0.50 | Stable | 11 | Feb 5, 2026 | ||
| 0.0.49 | Stable | 11 | Better Twig syntax highlighting and code editing experience | Feb 5, 2026 | |
| 0.0.48 | Stable | 11 | Settings Toggle in Mount API | Feb 5, 2026 | |
| 0.0.47 | Stable | 11 | Template editor fields now provide variable autocompletion | Feb 5, 2026 | |
| 0.0.46 | Stable | 11 | Undo/Redo support in UI | Feb 5, 2026 | |
| 0.0.45 | Stable | 11 | Jan 31, 2026 | ||
| 0.0.44 | Stable | 11 | Jan 31, 2026 | ||
| 0.0.43 | Stable | 11 | Jan 31, 2026 | ||
| 0.0.42 | Stable | 11 | Jan 31, 2026 | ||
| 0.0.41 | Stable | 11 | Jan 31, 2026 | ||
| 0.0.40 | Stable | 11 | Jan 31, 2026 | ||
| 0.0.39 | Stable | 11 | Jan 31, 2026 | ||
| 0.0.38 | Stable | 11 | sync with 0.0.38 | Jan 24, 2026 | |
| 0.0.37 | Stable | 11 | sync with 0.0.37 | Jan 24, 2026 | |
| 0.0.36 | Stable | 11 | sync with 0.0.36 | Jan 22, 2026 | |
| 0.0.35 | Stable | 11 | sync with 0.0.35 | Jan 22, 2026 | |
| 0.0.34 | Stable | 11 | sync with 0.0.34 | Jan 22, 2026 | |
| 0.0.33 | Stable | 11 | sync with 0.0.33 | Jan 22, 2026 | |
| 0.0.32 | Stable | 11 | sync with 0.0.32 | Jan 22, 2026 | |
| 0.0.31 | Stable | 11 | sync with 0.0.31 | Jan 22, 2026 | |
| 1.0.0-alpha27 | Pre-release | 11 | sync with 0.0.27 | Jan 9, 2026 | |
| 1.0.0-alpha26 | Pre-release | 11 | sync with @d34dman/[email protected] | Jan 6, 2026 | |
| 1.0.x-dev | Dev | 11 | Initial port from flowdrop project | Jan 6, 2026 |