Skip to content
프로젝트

소개

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

생산성 및 자동화

이 수치를 측정하는 방법

What you can do

  • 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.
  • Human-in-the-Loop: checkpoint() prompts and stage approval gates (require_approval: true) pause runs for terminal or web UI input and resume cleanly.

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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.
  • Human-in-the-Loop: checkpoint() prompts and stage approval gates (require_approval: true) pause runs for terminal or web UI input and resume cleanly.
  • Web UI: Stepper view and editable React Flow DAG canvas with live SSE logs, run inspection, and artifact previews.
  • 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 a starter workflow workflows/hello.yaml:

version: 1
name: hello
stages:
  ask:
    title: "1. Ask"
  greet:
    title: "2. Greet"
nodes:
  pick:
    op: standard_io/interactive:AskChoice
    stage: ask
    inputs:
      question: "Pick a greeting:"
      options_csv: "Hello, Welcome"
  echo:
    op: standard_io/demo:Echo
    stage: greet
    inputs:
      text: $pick.choice

Validate and run it:

# 1. Static validation (no code executed)
plynx validate workflows/hello.yaml

# 2. Run interactively (prompts in terminal) or pass answers non-interactively
plynx run --answer pick.cp_0=Hello workflows/hello.yaml

# 3. Inspect runs and available operations
plynx runs
plynx ops

# 4. Launch the local web UI (http://127.0.0.1:8080)
plynx ui

# 5. Prune old unpinned runs and unreferenced blobs
plynx clean --days 7

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 (or plynx ops --json) in any workspace to list all built-in and custom operations with their full port schemas.

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
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)

AI Coding Agents

plynx init materializes a thin-shim skill at .agents/skills/plynx-create-workflow/SKILL.md, and PLynx ships a self-contained reference for AI coding agents. From any workspace, print it with:

plynx agent-guide

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

License

Apache-2.0

관련 프로젝트 살펴보기

불러오는 중…