Pipelines
A pipeline is a YAML file shipped in your app’s signed package that names compute steps and how they connect: one run per document, then one that joins the results. The node runs it as compute runs on job nodes, over sealed files your members upload, and hands back only the outputs the pipeline names. Calimero publishes pipeline modules, prebuilt compute steps a pipeline can use without writing any code for them. They are for teams that process documents, tables or model inputs nobody else should see.
Why it’s confidential
Section titled “Why it’s confidential”- A module keeps no data and reaches no host. Each runs in the compute sandbox: no network, no threads, no filesystem beyond the sealed files it is given.
- Files stay sealed. An uploaded file’s bytes are readable only inside a compute run, never by a call or a view.
- Only the final outputs leave. The files of the steps the pipeline’s
outputsnames can be downloaded. The run’s inputs and every other step’s outputs are held: not listed, exported or published, by the run’s starter, the app’s owner or any member. - A run is pinned. Each step names its module with a version, a run pins the pipeline by hash when it starts, and every run has a receipt you can verify.
The modules
Section titled “The modules”Each module is a package com.calimero.modules.<name>, at version 0.1.0. A step names it with its release, for
example module: com.calimero.modules.pdf-extract@0.1.0. Every method refuses bad input with an error, never a
partial output.
| Module | Method | What it does |
|---|---|---|
pdf-extract |
extract |
One JSON file per PDF: its text, page count and invoice fields (vendor, invoiceNumber, date, total, currency, iban). Scanned PDFs without a text layer give empty text. |
redact-pii |
redact |
Replaces email addresses, IBANs, card numbers and phone numbers with [EMAIL], [IBAN], [CARD] and [PHONE] in text, CSV or JSON. IBANs and cards must pass their checksums. |
onnx-infer |
score |
Runs an ONNX model over a CSV of numeric feature rows and writes each row’s class probabilities. Dense models and tree-ensemble classifiers. |
table-split |
split, merge, select |
Splits a CSV or JSON Lines table into shards, merges shards back in order, or keeps named columns. merge(split(x)) is byte-identical to x. |
render-report |
render |
Renders JSON rows as a Markdown or HTML table, with an optional title and template. |
| Module input | Largest |
|---|---|
A PDF (extract) |
256 MiB |
A table (split, merge, select) |
1 GiB |
A model (score) |
400 MiB |
An example pipeline
Section titled “An example pipeline”batch-inference cuts a CSV into shards, scores each shard with a model, and merges the probabilities in shard order:
apiVersion: compute.calimero.network/v1kind: Pipelinename: batch-inferenceparams: rows-per-shard: { type: number, default: 5000, min: 1 }inputs: model: { kind: artifact } rows: { kind: table }steps: shard: module: com.calimero.modules.table-split@0.1.0 method: split inputs: [inputs.rows] args: { rowsPerShard: params.rows-per-shard, format: csv } limits: { fuel: 2000000000, memoryMib: 1024 } score: module: com.calimero.modules.onnx-infer@0.1.0 method: score forEach: shard.outputs maxItems: 100 maxParallel: 8 inputs: [inputs.model, item] limits: { fuel: 2000000000 } scores: module: com.calimero.modules.table-split@0.1.0 method: merge collect: score.outputs args: { format: jsonl } limits: { fuel: 2000000000, memoryMib: 1024 }outputs: [scores.outputs]A second, document-processing, runs PDF invoices through extract and redact in batches of 25, merges the redacted
JSON with table-split merge, and renders a report with render-report. Its outputs are the redacted invoices and
the report; the raw extracted text never leaves the run.
A few things to know when chaining modules:
splittreats the first CSV line as a header and repeats it in every shard, so the table needs one;scoreskips it.splitrefuses a table whose first line is all numbers.scorewrites headerless CSV, so merge its shards withformat: jsonl, which joins the bytes unchanged.renderreads JSON rows only.
Use it
Section titled “Use it”- Write the pipeline and check it:
meroctl cloud compute pipeline validate pipeline.yaml. - Pack it into your release with
meroctl app pack --pipeline pipeline.yaml(ormeroctl app release). Today a package with pipelines must also ship a compute component of its own, even when every step names a module. - Deploy the release from the console. Before it deploys, Calimero Cloud installs on that cluster each module version your pipelines name.
- Upload the inputs and start a run, from the pipeline’s page under Pipelines in the console or with
meroctl.
meroctl file upload ./rows.csv -i <instance> # prints { id, size, sha256, index }meroctl cloud compute pipeline estimate <instance> batch-inference --input model=<model-id> --input rows=<rows-id>meroctl cloud compute pipeline run <instance> batch-inference --input model=<model-id> --input rows=<rows-id> \ --param rows-per-shard=5000 --max-cost 5000000 --waitmeroctl cloud compute pipeline download <instance> <run> --out ./scoresLimits
Section titled “Limits”| Limit | Value |
|---|---|
| Each module method | 10¹² fuel, 4 GiB of memory and 900 seconds |
| Files in one run | 1,024 |
| Runs going at once in one app | 8 |
| Pipelines in one package | 16, each at most 64 KiB |
| Outputs kept | 1 to 90 days as the app’s managers set, 7 by default |
A step whose method, arguments and input contents match an earlier successful run in the app is answered from the step cache, at no cost.
Pricing
Section titled “Pricing”Pipeline runs are billed per run, as compute: WASM CPU and memory on a shared cluster (see
Products → Pricing), within the flat fee on a dedicated one. --max-cost caps what one run may
owe; a start by an API key or another app must give it.
Further reading
Section titled “Further reading”- Files and pipelines: every pipeline field, secret params, starting runs from a backend or another app
- Pipeline runs: fan-out waves, failures, cache and cost
- meroctl reference
- Deploy & install