Start Here
At the end of this path you have a Worker written in F#, running on Cloudflare's free plan. Set up the account and tools on this page, then follow the package-based path below.
- You need A Cloudflare account, .NET SDK 10.0.401, Node.js with npm, curl
- You get
hello-worker, a Worker on Cloudflare - Free plan 100,000 requests a day
The Path
You write the Worker and its deployment in F#. Fable compiles the Worker to JavaScript, and an F# program uploads it to Cloudflare through the REST API. Your application restores the versioned libraries from NuGet. Source builds are a separate contributor workflow.
CredentialsAccount ID and API token in .env
PackagesInstall the 0.1.0 libraries
First WorkerWorker.fs, compiled and run locally
First Deployhello-worker, uploaded from F#
Account and Toolchain
- A Cloudflare account. You sign up with an email address and a password. The free plan is enough for this path. It includes 100,000 Worker requests a day and 10 ms of CPU time per invocation.
- The .NET SDK 10.0.401 or a later 10.0.4xx patch, as the repository's
global.jsonrequires. Download .NET 10.0. - Node.js with npm. The repository's build scripts run on Node, and on First Worker you install esbuild and workerd with npm. Node.js installers.
- curl, to send requests to your Worker from a terminal. curl packages.
Check your versions from a terminal.
dotnet --version
node --version
npm --version
On the machine used to write these pages, the output is:
10.0.401
v25.1.0
11.6.2
Building the libraries themselves requires additional tools and sibling repositories. See Local Build when contributing to the bindings.