Skip to content
exuvia 0.3.129

exuvia 0.3.129

Pypi • November 27, 2026

An AI-first, file-backed DAG workbench for analysts: Python/SQL nodes, per-node schedules, a live graph UI, and a Claude agent that builds pipelines with you.

pip install exuvia==0.3.129

An AI-first DAG workbench for analysts and data scientists.

Marimo showed that notebooks work better as a reactive graph than as a list of cells. exuvia takes the step: the graph is the interface. Each node is a plain file (Python or SQL) that can be scheduled on its own, every output is cached and content-addressed, and an AI agent (Claude, DeepSeek, or any OpenRouter model) can read, write, run, and debug nodes alongside you on a live canvas.

Exuvia (n.): the shell a lobster leaves behind when it molts. Every run leaves one too: an immutable, content-addressed output you can go back to.

Everything here runs from the published package (PyPI) and image (GHCR), with no clone. The exceptions are the commands that open examples/ and Contributing , which is working on exuvia itself.

Everything here runs from the published package (PyPI) and image (GHCR), with no clone. The exceptions are the commands that open examples/ and Contributing , which is working on exuvia itself.

exuvia is also a place to build analytics with AI, and the two usual ways of doing that each give something up. A chat with data connectors (MCP servers over your warehouse, say) can only assemble what fits in a conversation, and a good answer cannot be run again. A coding agent can build a far stronger analysis, but each one becomes an app of its own, with a backend that loads the data and a front end that shows it, and nothing kept of what it said last week.

You keep the agent you already use: exuvia's tools are an MCP server (see MCP ), so Claude Code, Cursor or Codex builds in the graph instead of in an empty repo.

With uv there is nothing to install first: uvx downloads exuvia into its cache and runs it.

To have an exuvia command on your PATH, install it once. Any of these works; the first two give exuvia an environment of its own:

pipx can also run it without installing, like uvx : pipx run exuvia serve my-research .

exuvia needs Python 3.11 or newer; uv downloads one when yours is older. The example project in this repo opens the same way, from a clone: uvx exuvia serve examples/markets .

Packages your nodes import go in the project's own pyproject.toml , which exuvia init writes. Add one with uv in the project folder, and exuvia installs it before the run:

Packages has the details, private package indexes among them.

Set ANTHROPIC_API_KEY (Claude) or OPENROUTER_API_KEY (DeepSeek and any other OpenRouter model) in the environment or the project's .env to turn on the built-in agent; a Portkey gateway or any OpenAI-compatible server works too. See The agent for providers. Or let the coding agent you already use do the setup and the building: see the section.

Set up with your agent

A coding agent that has a terminal (Claude Code, Cursor, Codex, Grok, ...) can do the whole setup: install exuvia, create a project, start the workbench and connect itself to the graph. Open the agent in the folder the project should live in and paste this:

The steps live on the docs site, which is built from this README, so the prompt stays short and a copy of it never goes stale. This is that file, exactly as the agent gets it:

What you end up with:

A project and a running workbench. my-research/ holds the node files, and the canvas at shows every node the agent writes and every run it starts, as it happens.

Your agent, working through exuvia's tools. It reads the same instructions the built-in agent gets and calls the same tools, over HTTP for now ( GET /api/guide , POST /api/tools/{name} ) and over MCP from its session. exuvia needs no model key for this: the model is the one your agent already runs on.

An MCP server that relays to the workbench. In later sessions start exuvia serve my-research before the agent, or the exuvia MCP server has nothing to connect to: its tools then answer with how to start the workbench, so the agent can do it or ask you to. MCP has the other mode, which opens the project without a running server.

To put exuvia on a server instead of your machine, the prompt under Hand it to an agent deploys a hub with Docker Compose, Swarm or Kubernetes.

One file in nodes/ = one node. The file name is the node name.

Python — parameters are upstream nodes; return a DataFrame (or JSON-able value):

A DataFrame's index is stored as a column (named index when it has no name), unless it is the default one. A filter, a sort or a dropna leaves the old row labels as the index, so end such a node with .reset_index(drop=True) , or with .reset_index() when the index means something (a date, a group key).

SQL (DuckDB) — upstream nodes are tables:

A chart ( chart ) shows in the node's Data tab, and in its notebook cell, over the output's rows. It draws every row of an output up to 50,000, and a random sample of 50,000 drawn from all of them past that (it says so under the chart). On a chart of one view whose x is a column (not aggregated, binned or by time unit) the two are linked: drag across a continuous x (and y, for points) or click a category, and the rows under it show only what was picked, out of the whole output, not only the rows drawn: the count is every row in the selection, read with SQL once the selection stops moving. Clear shows them all again. A chart that sets its own params , or layers, facets or concatenates views, is drawn as written, without the link. A node with several outputs opens on the one its chart draws (its first table).

The Data tab shows every row of a table output, whether it has ten or ten million. Only the rows in view are drawn, and they are read from the server 500 at a time as you scroll, each page from the same run as the first, so a run that finishes meanwhile never mixes two outputs on screen. A row that is still on its way shows as … . Past 370,000 rows the scrollbar is a of the way through the output rather than a row count, because a browser lays out only so tall a page. Over the rows, each column's header says how many values are missing and its smallest and largest, and a line gives the output's shape and size: these come from the output's Parquet footers, so they cost the same for any number of rows. A notebook cell shows the first rows only.

