Skip to content

How to use Cascade

From first launch to a board that seeds a whole environment: building chains, bindings, loops, runs, secrets and sharing, and where your data lives.

Install

Cascade runs on macOS 12 or later (Apple silicon and Intel), 64-bit Windows 10 and 11, and 64-bit Linux with WebKitGTK 4.1. Every build is free under the MIT License.

The macOS build is signed and notarized by Apple. The Windows build is not code-signed yet, so SmartScreen may stop its first launch. The download page shows what to expect on each platform, and how to check your file against its published checksum.

First launch

The first time it starts, Cascade creates a project called Default with a demo board of five requests: Create User, Create Org, Invite Member, Create Project and Get Project. Each one after the first reads an id from a response before it.

The requests are real. Every node targets the local environment, http://localhost:8080, so with nothing listening there, Run fails at Create User with a connection error and skips the other four.

To point the demo at your own API:

  1. 1 Open the Envs tab in the sidebar and choose Edit on local.
  2. 2 Set Base URL to your API, such as http://localhost:3000/api, and save.
  3. 3 Click each node to open it in the inspector, and change its path and fields to match your endpoints.
  4. 4 Press Run in the top bar.

The window

AreaWhat it holds
Top barThe sidebar toggle and the project switcher on the left. Run, Stop and the board menu (⋮) on the right.
SidebarThree tabs: Operations, with the request catalog and your collections, then Envs and Credentials.
CanvasYour board. The Select and Scissors tools sit at the top left, zoom, fit and lock at the bottom left, and a minimap at the bottom right.
InspectorOpens on the right when you select a node, with everything that node sends and returns.
LogsAlong the bottom: every call made, newest first. Drag its top edge to make it taller.

There is no save button. The board is saved as you edit it, and so are environments, credentials and collections.

Build a chain

A board is a graph. Nodes are steps, and a connection from one node to another means the second depends on the first: it runs later, and can read what the first returned.

NodeWhat it does
HTTP requestAny method, path, query, headers and body, sent by the Go engine.
TransformReshape data between calls with pick rows or a JavaScript script.
For loopA container that repeats its nodes a set number of times or per array element.
MockEmits static JSON you write, standing in for an endpoint that does not exist yet.
DelayPauses the run for up to five minutes, for APIs that settle slowly.
NoteA sticky note on the canvas, for the context a graph cannot carry.

Add nodes

  • Click a request under Sources or Collections in the sidebar to add it to the board.
  • Right-click the empty canvas for Add node…, which searches the catalog, Add custom request, Add transform, Add mock, Add delay, Add for loop and Add note. The node lands where you clicked.
  • Right-click a connection and pick one of its Insert entries to put a new node in the middle of it.
  • Right-click a node to Copy, Duplicate, Rename or Delete it.

Connect nodes

  • Drag from the handle on a node’s right edge to the handle on another node’s left edge.
  • A label on the connection lists the named outputs its source hands on.
  • Notes have no handles. They hold comments and never run.
  • To remove a connection, right-click it and choose Cut connection, or select it and press Backspace. The Scissors tool (X) cuts every connection you click or drag across.

Edit a request

Select an HTTP node to open it in the inspector. From top to bottom:

SectionWhat you set
Name and KeyThe name shows on the card. The key is how other nodes refer to this one, as in {{createUser.body.id}}: letters, digits and underscores, not starting with a digit. res, i and item are reserved.
RequestThe method and path. Placeholders such as {id} in the path become path parameters. The globe button sets an origin override, to call a different host than the environment’s.
Environment, CredentialWhere the request goes and which credential signs it. New nodes start on the project’s default environment.
Params, Headers, BodyRows of names and values. A value is literal text, a binding, or text with {{…}} in it. Body field names with dots nest, so user.name builds {"user": {"name": …}}. Switch the body to raw to send any text, templates included. GET and HEAD requests have no body.
OutputsNamed exports: short names for values in the response, such as userId for body.data.id, for nodes downstream to use.
Response schemaThe shape of the response, inferred from the last run. Use last response as schema pins it, so it is saved with the board.

