Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

StreamStudio

A graph editor for RecordStream pipelines written as confluid YAML documents.

The YAML file is the graph. StreamStudio draws it as a canvas of cards and wires, and every change you make is a patch of the line it is about — comments, $VAR spellings and key order survive. Nothing is written until you Save. Run a graph from the editor, step through it record by record, and re-run a node with other values. The editor runs on its own over a folder of graphs, or inside a page of your own Flask app.

Installation

pip install streamstudio

Python 3.12 or later. The editor's page comes built inside the package: no Node.js is needed to use it.

Quick start

Put a graph in a folder, as graphs/demo.yaml:

# One step that prints each record — a comment the edit leaves alone.
flow:
  probe:
    op: !class:recordstream.ops.debug.PrintRecordOp {label: before}
outputs: probe

and serve the folder:

streamstudio graphs          # then open http://127.0.0.1:8190

Pick demo in the graph list, type after into the label field of the probe card, and press Ctrl+S. The file on disk differs in that one line. The same edit through the editor's HTTP API, without a browser — this is examples/01_edit_a_graph.py:

from streamstudio.app import create_app

client = create_app(folder).test_client()
client.post("/api/graphs/demo/param", json={"node": "probe", "param": "label", "value": "after"})
client.post("/api/graphs/demo/save", json={})
 # One step that prints each record — a comment the edit leaves alone.
 flow:
   probe:
-    op: !class:recordstream.ops.debug.PrintRecordOp {label: before}
+    op: !class:recordstream.ops.debug.PrintRecordOp {label: after}
 outputs: probe

Stop the editor with Ctrl+C or streamstudio stop. Work you have not saved is kept in a hidden file of the folder, and the next start offers it back.

What it does

  • Edits the document, never a copy of it. An edit that would stop the document loading, or add a problem (a wire whose types do not meet), is refused with a message naming its file:line:col, and changes nothing.
  • Draws every installed class. The Nodes sidebar lists every @configurable class the installed packages declare through the confluid.configurables entry-point group — install a package and its sources, ops and sinks appear. Nothing is registered by hand.
  • Saves what you draw. A wire drawn between two cards is written into the YAML in the document's own spelling (source: !ref:hugging_face_source), or refused in one plain line.
  • Subgraphs and reuse. A run of steps becomes one subgraph step; it can be copied, saved as a template, or moved to a steps file that several graphs include.
  • Settings apart from the graph. A graph's app: block names its settings; their values go into <graph>.settings.yaml beside it, so the graph itself stays as it was shipped.
  • Runs what it shows. The run panel traces the graph as the editor holds it, unsaved values included: pause before a node, step, inspect each node's inputs and outputs, re-run one node with other values.
  • Embeds in a host app. A Flask app mounts the editor under a prefix of its own and hands it the record to run; the page talks to the host page through postMessage.

The editor at a glance

menu items (on a Mac ⌘ for Ctrl)
New Flow graph… · Pipeline… · Source graph (with its contract)… — each written to disk at once
File Open… Ctrl+O · Save Ctrl+S · Save As… Ctrl+Shift+S · Revert
Edit Undo Ctrl+Z · Redo Ctrl+Shift+Z · Cut · Copy · Paste · Delete · Select all · Rename… F2
View Nodes sidebar N · Fit to view · Arrange left to right · Arrange diagonally · Arrange top to bottom · Arrange in columns · Minimap
Graph Add group · Group selection G · Convert selection to subgraph · Insert template ▸ · Save selection as template… · Check graph
Run Run Ctrl+Enter · Step · Rerun selected node

