For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /docs/transformers/index.md.

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 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 to write one, or implement the worker protocol in another language.

Configure a Pipeline to connect the steps and check which Route transports support them.