Bindings

A binding reads a value from a node upstream of the one you are editing. Use one in any param, header or body field, or inside a raw body.

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.

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. In member+{{i}}@example.com, the loop index becomes part of the email.

Pick instead of typing

  1. 1 Connect the node you want to read from, directly or further upstream.
  2. 2 Run it once, so Cascade can infer the shape of its response.
  3. 3 Click the link button beside a field, Insert reference…, and pick a status, header or body field of any upstream node, or one of its named exports.

The picker writes {{key.path}} at the cursor. Before an upstream node has run, type a path such as body.data.id into the box at the bottom of the picker instead.

What a node can read

  • Any node upstream of it: its direct sources, their sources, and so on back.
  • res, the one node directly upstream. With two or more direct sources, name the node you mean instead.
  • Inside a For loop, the nodes before it in the loop and the loop’s own upstream nodes, plus {{i}} and, in each mode, {{item}}.

The inspector flags a reference to any other node, and a node holding one fails without sending its request.

Named exports

An export gives a value in a node’s response a short name. Add one under Outputs, say userId for body.data.id, and every node downstream can write {{createUser.userId}}. When the response changes shape, you fix one path on the node that returns it.

For loops

A For loop is a container. The nodes inside it run as a group, once per iteration, one iteration after another.

  1. 1 Right-click the canvas and choose Add for loop.
  2. 2 Drag nodes onto it. A node joins the loop when you drop its center inside, and leaves when you drag it out.
  3. 3 Connect upstream nodes to the loop’s left handle, and its right handle to whatever comes after it.
  4. 4 Select the loop and pick a mode in the inspector.
ModeRuns its nodesInside the loop
countA set number of times, from 1 to 10,000.{{i}} is the iteration, counting from 0.
eachOnce per element of an array an upstream node returned, up to 10,000 elements.{{item}} is the element and {{i}} its index.
  • Only HTTP, transform, mock and delay nodes can go inside a loop, and loops do not nest.
  • Connections cannot cross the loop’s border. Connect outside nodes to the loop itself; the nodes inside connect only to each other.
  • If any node fails during an iteration, the loop stops after that iteration and fails, and the nodes after the loop are skipped.
  • Running any node inside a loop runs the whole loop.

Reading a loop’s results

Downstream, a loop returns one array per node inside it, under that node’s key, with one response body per iteration. For a loop keyed seedProjects around a Create Project node, {{seedProjects.createProject[*].id}} is the id of every project it created.

Transforms

A transform reshapes data between calls, for when one API’s response is not the next one’s request. What it returns is what nodes downstream read.

Pick mode

Each row writes one key of the result from an expression, such as emails from res.body.members[*].email, or ownerId from {{createUser.body.id}}. No code involved.

Script mode

Write JavaScript that ends in return. The value it returns must be JSON, and becomes the node’s output.

transform script
// Build an invite for the org the previous node created.const { id } = res.bodyreturn { orgId: id, email: `admin+${i}@example.com`, role: "admin" }
NameHolds
resThe direct upstream node’s response, as { status, headers, body }, when there is exactly one.
nodes.<key>The response of any node upstream, in the same shape.
iThe loop iteration, or 0 outside a loop.
itemThe current element, inside an each-mode loop.
_Helpers: get, pick, omit, keys, values, uniq, uniqBy, groupBy, keyBy, countBy, chunk, flatten, compact, first, last, range, sum, sumBy, min, max, sortBy, mapValues.
  • Scripts run in a sandbox inside the app, with no network, file system, timers or require.
  • A script gets one second to run and can return up to 1 MiB of JSON.
  • Test against last responses runs the transform on its upstream nodes’ last captured responses, with i as 0, and shows the result without changing the board.

Mocks and delays

A mock returns JSON you write, with a status code from 100 to 599, standing in for an endpoint that does not exist yet. It is returned exactly as written: {{…}} inside it is not filled in, so reach for a transform when you need upstream data.

A delay waits between 1 ms and 5 minutes, then passes on its upstream node’s output unchanged. Nodes run one at a time, so everything after the delay waits too, even on another branch. Stop cuts the wait short.

