Visual editor and runtime for control-system pipelines. Design and run a
pipeline in the editor, or save it as .piper JSON and run it in a host
application. Built on ImGui, GLFW, and Conan 2.
target_x ----+
+-- jacobian -- motor_a -- pose_a [control / feedback]
target_y ----+ motor_b -- pose_b
The editor is usable end-to-end: build, save, load, edit, undo,
paste, multi-stage, multi-mode, multi-document. The piper-migrate
CLI imports V1 JSON. Python bindings expose the domain layer for
scripting and batch validation.
The V1 sources live on the v1_legacy branch for anyone who needs
them. See docs/migrating_from_v1.md
for the conversion workflow.
uv tool install "piper @ git+https://github.com/leducp/Piper"
piper-editor my_pipeline.piper
Or run it once without installing:
uvx --from "piper @ git+https://github.com/leducp/Piper" piper-editor my_pipeline.piper
pip install works the same way. Either builds the wheel locally, so it needs the
toolchain listed under Building. Pin a release with @v<version> to match the
libraries your host links.
git clone <repo>
cd Piper
./setup_build.sh build # generates Conan profile + installs deps
cmake -S . -B build
cmake --build build -j
./build/app/piper-editor examples/filter_demo/filter_demo.piper
The editor opens to a low-pass filter demo
(examples/filter_demo/README.md). For a multi-stage motor-control
walkthrough see docs/motor_control_walkthrough.md.
Each bundled example has its own runner binary + plot script under
examples/<name>/: filter_demo, am_radio, pid_demo.
The user guide introduces Piper through the bundled PID demo, then shows how to edit a pipeline and write a custom C++ step.
To preview the documentation site from the repository root, run
uvx zensical==0.0.71 serve and open http://localhost:8000.
canvas/ reusable ImGui node-editor framework
core/ domain layer: graph data, JSON (de)serializer, command stack
app/ piper-editor binary (uses canvas + core)
migrate/ V1 JSON import CLI
py_bindings/ nanobind wheel exposing the domain layer to Python
examples/ bundled .piper graphs
data/ default theme.json
docs/ architecture, format, walkthroughs
tests/ gtest suites for core, canvas, fixtures
Per-subdir READMEs:
canvas/README.md-- the framework's API surface, layering rule (no piper_core dep), pull/push contract, events, hooks.core/README.md-- domain types, file-format pointer, how to register a new node type, how to drive it programmatically.app/README.md-- running the editor, layout, mouse + keyboard reference, theme, architecture sketch.migrate/README.md--piper-migrateCLI: options, exit codes, what does and doesn't translate.py_bindings/README.md-- Python module: install, exposed API, examples.
docs/architecture.md-- canvas / core / app layering, pull-then-push render model.docs/v2_format.md-- on-disk JSON schema for graphs and registries.docs/type_system.md-- type tags, the pastel hue-index helper, the default palette.docs/motor_control_walkthrough.md-- end-user walkthrough using the bundled examples.
Requires CMake 3.28, Conan 2.10+, a C++20 toolchain, and either GLFW
system deps (Linux: libxkbcommon-dev, libwayland-dev, ...) or
the equivalent on macOS / Windows. setup_build.sh generates a
Conan profile and resolves dependencies.
cmake --build build
ctest --test-dir build
Two gtest binaries:
build/tests/core/piper_core_test-- 153 cases over the data model, JSON round-trip, theme parsing, command stack, lints.build/tests/canvas/piper_canvas_test-- 53 cases over the framework's math (AABB, transform, hit-test, link routing, pin layout, selection).
The canvas demo (build/examples/canvas_demo/canvas_demo) drives
the framework over a tiny DemoGraph independent of piper_core
-- it's the framework's smoke test in human form.
CeCILL-C.