The rows can be asked for another way, and each way reads the whole output with SQL, a page at a time like the rest:

Filter. The box over the rows takes a SQL condition ( ticker = 'AAPL' and close > 100 ), applied with Enter. What is picked on the chart narrows the rows the same way, and the two add up.

Filter with a prompt. With a model set up (see "The agent"), a SQL / Prompt switch stands before the box. On Prompt the box takes the rows in words ( apple above 100 this year , the ten largest closes ), and Enter has the model write the condition, which becomes the filter and is shown under the box. Switch back to SQL to read it whole and change it. The model is sent the table's column names and types, its first five rows and the values of text columns that hold only a few; it never runs anything itself, and its condition runs where a typed one does. A request that is no filter (a total, a grouping) is refused with the reason. The browser remembers which of the two was last used. Like the agent, a prompt is for editors: a viewer has the SQL box alone.

Filter a column. The funnel in a column's header filters the rows by that column: a test fit for its type ( contains , ≥ , is before , is missing …) and a value, applied with Enter. One filter a column; they add up with each other and with the box, show as removable tokens over the rows, and a filtered column's funnel is filled.

Sort. Press a column's header (the arrows after its name say it can be): smallest first, then largest first, then the order stored, and the arrow shows which. Rows that tie are ordered by every other column, so the pages agree with each other.

SQL. The button at the box's end turns it into an editor with the query the table is showing, to rewrite as any DuckDB query over this output and every other table node ( select ticker, avg(close) from prices group by 1 ). Its result is the table, sortable like any other. Up to 10,000 rows are one read; a longer result whose order is not fixed should be sorted, by an order by of its own or by a column's name.

Download then saves the rows shown, all of them, not the output.

The description is the node function's docstring (the module docstring when the function has none), or a SQL node's first -- lines other than settings such as -- schedule: . It is Markdown: the notebook renders it as a cell's text. Start with a one-sentence paragraph, which is all a card on the canvas shows (as plain text), then put any detail in paragraphs, - lists or tables (GitHub-style, | a | b | rows under a |---|---| line). An indented line is a code block in Markdown, so Google- or NumPy-style Args: sections show as code; write them as a list instead.

Rewriting a description doesn't make the node stale. Freshness compares the code with its descriptions taken out (every docstring in a Python node and in the lib/ helpers it imports, a SQL node's description lines), so an edit that only changes them keeps the node and everything below it fresh. The edit is still saved as a code revision. Any other change, and blank lines included, is a code change.

Maths is LaTeX, typeset by KaTeX : $…$ inside a sentence, $$…$$ on lines of its own for a displayed formula. A dollar that isn't maths stays as written: a price ("$5 to $10"), a SQL parameter ( $as_of ), anything in backticks. In Python, write a docstring with maths as a raw string ( r"""…""" ): in a plain one, \frac , \times or \beta reach the notebook as a form feed, a tab or a backspace. Keep maths out of the first sentence, which the canvas shows as plain text.

The graph is read statically ( ast for Python, identifier matching for SQL), so a broken node still shows up in the graph with its error, and nothing runs until you ask.

JSON outputs. A dict, list or scalar is stored as JSON. numpy values, pandas missing values, dates and times, decimals, sets, dataclasses and pydantic models are converted; any other object (a fitted model, a class of your own) fails the run, so return the numbers you need from it. NaN and ±Infinity, which JSON cannot write, are stored as null , and a JSON output an older exuvia stored with them reads the same way. A DataFrame keeps its NaN, since Parquet can hold it.