Run a board

To runUse
The whole boardRun in the top bar.
A node and everything after itThe play button on the node, shown when you hover or select it. Loops and notes have none.
A node and everything it depends onRight-click it and choose Run this node.
Everything connected to a nodeRight-click it and choose Run chain.
  • Nodes run one at a time, each after everything it depends on. Independent branches do not run in parallel yet.
  • A partial run reads the last responses of the nodes it leaves out, so you can rerun one step without repeating the ones before it.
  • Stop cancels the request in flight. The interrupted node shows as stopped, and nodes the run had not reached stay idle.
  • Only one run goes at a time.
  • Requests time out after 30 seconds.
StatusMeaning
idleNot run since the board opened, or not reached yet.
runningIn flight now.
successFinished. For a request, the response status was below 400.
failedThe request could not be sent, the response status was 400 or above, or a binding could not be read. The card says which.
skippedSomething it depends on failed or was skipped, so it never ran. Branches that do not depend on the failure still run.

Logs

  • Every call gets a row, newest first, with its time, node, request, status and duration. Rows from inside a loop carry the iteration, counting from #1.
  • Click a row for the full request and response.
  • Filter by status, or type to match a node key, URL or run id.
  • Hover a row to light up its node on the canvas.
  • Skipped nodes get no row.
  • Logs live in memory only. Clear logs, switching project or quitting empties them.

Environments

An environment is a named base URL, such as staging at https://staging.api.example.com. Each node’s path is joined onto it, so a prefix every path shares, like /v1, belongs in the base URL.

  1. 1 Open the Envs tab and choose Add environment.
  2. 2 Give it a name and a base URL, then Save.
  3. 3 Choose Set default on the environment new nodes should use.
  • The first environment you add becomes the default. Deleting the default hands it to the next one.
  • Pick another environment for a single node in its inspector, or set an origin override with the globe button to send it to another host altogether.
  • Names cannot change after saving, because nodes refer to environments by name.
  • Delete asks for a second click, and says how many nodes still use the environment.

Credentials

KindSends
Bearer tokenAuthorization: Bearer <secret>
Basic authAuthorization: Basic base64(<username>:<secret>)
Custom headerA header you name, such as X-Api-Key: <secret>
Query parameterA URL parameter you name, such as ?api_key=<secret>

Custom header and query parameter credentials can wrap the secret in a value template, such as Token {secret}.

  1. 1 Open the Credentials tab and choose Add credential.
  2. 2 Name it, pick a kind, fill in its fields and the secret value, then Save.
  3. 3 Select it under Credential in a node’s inspector.
  • The secret is write-only: once saved, Cascade never shows it again. Rotate on the credential’s card replaces it.
  • Secrets are masked in logs, test results and error messages.
  • A node whose credential has no secret stored fails until you set one, or pick None to send it without auth.

Where secrets are kept

Secrets go to your system’s keychain: Keychain on macOS, Credential Manager on Windows, and the Secret Service, such as GNOME Keyring, on Linux. Each one is stored under the service cascade, with the account <project id>/<credential name>.

Projects and collections

A project holds a board plus its own environments, credentials and collections. Keep one per system you seed.

  • Switch, create, rename and delete projects from the project switcher in the top bar. Cascade reopens the one you used last.
  • A new project starts empty: no environments, credentials or collections, and a blank board.
  • Deleting a project removes its folder and its secrets. Deleting the last one leaves you a new, empty Default project.

Collections

Collections keep the requests you reuse, in folders up to three levels deep. Click a request in the sidebar to add it to the board.

  • Right-click an HTTP node and choose Save to collection… to keep it. The collection stores literal values only; bindings and credentials stay on the board.
  • A node added from a collection stays linked to its request. After you change the node, Update collection request in its menu writes the changes back.
  • Right-click a collection or folder for New request…, New folder, Rename and Delete, and a request for Edit request… and Duplicate too.
  • A request’s Test tab sends it once, outside any run, and can turn the response into a schema.

Share boards

