Skip to content

Everything a seed script does, on a canvas

Cascade turns the chain of API calls behind your test data into a graph you can see, run, rerun and share. Here is what is in the box.

A canvas that knows what depends on what

Every connection is a dependency: the target runs after its source and can read what the source returned.

  • Edges show the named outputs their source hands on.
  • Right-click the canvas to add any node kind, or an edge to insert a node into it.
  • The scissors tool cuts every connection you drag across.
  • Copy, paste and duplicate nodes, or save a request to a collection for reuse.
  • HTTP request

    Any method, path, query, headers and body, sent by the Go engine.

  • Transform

    Reshape data between calls with pick rows or a JavaScript script.

  • For loop

    A container that repeats its nodes a set number of times or per array element.

  • Mock

    Emits static JSON you write, standing in for an endpoint that does not exist yet.

  • Delay

    Pauses the run for up to five minutes, for APIs that settle slowly.

  • Note

    A sticky note on the canvas, for the context a graph cannot carry.

Bindings instead of copy and paste

Fill any field with a reference to what an upstream node returned. The picker lists every path it can reach.

  • Bindings work in paths, query parameters, headers and bodies.
  • Response schemas are inferred from the last run, so the picker knows fields before you type them.
  • A reference to a node that is not upstream is flagged before anything is sent.
The inspector for Invite Member: its path parameter is being bound, and the picker lists the status, headers and body fields that Create User and Create Org returned.

Binding syntax

A field holding one binding keeps the value’s JSON type, so a number stays a number. Bindings inside longer text are written into it.

WriteTo read
{{createUser.body.id}}A value an upstream node returned, by the node’s key. A bare {{createUser.id}} reads the body too.
{{createUser.status}}Its status code, or a response header with headers.Location.
{{createUser.userId}}A named export, which a node declares once for everything downstream.
{{res.id}}The single node directly upstream, without naming it. {{res}} alone is its whole body.
{{res.orgs[*].id}}The id of every element of orgs, as an array. orgs[0] picks one element.
{{i}}The iteration index inside a loop, counting from 0.
{{item.email}}The current element, when a loop runs once per element of an array.

Loops for real volume

Put nodes inside a For container and they run as a group, once per iteration.

  • Count mode repeats up to 10,000 times, with {{i}} as the index.
  • Each mode runs once per element of an upstream array, with {{item}} as the element.
  • The container shows live progress, and each log row from inside it carries its iteration number.
  • If an iteration fails, the loop stops there and fails, so nothing after it runs on partial data.
A For loop running its third of five iterations, with the edge into it animated.

Reshape data between calls

When one API’s response is not the next API’s request, put a transform node between them.

  • Pick mode maps fields with rows, no code needed.
  • Script mode runs JavaScript with res, nodes.<key>, i and helpers, and returns any JSON value.
  • Scripts run in an embedded sandbox with no network, file system or timers.
  • Test a script against the last captured responses before running the board.
A transform script that builds an invite payload from the new org, beside the node it feeds.

Real runs, every call on record

Run the whole board, or one node and everything after it. Requests go out from the Go engine, not the webview.

  • Node states change live as the run moves through the graph, and Stop cancels requests in flight.
  • A failed node skips its dependents; the rest of the board still runs.
  • The logs panel lists every call, newest first, filters by status or text, and keeps each request and response.
  • Hover a log entry to find its node on the canvas.
Create Project failed with 422 Unprocessable Entity; Get Project after it is skipped while Invite Member succeeded.

One board, any environment

Environments are named base URLs. The project has a default, and any node can point somewhere else.

  • New nodes target the project’s default environment.
  • Override the environment or the origin on a single node when one call lives elsewhere.
  • The seeded project starts with local, staging and sandbox environments to edit.
The Envs tab listing local at localhost:8080, staging marked default, and prod-sandbox.

Credentials that stay secret

Bearer tokens, basic auth, custom headers and query parameters, chosen node by node.

  • Values are write-only once saved and live in the OS keychain, or an encrypted file where there is none.
  • Project files and exports carry credential names and kinds, never values.
  • Secrets are redacted from logs, test responses and transport errors.
The New credential dialog for a bearer token: the Authorization header it sends with the value masked, and a secret field that is write-only after saving.

Projects and collections

Keep each system you seed in its own project, with its own environments, credentials and collections.

  • Collections hold reusable requests in folders, one click from the canvas.
  • A saved request’s Test tab sends it on its own and shows the response.
  • Everything is saved as plain JSON in a folder you can back up, read or diff.
  • cascade/
  • projects.json # the project list
  • projects/
  • q4mh7zk2ta/ # one folder per project
  • project.json
  • environments.json
  • credentials.json # names and kinds, no values
  • boards/
  • x7c2mfp9ke.json
  • collections/
  • b3tn8wq5ld.json

Inside your user config folder

macOS
~/Library/Application Support/cascade
Windows
%AppData%\cascade
Linux
~/.config/cascade

Boards you can review in git

Export a board as a versioned .cascade.json file, with stable key order for clean diffs.

  • Copy and paste nodes between projects, with the bindings between them intact.
  • On import, map the credentials and environments a board expects to the ones you have.
  • Exports leave out captured responses, and a project can keep them out of its board files too.
signup.cascade.json
{  "cascade": {    "kind": "board",    "formatVersion": 1,    "board": {      "name": "Signup chain",      "nodes": [        { "id": "n1", "type": "http", "name": "Create User", … },        { "id": "n2", "type": "http", "name": "Create Org", … }      ],      "edges": [{ "id": "e1", "from": "n1", "to": "n2" }]    },    "requires": {      "environments": ["staging"],      "credentials": [{ "name": "staging-admin", "kind": "bearer" }]    }  }}

Wire up your first chain

Free for any use under the MIT License. Grab a build for your platform, or compile it from source.

Install notes and checksums Every release on GitHub