Skip to main content

Step 1: Hello World

Let's start with the simplest possible pipeline—one that just prints "Hello, World!" every second.


Create the Pipeline

Create a file called hello.yaml:

input:
generate:
interval: 1s
mapping: |
root.message = "Hello, World!"

output:
stdout: {}

Run it:

expanso-edge run --config hello.yaml

You'll see:

{"message":"Hello, World!"}
{"message":"Hello, World!"}
{"message":"Hello, World!"}

Press Ctrl+C to stop.


What Just Happened?

ComponentWhat It Does
input.generateCreates data from nothing (no external source needed)
interval: 1sGenerates a new message every 1 second
mappingUses Bloblang to define the message structure
output.stdoutPrints each message to your terminal

What's Next?

👉 Step 2: Make a Change