Boards travel as .cascade.json files: versioned JSON with a stable key order, so they diff cleanly in git. They carry credential names and kinds, never secret values.

ToUse
Save the board as a fileExport board… in the board menu, the ⋮ button at the top right.
Open a board fileImport board… in the same menu. It always adds a new board and opens it.
Copy the whole boardCopy board as JSON in the same menu.
Copy some nodesSelect them and press Cmd+C (Ctrl+C), or right-click one and choose Copy.
Paste nodesPress Cmd+V (Ctrl+V), or right-click the canvas and choose Paste. It works across projects.
  • Exports leave out run state and captured responses.
  • Pasted nodes get fresh keys, and the bindings between them follow along. A binding to a node you did not copy is dropped, and its field asks you to bind it again.
  • When a board or paste needs environments or credentials this project lacks, Map imported requirements lets you create placeholders, use ones you have, or leave them unmapped. Placeholders get no base URL or secret until you fill them in.
  • The format specification documents every field, for tools that write or read boards.

Responses in board files

To feed the binding picker, board files keep each node’s last response, and a login node’s response can hold a real access token. Turn off Save response bodies in board files in the board menu to leave them out of every board in the project. The inferred schemas are saved either way, so the picker keeps working.

Where your data lives

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

On Linux, $XDG_CONFIG_HOME/cascade takes over when that variable is set. Inside the folder:

cascade/
projects.json               the project listprojects/<project id>/  project.json              name and defaults  environments.json  credentials.json          names and kinds, no secrets  boards/<id>.json  collections/<id>.json  sources/<id>.json         request catalogs
  • Everything is plain JSON, and each file is replaced whole on save, so a crash cannot leave one half written.
  • Run state, logs and panel sizes are not saved.

Start over

  1. 1 Quit Cascade.
  2. 2 Delete the data folder.
  3. 3 Open Cascade again. It creates the Default project with the demo board.

Keyboard and mouse

KeysAction
Cmd+C (Ctrl+C)Copy the selected nodes
Cmd+V (Ctrl+V)Paste nodes in the middle of the canvas
Backspace, DeleteDelete the selection
XScissors: click or drag across connections to cut them
VBack to the select tool
EscapeClose a menu or dialog, leave the scissors, or clear the selection
Shift + dragSelect every node in a box
Cmd + click (Ctrl + click)Add a node to the selection
Drag the canvas, or Space + dragPan
Scroll, pinch or double-clickZoom
Arrow keysMove the selected nodes; hold Shift for bigger steps
  • Single-key shortcuts do nothing while you type in a field.
  • There is no undo yet, and no shortcut to run or stop.
  • The lock button at the bottom left stops nodes being selected, moved or connected. Panning, zooming and menus still work.

Troubleshooting

You seeWhat to do
connection refused, or actively refused it on WindowsNothing is listening where the node sends. Check its environment’s base URL in the Envs tab, and that your API is up.
422 Unprocessable Entity, or any status from 400The API turned the request down. Open its log row to compare what was sent with what came back. Body fields sent as strings are a common cause.
node has no targetPick an environment for the node, or give it an origin override.
has no stored secret valueChoose Rotate on the credential in the Credentials tab to enter its secret, or pick None on the node.
res is ambiguousThe node has more than one direct source. Name the one you mean, as in {{createOrg.body.id}}.
is not an upstream ancestorThe binding reads a node that does not run before this one. Connect them, or bind to a node upstream.
lost its binding toThe field was bound to a node that was not copied along with it. Bind it again.
graph contains a cycleSome node depends on itself through a circle of connections. Cut one of them.
iteration 2 failedA node inside the loop failed. The message counts iterations from 0 and the logs from #1, so look for the rows marked #3.
script exceeded the 1s time limitA transform script ran past a second. Look for a loop that never ends.
a run is already in progressLet the current run finish, or press Stop.

If Windows SmartScreen stops Cascade, the install notes show the way past. On Linux, an error about libwebkit2gtk-4.1 means WebKitGTK 4.1 needs installing.

Stuck on something else? Open an issue on GitHub with the message you see and the steps that led to it.