Skip to content

NodeTool Cloud is in alpha. Try it →

All templates
Template·Text & Data

Keep Only the Long Lines

Fan a list into a stream, drop the items that fail a predicate, then gather what survived back into a list. Two nodes carry the lesson: Collection is the fan-out — a list fed straight into a stream operator arrives as one item — and Collect is the reverse, without which an output on a stream shows only the last value that passed.

Output

2

[
  "a much longer line worth keeping",
  "another long enough line"
]

The workflow

Data flow

How to run it

  1. 01

    Download NodeTool Studio

    Install the free desktop app for macOS, Windows, or Linux. It runs on your own machine, no account required to start.

  2. 02

    Open the Keep Only the Long Lines template

    Browse the built-in template library inside Studio and open this workflow onto the canvas. Every node is already wired up.

  3. 03

    Add your keys

    Connect any model providers this workflow calls with your own API keys, or point it at local models.

  4. 04

    Run and remix

    Hit Run to execute the graph and watch results stream in. Swap models, edit prompts, or rewire nodes to make it yours.

Run Keep Only the Long Lines on your machine

Free, open source, and yours to run. Download Studio, open the template, and run it with your own keys.