A side panel holds three tabs: text (the YAML as the editor holds it), settings (a form of the nodes' parameters) and run. The address follows what you look at, so a link opens the same graph, subgraph level and tab: /?graph=demo&level=prep&tab=settings.

Three kinds of graph:

kind what it is
flow graph flow: — named steps, each reading the record of the one before (or the one its from: names)
pipeline stream: !class:recordstream.core.stream.Stream with an ops: list
source graph a pipeline plus a contract: root — a GraphContract saying what the graph delivers

Mounting the editor in your own app

from flask import Flask
from streamstudio.app import editor_blueprint, keep_unsaved_edits, page_blueprint

app = Flask(__name__)
app.register_blueprint(editor_blueprint(graph_dir), url_prefix="/studio")   # the API at /studio/api/…
app.register_blueprint(page_blueprint(), url_prefix="/studio")             # the page at /studio/
...
keep_unsaved_edits(app)   # on your app's stop: unsaved work is offered at the next start

Instead of a folder, an app may give the editor a HOST — an object with a name and the methods folder(), record(), saved() and shipped() — so that a Run of a graph without a source of its own runs the record the app has selected, and the app hears every file a Save wrote. Show the page in an <iframe> with ?embed=1, and switch graphs with the page's open message. The whole protocol, with a host that runs as written: docs/hosting.md.

Plugins

A class can name a picker of its own for a parameter, and an installed package can supply the list behind it. The class stamps the parameter with a tag:

class ShopSource:
    __streamstudio_widget_params__ = {"dataset": "SHOP_DATASET"}   # parameter -> tag

and the package names a module in the streamstudio.plugins entry-point group that declares one function per tag:

# my_plugin/studio/__init__.py
def shop_datasets(values):            # the node's current values in
    names = ask_the_shop(project=values.get("project", ""))
    return names, "" if names else "the shop has no datasets"   # the names, and why there are none

LOOKUPS = {"SHOP_DATASET": shop_datasets}

See docs/settings.md.

Environment variables

HF_HOME is the HuggingFace cache folder the editor's dataset pickers read. It is read at import, so restart the editor after changing it. HOME, PROJECT_ROOT, DATA_ROOT, MODEL_ROOT and RUN_DIR, when set to a folder, are buttons of the file browser that jump there. env.complete lists them.

Command line

streamstudio path/to/graphs                    # serve that folder on port 8190
streamstudio                                   # the current directory
streamstudio path/to/graphs/demo.yaml          # that graph's folder; the browser opens on demo
streamstudio path/to/graphs --port 8191 --templates-dir ~/my-templates
streamstudio path/to/graphs --background       # serve detached; the prompt comes back once it answers
streamstudio list                              # every running editor: its port, its folder, its address
streamstudio stop                              # stop the running editor (its unsaved work is kept)
streamstudio stop 8191                         # the one on port 8191 — or name it by its folder
streamstudio restart                           # stop it, then serve the same folder again
streamstudio restart --help                    # every command's options, generated from its signature

-p is the short form of --port and -b of --background. A folder that is already being served is not started twice: its address is printed. stop and restart only ever touch a StreamStudio server — a port another program holds is refused, never stopped. An option a command does not have is refused by name, not ignored:

$ streamstudio restart --prt 9000
Error: streamstudio: unknown option 'prt' — it names no parameter of the 'restart' command and no key in the
configuration. Did you mean 'port'? Declared parameters: target, port, templates_dir, background, browser.

Shell completion comes from liquifai's installer: liquifai-install-completions.

Documentation

page what it covers
docs/editor.md the editor, gesture by gesture: saving and recovery, the Nodes sidebar, op lists, cards, wiring, subgraphs, reuse, what it refuses and what is not there yet
docs/settings.md a graph's app: fields, the settings file, graphs a host ships, pickers and plugin lists
docs/hosting.md mounting the editor in a host app: the host's methods, the page in an <iframe>, its messages
docs/api.md the document model, node names, every HTTP route, and which route each gesture calls
docs/development.md building the editor's page, and the tests
CHANGELOG.md what each release changed

Dependencies

package used for
recordstream the record engine a Run steps through, and the op-chain contract a graph is checked against
confluid loading the YAML documents; each class's settings form (to_pydantic); the entry points the palette is built from
flask the editor's server — a blueprint an app can mount
pyyaml locating, and patching, the line an edit is about
liquifai the command line
loggair logging
portail serving the standalone editor: stop, restart and list find a server by what it answers
datasets the HuggingFace pickers: a dataset's columns and splits

Development

git clone git@github.com:Gearlux/streamstudio.git
cd streamstudio
pip install -e ".[dev]"
pytest

Changing the editor's page needs Node.js; the page is rebuilt and committed with its source (docs/development.md).

License

PolyForm Noncommercial License 1.0.0 (the LICENSE file): free for personal, academic and other noncommercial use. Commercial use needs a separate licence from the author.

Metadata

Release files for streamstudio 0.1.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamstudio 0.1.0a2
File Size Uploaded Provenance Actions
streamstudio-0.1.0a2.tar.gz 673.6 kB With provenance Details for streamstudio-0.1.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for streamstudio 0.1.0a2
File Interpreter ABI Platform Actions
streamstudio-0.1.0a2-py3-none-any.whl Python 3 none any Details for streamstudio-0.1.0a2-py3-none-any.whl

Total release size: 1.1 MB

Release files / streamstudio-0.1.0a2.tar.gz

Download URL streamstudio-0.1.0a2.tar.gz
Size 673.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7756ecb88992f6affa9888df7db89ae780e254067e8658387e7376ed362c36bd
BLAKE2b-256 checksum
How to use checksums
22129a15668c106d55f7caff8fad1e19ff834a06d923262c8bf7c24d55900f05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / streamstudio-0.1.0a2-py3-none-any.whl

Download URL streamstudio-0.1.0a2-py3-none-any.whl
Size 379.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a03a26e255707364aaec5fb5217bd0b655078befdb4ba8f3060d3253537bac1c
BLAKE2b-256 checksum
How to use checksums
e86f3431ecfa423e97be35ef9c3603c16c2e01bb5b7698ca2ee0bfcc1906f13f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for streamstudio 0.1.0a2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for streamstudio-0.1.0a2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page