Composable Pipelines
A Swift package and compiler for authoring AI pipelines as a declarative, serializable graph that separates authoring, compilation and execution into distinct layers.
Composable Pipelines is an intermediate representation and compiler for AI pipelines in Swift. It separates a pipeline into three layers: a declarative front end written with a SwiftUI-like result-builder syntax, a serializable Codable AST that acts as the intermediate representation, and a pluggable backend that executes the graph through a single Executor interface supplied by the caller.
A pipeline authored this way lowers to the AST, a compiler analyzes data dependencies between state slots to emit an execution graph, and an observable walker runs that graph with incremental, epoch-based re-execution, including native branching and looping constructs. The same primitives scale from a two-step summarization pipeline to a full tool-calling agent. Composable Pipelines is the open authoring, intermediate-representation and compiler layer of MacPaw's proprietary Elix AI engine, which supplies the production execution backend.