# reason-worker-hello-world **Repository Path**: mirrors_cloudflare/reason-worker-hello-world ## Basic Information - **Project Name**: reason-worker-hello-world - **Description**: Reason hello world for Cloudflare Workers - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Reason hello world for Cloudflare Workers Your [Reason](https://reasonml.github.io/) code in [Demo.re](https://github.com/cloudflare/reason-worker-hello-world/blob/master/src/Demo.re), running on Cloudflare Workers In addition to [Wrangler](https://github.com/cloudflare/wrangler) you will need to [install BuckleScript](https://reasonml.github.io/docs/en/installation) using npm or Yarn. #### Wrangler To generate using [wrangler](https://github.com/cloudflare/wrangler) ``` wrangler generate projectname https://github.com/cloudflare/reason-worker-hello-world ``` Further documentation for Wrangler can be found [here](https://developers.cloudflare.com/workers/tooling/wrangler). #### BuckleScript After installing BuckleScript per the linked instructions above, ``` cd projectname # assuming you installed BuckleScript globally, need to run this once npm link bs-platform npm run build ``` That will compile your code into src/Demo.bs.js, after which you can run `wrangler publish` to push it to Cloudflare. If you just want to check for errors during development, `npm run start` will watch for filesystem changes and recompile. For more information on how BuckleScript translates Reason and Ocaml to JavaScript, see the [docs](https://reasonml.github.io/docs/en/interop).