3 ms·
Show HN: Sideffect – Effect like syntax for Cloudflare Workflows
heya HN,
Sideffect is a library I built that lets you define Cloudflare Workflows as composable typed steps in a syntax similar Effect-TS.
It comes with a Vite plugin that scans your code using the Typescript AST and automatically generates the Workflow bindings, env types, and wrangler config.
- Workflow steps are reusable typed activities (with payload + result runtime validating schemas)
- You compose them into layers with readable code (no ugly workflow entry class)
- No need to manually edit wrangler.toml/jsonc for workflows
- You use the generated bindings in your Worker as normal
Git repo: https://github.com/eersnington/sideffect https://github.com/eersnington/sideffect
still early but covers much of the surface are of Cloudflare Workflows API, feedback welcome.