> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Transformers

A Transformer takes a value and produces another. For example, it might extract an ID from an object, decompress bytes, or turn a timestamp into a date string.

HTTP, gRPC, and WebSocket Routes can all use Transformers. A [Pipeline](/docs/transformer-pipelines/index.md) chains them: each step receives the previous step’s result. The input and output directions have separate lists, so you can choose a different conversion for each direction.

## Choose a command or a worker

A command runs once per call. It reads from stdin and writes its result to stdout. Use a command if an existing executable such as `gzip` already does what you need.

A worker stays running between calls. It can keep state per connection or use the protobuf descriptors Decoy has loaded. Use the [TypeScript SDK](/docs/transformer-sdk/index.md) to write one, or implement the [worker protocol](/docs/transformer-worker-protocol/index.md) in another language.

[Configure a Pipeline](/docs/transformer-pipelines/index.md) to connect the steps and check which Route transports support them.
