Skip to main content

Goal

Create a WASM plugin, run the pipeline locally, then benchmark it.
1

Install Tangent

curl
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Santiago-Labs/tangent/releases/download/latest/tangent-cli-installer.sh | sh
2

Scaffold a plugin

# Create a new plugin in Go, Python, or Rust
tangent plugin scaffold --lang go --name hello-logs
# or:
tangent plugin scaffold --lang py --name hello-logs
# or:
tangent plugin scaffold --lang rust --name hello-logs
Scaffold creates a minimal working plugin with tests.
3

Compile

tangent plugin compile --config tangent.yaml --wit .tangent/wit
4

Run the pipeline

tangent run --config tangent.yaml
Your pipeline is now running. You can send data to the socket with
tangent bench --config tangent.yaml --seconds 30 --payload tests/input.json
5

Benchmark

tangent bench --config tangent.yaml --seconds 30 --payload tests/input.json

Next steps

Author plugins: Authoring a WASM Plugin Real sinks: S3, File Real sources: SQS, MSK, Socket, File Learn the CLI: tangent.yaml