Pipedream Workflows shuts down on March 31, 2027. If your workflows are mostly custom code, a Worker is often the shortest
path: the code you wrote keeps working, and the Pipedream runtime pieces map to a few lines of plain JavaScript. This page shows the mapping.
The mapping at a glance
Pipedream Cloudflare Workers
HTTP / webhook trigger fetch(request, env, ctx) handler, one route per workflow
steps.trigger.event (body, headers, query) await request.json() , request.headers , new URL(request.url).searchParams
$.respond({ status, headers, body }) return new Response(body, { status, headers })
Schedule (timer) trigger Cron Trigger in wrangler.toml + scheduled(event, env, ctx) handler
Code step + steps.name.$return_value An async function; its return value is a normal variable
$.flow.exit("reason") return early (from fetch , return a Response )
Data store prop ( this.db.get / set ) Workers KV ( env.KV.get / put ), or D1 for queries
Secret props, environment variables wrangler secret put NAME , read…