Several outputs from one node. When one step yields several results of different shapes (a model fit's predictions, coefficients and metrics, or one API call that returns two tables), return them together instead of redoing the work in separate nodes. A dict, dataclass or pydantic model whose values include a DataFrame is stored as named outputs: each DataFrame is a table, anything else is JSON. Names are lowercase identifiers.

A Python node that takes fit gets a dict, {"preds": DataFrame, "coefs": DataFrame, "metrics": {...}} . The node is still one node: one run, one schedule, one freshness state, and the outputs downstream nodes read are stale or fresh together. A Data tab with a picker shows each one.

Typed outputs. Dataclasses and pydantic models are JSON outputs too (or several outputs, above, when a field holds a DataFrame). Annotate a parameter with the class and it arrives as that class, built from the upstream's output, rather than as a dict. Put the class in a lib/ helper so both nodes import it:

A pydantic model is validated ( model_validate , nested models included); a dataclass is called with the fields as keywords, one level deep. When the output does not fit the class, the run fails and says which parameter it could not build.

Shared helpers — code several nodes need lives in Python modules under lib/ ( lib/stats.py , lib/vol/surface.py ; no __init__.py needed), and nodes import it with plain import statements:

A node's code hash covers every lib/ file it imports, directly or through other helpers, so editing a helper marks exactly those nodes stale. Only static import / from … import statements are tracked. Open a helper from the workbench's Files tab (below) to edit it and see which nodes use it. Besides nodes/ , lib/**/*.py and view folders (see "Views") are the only places the API and the agent can write.

The workbench's side panel has three tabs: Agent , Files and History . Files shows those files as one tree: nodes/ , lib/ and each view's folder under views/ , with each node's and view's state. It only finds files; picking one opens it where it is edited. A node file selects the node on the graph and opens the inspector's Code tab, a view file opens that view's Code tab, and a helper opens in an editor in place of the graph, with the nodes that import it and its saved versions. A helper's address is #files/lib/stats.py , and #files/ opens any of these files from a link. The chat keeps running while another tab is showing; a dot on the Agent tab means it has something new.

Run parameters and replays

A project can declare run parameters in exuvia.json . A node that reads one says so, and its output is then stored once per value:

Types are date , string , number and boolean . A date default of today resolves to the run date in the project timezone .

One output per parameter set. Running for as_of=2026-11-06 does not overwrite today's output; running it again is a cache hit. A node that declares no parameter and reads none upstream is computed once and shared.

Replays. POST /api/backfill runs the graph for each value in a list or date range (weekdays only by default), skipping values that are already fresh. Progress is on GET /api/backfill and the event stream.

Time series for free. In query_data and POST /api/query , __runs unions a node's output across every parameter set that has run, with a _ column each ( select _as_of, count(*) from screen__runs group by 1 ). For a node with several outputs it is . __runs . It is for comparing runs in SQL and views; a node that should read a growing history is better partitioned .

timezone also sets the clock for cron schedules. schedules overrides or adds a per-node cron without editing the node file (this is what the schedule API writes), so an embedding app can let people schedule nodes. failure_webhook tells Slack or any URL when a scheduled run fails (see Failure notifications ).

Partitioned nodes: a history that grows each run

Some data arrives a little at a time: a closing price a day, a reading an hour. Returning the whole history from every run refetches it and stores a new full copy each time; one output per as_of stores each day once but gives downstream nodes only that day. A partitioned node keeps one output that each run adds to:

A run replaces the partitions it returns. Each value of the partition_by column in the rows a run returns (a date) is a partition: those rows replace whatever that partition held, and every partition the run leaves out is kept. A daily run returns today's rows, a backfill ten years of them in one call, a correction the day it fixes. None or no rows changes nothing (a holiday). Every row needs a value in the column.

What it already has. exuvia.partitions() lists the stored values as text, in order (dates and numbers sort as such); a SQL node gets the newest as $last_partition (null when there is none).

Downstream nodes read the whole history as their input table, and in query_data , views and /api/query is all of it.

Identical rows change nothing. A partition is identified by a hash of its rows, so a run that returns the same rows for a day writes nothing, the output keeps its artifact_id , and downstream nodes don't run again. When a day does change, they do.

Parameters. A partitioned node may read as_of ( params=["as_of"] ) to know which day to fetch, but its own parameters don't split its output: each as_of run, and a backfill over as_of ( POST /api/backfill ), fills the same history, and downstream nodes don't inherit as_of from it.

Full refresh. A code change marks the node stale, but its run still adds to what is there: a source that only reports "now" never loses its history by accident. To rebuild from nothing, run it with a full refresh ( POST /api/nodes/{name}/run with "full_refresh": true , exuvia run my-project prices --full-refresh , or run_node with full_refresh ): exuvia.partitions() is empty for that run, and what it returns becomes the whole output. Changing partition_by itself needs one.

Sources that send part of a day: merge=True . With a key (see Keys ), merge=True (SQL: -- merge: true ) makes a run update or insert rows by key into the partitions it returns instead of replacing them: a run's row replaces the stored row with its key, a new key is added, and a stored row whose key the run didn't return stays. A feed that sends the morning's trades, then the afternoon's, then one corrected trade, keeps all of them. on_duplicate="last" applies to the run's own rows before they merge. A merged partition is digested like any other, so a merge that changes nothing writes nothing and runs nothing downstream; only the files holding the partitions a run returns are read. A merge never removes a row : to delete rows, or to move a row to another partition, run a full refresh, which doesn't merge: what that run returns becomes the whole output.

One partition column per node, and one table: a node with several outputs can't be partitioned. A push node can ( push=True, partition_by="date" ): each push replaces the partitions it holds (or, with merge=True , merges into them).

How it is stored. The output is a manifest of Parquet files: one per partition as it is written, in .exuvia/artifacts/ / like every output and uploaded to EXUVIA_ARTIFACT_STORE under the same keys. Every file costs a reader a little, so exuvia compacts: once a node has more than 30 files beyond one per year, each year's files are merged into one (dates group by year; other values are merged together). A correction to a day inside a merged year rewrites that year's file without it. Readers get exactly the manifest's files, the query sandbox can open no other, and compaction never changes the output's id, so it never makes anything stale. Each run's version of the manifest is kept in the records database, so an earlier run's output stays readable ( ?run_id= ). Nothing deletes files no manifest uses anymore: exuvia never deletes outputs.

Reading it from outside.

GET /api/nodes/{name}/data and /export take partitions=lo..hi (either end may be left out) or one value, and read only the files that hold those partitions: ?partitions=2026-11-01.. is this month so far.

GET /api/nodes/{name}/partitions lists the manifest: every partition with its row count and digest, and the Parquet files with the partitions each holds. Each file is GET /api/artifacts/{name}/{artifact_id}.parquet .

A duplicate row doesn't fail anything by itself: it doubles a sum, skews an average, and the analysis is quietly wrong. Declare the columns that identify a row and exuvia checks every output against them before storing it:

A run that breaks the key fails. No row may have a null in a key column, and no two rows may a key. Otherwise the run fails with how many rows repeat a key and the worst examples ( 3 rows repeat a key (date, ticker), e.g. (2026-11-03, AAPL) ×2, ... ), and the node's output stays: nothing downstream sees the duplicates. A failed key isn't retried.

on_duplicate="last" (SQL: -- on_duplicate: last ) keeps, for each key, the last row in the order the node returned them, for a source known to send a row twice (overlapping pages, a re-sent file). The log says how many rows were dropped. Nulls in a key column still fail.

A partitioned node's key holds across its whole output , not only the rows one run returns. Take a trade re-dated from the 3rd to the 4th: a run that returns only the 4th would leave the old copy in the 3rd, so it fails and names both. Return the 3rd as well, without the trade, and the run succeeds. on_duplicate="last" doesn't apply here: exuvia can't tell which copy is right. A node with merge=True can't move a row that way, since a merge never removes one: that takes a full refresh. A run checks its own rows against the partitions it keeps (only for a key without the partition column; with it, a key can't repeat across partitions). When the key is first declared or changes, the run checks the whole stored output instead, even if it changes nothing, so an output that already has duplicates says so (fix it with a full refresh ). That is a scan of the key columns, under a second for five million rows.

A partitioned node with a key can merge ( merge=True ): its runs update or insert rows by key instead of replacing whole partitions, for sources that send part of a day at a time. See Partitioned nodes .

It works on any node that returns one table, pushed outputs included. The check runs in DuckDB on the control plane, over what the run wrote, so it is the same for Python and SQL nodes and for local and remote executors.

Push nodes: data from someone's desktop

Some data can only be read on one person's machine. A Bloomberg Terminal's Desktop API answers on that machine's localhost , signed in as that person, so neither the hub nor an executor can pull from it. A push node stands for that data in the graph, and a script on the machine that has it uploads each new version:

On the desktop, from Python:

or with the CLI, from a .parquet , .csv or .json file:

Each push is a run of the node, triggered push , with who pushed it and the note in its log. Freshness, history, views and downloads treat it like a computed output, and a new output cascades to the nodes that read it. Pushing the same data again makes the same output, which stops the cascade.

Nothing on the hub runs it. Runs leave push nodes out, and running one by name (from the workbench, the API or the agent) says it is pushed. Until the first push it shows new , "waiting for a push", and a node reading it fails with "has not been pushed yet". A push node takes no upstream nodes and has no schedule: schedule the script on the desktop (Task Scheduler, cron) instead. Editing the node file doesn't make the pushed output stale.

Parameters. A push node may declare run parameters ( push=True, params=["as_of"] ); each push is for one set of values ( params={"as_of": "2026-11-20"} , --param as_of=2026-11-20 ), so a day's snapshot can be pushed late without replacing today's.

What it sends. A DataFrame (pandas, polars or pyarrow) or a .csv goes as Parquet, stored exactly as a node's returned DataFrame is; a JSON-able value or a .json file as JSON. One push is one output: several tables are several push nodes. The hub takes uploads up to 1 GB ( EXUVIA_PUSH_MAX_MB ).

Who may push. Pushing changes the project, so it needs edit access. The token is EXUVIA_API_TOKEN (or the file EXUVIA_API_TOKEN_FILE names), or token= : your own agent token from the workbench's account , or the server's. As with exuvia env , plain http is refused unless the server is on the same machine ( --allow-http , allow_http=True ). Over HTTP it is POST /api/nodes/{name}/push with the Parquet ( Content-Type: application/vnd.apache.parquet ) or JSON ( application/json ) as the body, ?params= a JSON object and ?note= a line for the log. Another content type needs ?format=parquet|json ; a body sent as a form or as text/plain , which any web page can send, is refused (415).

Licences. Terminal data usually comes with limits on who else may see it. A hub that others can read, or a link, may take it past them: check the terms before pushing it somewhere shared.

To have the hub schedule the node and keep its code, and the desktop only run it, use a runner instead (below).

Runners: nodes that run on someone's desktop

A push node needs a script of your own on the desktop. A runner runs the node itself there: the hub keeps its code, schedule, history and the graph around it, and hands each run to the desktop.

(SQL: -- runs_on: bloomberg .) On the desktop, signed in with your own agent token from the workbench's account :

It dials out. The runner long-polls the hub over HTTPS for runs of nodes with its labels ( --label , repeatable), runs each one with the usual subprocess runner, streams the log back and uploads the output, which the hub checks by its hash. Nothing has to reach the desktop, so it works behind NAT or a corporate firewall.

Bound to a person. A runner takes runs only from projects its owner (the agent token's person) can edit, and only it can answer for a run it took. GET /api/runners lists your runners, online or not, and the runs waiting for one.

Code approval. Anyone who can edit the project, the agent included, could otherwise run code on your desktop. So a runner runs only code you have approved on that machine: the node's file, the lib/ files it imports and the project's pyproject.toml , uv.lock and exuvia.json , by their hash. New or changed code shows its diff from the version you last approved and waits for a yes when the runner is in a terminal. In the background, the run fails saying so, the code is kept, and exuvia runner approve shows it and approves it; the run (a retry, the schedule) goes ahead. Approvals live on the desktop ( EXUVIA_RUNNER_HOME , default ~/.exuvia/runner ): the hub can't grant one.

Only what it needs. The runner gets that node's code, not the whole project, and only the project variables its files name ( BBG_KEY in os.environ["BBG_KEY"] ), not every secret. The hub's and the runner's own settings ( EXUVIA_* ) never reach the node. Packages in the project's pyproject.toml are installed on the desktop with uv , as the hub's installer does.

Offline desktops. A run waits ("waiting for a runner labelled bloomberg", and whether one is online) until a runner takes it, for EXUVIA_RUNNER_WAIT seconds (default 3600), then fails; a runner that goes quiet for EXUVIA_RUNNER_SILENCE seconds (default 120) fails the run it held. Nodes downstream keep reading the last good output, as after any failed run, and retries tries again. A run waiting for a desktop takes none of the hub's run slots ( EXUVIA_MAX_PARALLEL ). Cancelling it on the hub stops it on the desktop too.

Sources only, for now. A runs_on node takes no upstream nodes, so no large output is shipped down to a laptop; it can't be live either. Read its output from nodes downstream, which run on the hub as usual.

Licences. The same as for push nodes: check the data's terms before its output lands where others can read it.

exuvia runner --once waits for one run and stops; --name names the runner on the hub (default: the machine's name). A run needs exuvia serve or exuvia hub : exuvia run has nothing to hand it to.

A view is custom UI over node outputs, kept apart from the graph's code (the canvas still draws each one under the nodes it reads). In a notebook the UI lives in each cell and is built from Python: widget calls, or HTML and JavaScript held in strings. Here the nodes compute outputs in Python and SQL, and a view is front-end code that only reads them: TypeScript, React and CSS in files of their own, with components, imports and types. The canvas, inspector and SQL box stay as they are.

How a view works, in short ("Rendering a view" below has the detail):

Nodes run and store their outputs. A view never runs anything; opening one re-runs only the nodes marked live (see Live nodes ).

The view's view.json names the nodes it reads. Those are the only outputs it can reach, and they are its edges on the graph.

The workbench loads the view's files into a sandboxed frame, compiles them in the browser (there is no build step and no npm install ) and renders the entry file's default export.

The code asks for data through the exuvia module: useTable("node") for a whole output, useQuery("select …") for DuckDB SQL over the nodes it reads. Tables arrive as typed Arrow data, not as HTML or JSON text.

When a run replaces an output the view reads, its hooks reload. When one of its files is saved, the frame is rebuilt.

The agent writes views with the same kind of tools it has for nodes. Whoever wrote it, a view runs in the sandbox and can only read.

Views are React, rendered inside the workbench. An app written in anything else reads the same outputs over HTTP, as Arrow streams or Parquet files (see Binary data ).

A view is a folder views/ / to nodes/ and lib/ , holding a view.json manifest and its source files:

reads is the whole of what a view can see : the outputs of those nodes, nothing else. Like a node's upstreams it gives the graph edges, a state, and the list of outputs a view depends on.

Rendering never runs compute. A view reads outputs that exist; it does not trigger runs. Work a view needs belongs in a node it reads. The one exception is a node its author marked live: opening the view re-runs it while the view shows the output it has (see Live nodes ).

runtime is react (the default and, for now, the only one) and entry is the component file ( App.tsx by default; .tsx , .ts , .jsx or .js ). title defaults to the folder name.

canvas pins the view on the graph's canvas, rendered live: true (a card 560 by 360 pixels) or {"width": 800, "height": 400} (280 to 1600 wide, 180 to 1200 high). Without it the canvas shows the view as a small card under the nodes it reads (see The canvas ).

View names follow the node-name rule (snake_case). Files are text with one of .tsx .ts .jsx .js .css .json .html .md .svg , at most 512 KB each, in plain relative paths (up to 8 levels); other files in the folder are not part of the view and node_modules/ is ignored.

Views are read statically , like nodes: a missing or broken view.json , an unknown key, a missing entry file or a reads entry naming a node that does not exist still lists the view, with a parse_error .

Every file of a view is versioned like node files (see "Execution model"), so any version can be restored and a deleted view brought back. The file watcher picks up edits made on disk.

Views are not shipped to a remote executor: no node can read them, so editing a view never ships a new project bundle.

GET /api/project (and GET /api/views ) list each view with its state for the requested parameter set, derived from the nodes it reads:

Each view also carries outputs : per read node, its state, kind and the artifact_id of the output the view would show now. Artifact ids name their content, so a client can fetch /api/artifacts/{node}/{artifact_id}.parquet once and cache it for good. For a node with several outputs, kind is multi and parts lists them ( name , kind , rows ). live lists the live nodes it depends on, those it reads and those upstream of them. hash covers every file of the view and the project's npm packages, so a client can tell when what the view runs changed.

The UI's Views mode ( to the graph) lists the views with their state and reason, shows the nodes each one reads (click one to open it on the canvas), lets you pick the run parameters, and renders the selected view. Compile and runtime errors from the view are listed under it with the file they came from; click the file to open it. examples/markets ships one ( views/vol_board ).

A view as an app. The view's expand button (or ?app= on the project's address: /?app=vol_board , or /p/ /?app=vol_board on a hub) opens the view on its own, full screen, with none of the workbench around it. One floating Tools button in its corner holds what the workbench offered around the view: the run parameters, a switch to the project's other views, Run for read nodes that are missing or stale (for editors), Copy link, (on a hub), Download, the colour theme and the way back to the workbench. Parameters other than their defaults ride along in the address as p. = ( ?app=vol_board&p.as_of=2026-11-06 ), so a copied link opens the view as it was shown; a value the project refuses is left out, with a note under Tools. #views/ opens a view in the workbench's Views mode instead. On a hub, the dialog gives every view's app address, and a link lands on one when ?app= is added to it (the dialog offers that when it shows a new link).

The view's Code tab lists its files ( view.json first, then the entry) and edits them in place, with TypeScript, JSX, CSS and JSON highlighting. Ctrl+S (⌘S on a Mac) or Save writes the open file ( PUT /api/views/{name}/files/{path} ), which versions it like any other edit and rebuilds the view; compile errors from the new version show up under the editor. Unsaved edits are kept per file while you move between files, views and the graph, and a file the agent or an editor on disk changes reloads unless you have unsaved edits to it. The History tab (or History in the Code tab's bar, which opens it on the file you are editing) lists every saved version of the view's files, deleted files included, and restores one (see "Browsing and restoring code" under "Execution model").

A view runs in an built from a srcdoc : an opaque origin, so no cookies, no API token and no access to the page. The frame fetches nothing at all: its Content-Security-Policy names no URL ( default-src 'none' , connect-src 'none' , images and fonts only from data: / blob: ) and lets only its own bootstrap script run (by nonce), plus code that script evaluates. The page fetches the runtime once and posts its source to the bootstrap. (Chromium does not let an opaque-origin frame load scripts from a local server anyway, so from the frame would fail for exuvia serve on localhost.) The view's only way to data is asking the page, and the page answers only for the nodes in reads .

The runtime ( ui/src/views/runtime.tsx , built to exuvia/static/view-runtime/runtime.js and served at GET /api/view-runtime/runtime.js ) is bundled with exuvia; nothing is fetched from a CDN, so views work where exuvia has no internet. It compiles each file in the browser with Sucrase (TypeScript + JSX to CommonJS) the first time it is imported, then renders the entry file's export default with React 19. A view can import:

its own files by relative path, with or without the extension ( ./Chart , ../lib/format.ts ; ./dir finds dir/index.tsx ), never outside its folder;

.css files (added to the page), .json (the parsed value), .svg (a data: URL);

by bare name, what the runtime ships: react (+ react/jsx-runtime ), react-dom (+ /client ), apache-arrow , vega-embed (Vega-Lite charts) and exuvia ;

by bare name, the npm packages in the project's package.json ( recharts , date-fns , lodash-es/debounce , leaflet/dist/leaflet.css ; see npm packages for views ). Anything else is a compile error naming the file and the package, which the error offers to add ( Add recharts ).

exuvia is the view's API:

The hooks reload by themselves when an output they read is replaced (a run finished, or the parameters changed) and keep the data while reloading. The page's CSS variables ( --bg , --panel , --line , --text , --muted , --accent , --fresh , --failed , --mono , --sans ) are set in the frame and follow light and dark mode.

The protocol between the frame and the page is postMessage , defined in one typed module, ui/src/views/protocol.ts . Every message carries channel: "exuvia-view/1" , and each side also checks the sender (the frame's origin is "null" , so the origin says nothing):

The page refuses table / json for a node not in reads and sends every request to the view-scoped routes below, which refuse it again on the server. It caches table answers by artifact_id (an id names its content). When the view's files change (its hash ), the frame is rebuilt.

View-scoped data routes. GET /api/views/{name}/data/{node} is /api/nodes/{node}/data (JSON or Arrow, ?params= ) that answers 403 unless the view reads node . POST /api/views/{name}/query is /api/query over a DuckDB connection that holds only the views of the nodes in reads (and their __runs ) and is then locked: external access is off except for those exact output files, extensions cannot load, and the configuration cannot be changed back, so the SQL cannot read_parquet another node's file, COPY out, ATTACH a file or INSTALL anything. GET /api/views/{name}/data/{node}/export and POST /api/views/{name}/query/export are the same two routes as downloads (see "Downloads").

Live nodes: current data when a view opens

Most outputs only change when their inputs or code do, or on a schedule. Some are worth fetching again whenever someone looks: quotes, a queue's depth, today's sign-ups. Mark such a node live , and opening a view that depends on it re-runs it:

The view opens at once. It renders the outputs that are stored, as always, and says Refreshing ( to its state in the workbench, in the top corner as an app) while the live nodes run. When the new outputs land, its hooks reload and the indicator goes. A view's code can show its own with useRefreshing() ( useRefreshing("quotes") for one node).

What runs. The live nodes the view reads, and those upstream of what it reads, for the parameters the view shows; then the nodes between them and the view, each re-run only if the live node's output changed (cached otherwise), so what the view reads is current in the same batch. Changing the view's parameters refreshes again at the new values.

live=True or seconds. True re-runs on every open; a number of seconds (up to a week) re-runs only when the output is older than that, which bounds how often a busy view re-runs a slow or rate-limited source. A live node that is already running for those parameters is not started again: every viewer waits for the same run.

Each refresh is a run of the node, triggered live , with who opened the view as who started it, so it shows in the history like any other run, and a new output cascades as usual. A live node can still have a schedule, and runs by hand like any node.

Anyone who can open the view refreshes it, viewers and links included: making a node live says it may run whenever its view is looked at. Over HTTP it is POST /api/views/{name}/refresh with {"params": {...}} ; it answers at once with live (the view's live nodes), started and skipped (node → why not: already running, or refreshed within its seconds).

A push node can't be live: nothing on the hub runs it.

The canvas: stages, views and activity

The graph is the interface, so the canvas says more than which node feeds which. As a graph grows past what fits on a screen, three things keep it readable: stages, the views drawn with the nodes they read, and Activity.

Stages. A stage is one step of the graph (ingest, features, models, reports), drawn as a labelled region around its nodes with their states along its top. Fold a stage and it becomes one card that stands for all its nodes: coloured by the one that most needs attention, with the count in each state, and the edges in and out of it rerouted to the card. A forty-node graph folds into a handful of steps you can read at a glance; open the one you're working on. The canvas's controls fold or open every stage at once, and the browser remembers which are folded, per project.

Stages live in exuvia.json , not in the node files, so arranging nodes in stages never changes a node's code and never makes an output stale:

A stage's name is snake_case; title (the label, default the name) and description are optional, and a list of nodes alone is the short form. Stages are drawn in the order written.

A node is in at most one stage. A node named by two is in the first, and the second reports it ( problem ). Nodes a stage names that do not exist are listed as missing and otherwise ignored; nodes in no stage are drawn on their own.

The agent has set_stage (a stage's whole list of nodes; a node moves out of any other stage) and delete_stage (the nodes stay). Over HTTP: GET /api/stages , PUT /api/stages/{name} with {"nodes", "title", "description"} , DELETE /api/stages/{name} . GET /api/project lists stages , and each node's stage .

Views on the canvas. Each view is a card under the nodes it reads, with a dashed edge from each: what the view shows, and whether it is current ( ready , missing , stale or error ). Click it to open the view. A view whose manifest sets canvas is drawn as the view itself, rendered live in a card of that size, so the graph carries its own overview: a status board, the latest numbers, a chart of what the pipeline produces. It behaves as it does in Views mode: it only reads, it refreshes its live nodes when the canvas shows it, and its header opens it in Views. A control on the canvas hides the plain view cards; pinned views always show.

Lineage. Select a node and the canvas lights up what flows into it and everything it flows on to, views included, and dims the rest: what a change to it touches, and where its data comes from.

Activity. A panel over the canvas says what the graph is doing now: the nodes running (and for how long) and queued, those that failed and why, what the schedule runs and what finished in the last hour. A row brings its node into view, opening its stage if it is folded. It is open by default on a graph of more than eight nodes on a wide screen; closed, it is one button that counts what is running and what failed.

Contents. A button at the canvas's top left opens its table of contents: the stages, each foldable, over their nodes, in the notebook's reading order. A node brings it into view (opening its stage if it is folded) and selects it; a stage fits its frame or card in the view. The canvas remembers per project whether it is open.

Notebook: the same graph, read top to bottom

Graph mode has two layouts, switched in the project's bar: Canvas draws the graph, Notebook reads it as a document, top to bottom. It is the same graph and the same selection: pick a cell and the inspector shows that node; switch layouts and the node stays selected and in view. The browser remembers the layout per project, and #notebook/ is the address of a node's cell.

Sections are the stages, in the order written: each a heading with its description and how many of its nodes are in each state. Nodes in no stage come in an untitled section, placed by what they read.

Each node is a cell : its state, what it is for (its docstring or description, rendered as Markdown: see "Nodes"), what it reads (each a link to that cell), its code (folded; a click opens it in the inspector's editor), the first rows of its output under its chart when it has one, and Run.

Views come right after the last node they read: a pinned view ( canvas in its view.json) rendered live, as on the canvas; any other view a line that opens it.

Reading order is not run order. A node still runs when what it reads changes, wherever its cell is; there is no "run everything above". The order follows four rules: a node comes after what it reads; within a stage its nodes keep the stage's order, and a stage that reads a later one comes after it; chains of nodes in no stage are followed depth first, so prices → returns → rolling_vol read together instead of interleaving with unrelated branches; and a new node goes after its last upstream (or where its stage lists it) without moving any other.

Contents run down the notebook's left edge: the stages, each foldable, over their nodes and views, with the entry being read marked as you scroll. A click goes to that cell (and selects a node). They fold to a rail with one button; the browser remembers which, and on a notebook wider than 1000px they start open. Where the notebook is narrower than 600px they open over it and close after a pick.

Cells load as they scroll into view, each output's preview with them. A viewer of a shared project reads the notebook without Run and Edit.

Anything you can see in the workbench you can save as a file. Every table offers four formats: CSV , Excel ( .xlsx : typed cells, a frozen header row; text that starts with = stays text, never a formula), Parquet (typed columns, for pandas, DuckDB or Spark) and JSON (an array of rows). A JSON output downloads as .json .

A node's output , every row, not just what the table shows: the download button in the node's header and under its Data tab. For a node with several outputs, each one on its own, or all of them as the stored .zip .

A past run's output: the Runs tab, on any successful run.

A SQL result: the button beside "Run query" saves the whole result.

What a view reads , for the parameters it shows: the button in the view's header. A view can add its own buttons with download() (see "Rendering a view").

Code, as a .zip: the whole project (the download button in the top bar, or the one beside the Files tab's filter), one node with the lib/ helpers it imports (the node's header), or one view (the view's header). The archive holds the nodes, helpers and views with exuvia.json , pyproject.toml , uv.lock , package.json , AGENTS.md and README.md when present; never .env , run history or outputs.

The same routes serve scripts:

The file is named after the node and the run's parameter values ( prices-2026-11-20.csv ); filename (without the extension) names it otherwise. CSV and JSON stream as they are written, so a big table never sits in memory. One Excel sheet holds 1,048,575 rows: a bigger table is refused (413), so download it as CSV or Parquet. Lists, structs and maps become JSON text in CSV and Excel cells. A viewer of a shared project can download everything they can read.

A project lists the packages its nodes import, beyond those exuvia comes with, in the standard place: [project] dependencies in the project's pyproject.toml . The packages travel with the project, so the same list works on a laptop, in every project on a hub (each with its own list) and on a remote executor, which installs from the copy in the bundle it receives.

Adding a package in the workbench. The Packages button above the graph, in the project's bar lists what the project has and what is installed for it, adds packages ( scikit-learn , acme-models>=2 ) and removes them, edits pyproject.toml directly, and shows the install's status and log. A package added without a version is pinned to the exact version installed, so the project stays reproducible. When a node fails on an import of something not installed, its error offers the package ( Install scikit-learn for import sklearn ): one click adds it, installs it and re-runs the node.

From a terminal. exuvia init writes a pyproject.toml , and uv add in the project folder adds to it, as does editing the list by hand. exuvia picks the change up on the run.

The agent asks; a person approves. The agent has list_packages and request_packages . list_packages shows the project's list and its install; with environment: true it also lists every package installed where nodes import from, with its version, so the agent can check before it asks. On a node that fails for want of a package it asks for it, and the request waits in the Packages panel, with the agent's reason, for someone to install or dismiss it. Set EXUVIA_AGENT_PACKAGES=install to let the agent add packages itself, or off to keep it from asking. MCP clients get the same tools and the same rule.

Installed ahead of time. A change to the list starts its install in the background right away, and a hub checks every project's list when it starts, so a project restored from an export or moved to a new exuvia version is ready before anyone runs it. A run that starts during an install waits for it. An install that fails (a package that doesn't exist, a registry that refuses the credentials) shows uv's explanation in the panel, and runs fail at once with the same error until the list changes or someone retries. Every change to pyproject.toml is kept as a code revision.

Installed once, kept across restarts and upgrades. An install is named after what it holds: the packages and versions the list resolved to, the index each came from, the Python version and the platform. So:

A restart reuses it without resolving anything.

When the list or exuvia's version changes, the list is resolved again (seconds, nothing installed), preferring the versions installed before. If that gives the same packages, which is usual after an exuvia upgrade, the install is reused. Only packages that changed, a new Python, or a new NumPy major version (compiled packages are built against it) install again.

On a hub, projects whose lists resolve to the same packages one install, kept in the hub's .exuvia/packages/ beside the projects. A project on its own keeps its installs in its own .exuvia/packages/ .

uv's download cache sits in the hub's .exuvia/packages/.uv-cache/ , on the hub's volume, so an install that does run after a restart copies files instead of downloading and building them again. A UV_CACHE_DIR set on the server wins. Deleting the cache is safe; it fills again as needed.

An install no project uses any more is removed, at the earliest an hour after it was made. Hub exports leave installs out; a restored project installs from its pyproject.toml .

They sit on top of exuvia's own packages. Nodes keep using the pandas, pyarrow and DuckDB that exuvia runs with, so the project's list is resolved against those versions, and packages exuvia already has are not installed again. A package that needs, say, pandas _USERNAME and _PASSWORD (the index name in capitals) can each come from a file with _FILE , for a Docker or Kubernetes secret. Any other uv setting works the same way ( UV_DEFAULT_INDEX to replace PyPI with a mirror, for one).

A single project can also name an index of its own in its pyproject.toml , where uv reads it. uv add --index internal= acme-models writes both parts:

Its credentials go in the environment as above, or in the project's .env . A remote executor installs the packages itself, so it needs the index settings in its own environm...