📄️ Introduction
Phlow is a modular runtime for building backends, automations, and orchestrations using YAML to define flows. Each flow is descriptive and structured into modules, steps, and scripts.
📄️ Main Flow Structure (main.yaml)
The main.yaml file defines the flow's metadata and execution logic. By default, main.yaml is the primary file executed in Phlow, serving as the entry point for defining workflows and their associated configurations.
📄️ Modules (modules.yaml)
Modules define components or services needed by the flow.
📄️ Steps
Steps control the logic and flow of execution.
📄️ Special Directives
Phlow introduces special YAML directives that enable advanced functionality for data manipulation and scripting. Below are the available directives, explained with detailed examples.
📄️ Phlow Scripts (.phs)
Phlow Scripts (PHS) is a lightweight scripting format for Phlow, built on top of Rhai. It enables simple, dynamic behavior scripting using .phs files while deeply integrating with the Phlow runtime and module system.