← Open Source

Local-first workflow engine for reproducible YAML/Python DAGs with isolated uv environments, content-addressed caching, and a web UI.

InfrastructureObservabilityPython
Momentum
+0stars in 24 hours0.0%
315
Stars
41
Forks
+0
This week
5
Contributors
Created 2017-11-22 · Updated 2026-11-23 · #26985 today
Top developers
khaxisfwangheNostix
README

PLynx

PLynx is a local-first workflow engine for building and running reproducible DAGs. Workflows are plain YAML; operations are plain Python (Op or @op) running in isolated uv environments. Outputs are content-addressed and cached locally in .plynx/.

Highlights

  • Local-First: Runs against local files, SQLite (WAL), and a content-addressed blob store in .plynx/. No database server or daemon required.
  • Isolated Environments: Custom Node Packs run in isolated uv virtual environments with pinned uv.lock dependencies. Built-in standard_io ops run with stdlib only.
  • Content-Addressed Caching: Cache keys hash the op entrypoint, op source file bytes, pack uv.lock, input file/directory hashes, scalar parameters, and checkpoint answers, with automatic early cutoff.
  • Stage inputs: The browser and interactive CLI review editable inputs before each stage. Unattended runs use supplied values and Python defaults. Stage declarations and input review
  • Human-in-the-Loop: checkpoint() prompts and stage approval gates (require_approval: true) pause runs for terminal or web UI input. Each run retains its questions, answers and stage decisions in arrival order. Retrying the same submission returns its recorded result. Decision history
  • Web UI: Answer requests and review stage results in Stepper cards or the Graph properties bar. Both views retain drafts while you inspect the run. Graph also provides an editable React Flow canvas for authoring workflows.
  • Scratch Debugging: Reproduce and fix any failed node in an isolated scratch copy with plynx run-node <node_dir>, then resume with plynx resume <run_id>.

Installation

Prerequisites: Python 3.11+ and uv (required for isolated third-party Node Packs).

# Run directly without installing
uvx plynx --help

# Install globally with uv (recommended)
uv tool install plynx

# Or install with pip
pip install plynx

Quickstart

Initialize a workspace in any directory:

mkdir my-project && cd my-project
plynx init

Create workflows/stage_example.yaml with two stages. The first exposes a suffix and features the draft. The second receives the draft through a wire and exposes an ending.

version: 1
name: stage_example
stages:
  compose:
    title: Compose message
    inputs:
      - ref: $join.b
        label: Suffix
    outputs:
      - ref: $join.text
        label: Draft message
  finish:
    title: Finish message
    inputs:
      - ref: $end.b
        label: Ending
    outputs:
      - ref: $end.text
        label: Message
nodes:
  join:
    op: standard_io/text:Concat
    stage: compose
  end:
    op: standard_io/text:Concat
    stage: finish
    inputs:
      a: $join.text
plynx validate workflows/stage_example.yaml
plynx run --non-interactive --set join.a=Hello --set 'join.b=, world' --set 'end.b=!' workflows/stage_example.yaml
plynx runs
plynx ui

The unattended run supplies all three editable fields and produces Hello, world!. To review the fields at each stage, run plynx run workflows/stage_example.yaml in a terminal, or open the workflow in the browser and select Run. The launch form shows Suffix with its Python default and the required join.a input. After Compose message finishes, check Draft message in Results, then enter Ending and select Start stage.

Built-in Operations (standard_io)

The plynx wheel ships with 21 stdlib-only operations in standard_io:

  • Core / Text & Data: Echo, Concat, TemplateFormat, MathOp, JsonExtract, JsonMerge, CsvSummary
  • Core / Files: ReadText, WriteText, ListDirectory, BundleDirectory, MarkdownReport
  • Core / Interactive: AskChoice, AskQuestions
  • Core / Agents: AgentPrompt, AgentText, AgentJson, AgentBool, StageSupervisor
  • Core / Network: HttpGetJson, HttpPostJson

Run plynx ops --packs, plynx ops --pack <pack>, or plynx ops <op_id> --json in any workspace to discover built-in and custom operations progressively.

Examples (Repository Only)

This repository includes optional demo packs (examples/custom_packs/: language_tools, media_studio, pedalboard_studio, podcast_studio) and showcase workflows in examples/workflows/:

Workflow Focus
stage_example.yaml Labeled input review, a draft result and a final message. Uses only standard_io.
foo_or_woo.yaml Minimal 2-node checkpoint workflow using standard_io.
interactive_wizard_staged.yaml Multi-stage interactive survey with require_approval: true and Markdown report.
adaptive_doc_review.yaml End-to-end agentic workflow with self.warn(), StageSupervisor graph repair, and batch multi-question checkpoint_batch().
maintenance_handoff.yaml A ticket export records the approved maintenance window in handoff notes. The template fails on missing fields. The supervisor proposes an extraction step between the ticket and the template and asks the operator to approve it.
data_bundle_pipeline.yaml Data pipeline covering CSV, JSON, math, directory bundling, and Markdown output.
generative_art_studio.yaml Procedural image generation (Mandelbrot, geometric patterns, filters, metadata).
midi_groove_studio.yaml Multi-track MIDI sequencing, synthesis, mixing, and mastering.
bach_prelude_c_major.yaml Acoustic piano synthesis and Pedalboard spatial effects.
podcast_producer_macos.yaml macOS speech synthesis (say), sidechain ducking, and show notes. (macOS only)

Stage validators can ask for a missing repair value, reuse a completed artifact and redirect a featured result to a fallback. In Stepper, open Technical details → Activity to read the validator report, the operator’s decision and any applied change. Validator repairs

AI Coding Agents

plynx init installs and refreshes two bundled skills under .agents/skills/ (plynx-create-workflow for authoring/debugging workflows and Node Packs, and plynx-run-workflow for running, answering checkpoints/gates, and resuming workflows), mirroring them into .claude/skills/ when .claude/ or CLAUDE.md is present. From any workspace, print the full or section-scoped agent reference with:

plynx agent-guide
plynx agent-guide --section workflow
plynx agent-guide --section pack
plynx agent-guide --section run

Documentation

Development Setup

git clone https://github.com/plynx-team/plynx.git
cd plynx
uv sync
cd ui && npm ci && npm run build && cd ..

# Launch the local web UI from the workspace (or: uv run python -m plynx.cli ui)
uv run plynx ui

# Run checks, tests, and wheel build
uv run ruff check && uv run ruff format --check && uv run mypy && uv run pytest
uv run python scripts/build.py

The build verifies the new wheel before placing the distributions in dist/. Older releases can coexist there.

License

Apache-2.0

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store