Flowgram.ai is a workflow development framework for building AI workflow platforms. It provides a visual drag-and-drop canvas for constructing workflows, an Entity-Component-System (ECS) based document model for structuring workflow nodes as a tree, and a node-based form engine for managing configuration forms with built-in rendering, validation, side effects, and error handling. The framework also includes a workflow execution engine that parses directed graph workflows and runs nodes step by step with state tracking and array iteration.
The framework distinguishes itself through a layered reactive canvas that updates only affected layers on data changes, a command-based document history enabling undo and redo, and a path-pattern side effect engine that triggers custom logic when node data changes. It supports variable scope chains with type inference, constraining variable visibility to specific nodes and automatically deriving types from upstream data structures. The canvas offers both free-form and structured layouts, with alignment guides, auto-layout, branch group management, sub-canvas editing, and clipboard operations.
The framework covers configuration and extensibility through custom layers, modular data model extension, node form configuration, and viewport event listening. It includes data storage and sync capabilities such as auto-save, data loading, document management, form validation, and variable definition with scope and type inference. Workflow execution features include conditional branching, loop iteration, side effects, state tracking, and step-by-step execution. The framework also provides monitoring and observability through canvas data observation, external form data watching, and variable inspection.