Try it

Live demos — F# in your browser

Every demo is F# compiled to WebAssembly GC by fsharp-wasm and served from this site. Nothing to install: open one.

Applications

Interfaces written in F#

The model, the update and the view are F#; the page is real HTML.

Counter

Classic increment / decrement counter: model, update and view in F# (Elmish MVU).

Todo list

Add, complete and remove todos: the full model-update-view cycle in F#.

Full dashboard

The counter, the todo list, a canvas, a message bus and storage in one tabbed layout.

Web component

A custom element, <fs-counter>, defined entirely in F#: embed it anywhere.

The platform

Browser APIs from F#

Typed bindings, no JavaScript application code.

IndexedDB CRUD

Create, read, update and delete records in IndexedDB, wired from F#.

Realtime pub/sub

A message bus over a BroadcastChannel: open the page in two tabs and watch messages cross.

Worker actor

An actor running inside a Web Worker; the main thread sends messages and gets replies, all in F#.

WebGPU basics

A GPU compute pipeline bootstrapped from F#. Needs a browser with WebGPU.

Graphics

Drawn by the module

These draw pixels onto a canvas, so they are visual demos, not accessible interfaces. A GUI layer that renders real, accessible HTML is on the roadmap.

Mandelbrot

Escape-time calculation in F#; every calculation is a native WebAssembly GC call.

Scene gallery

Thirteen scenes of the FSharp.Graphics library: shapes, strokes, gradients, shadows, transforms, layout, clipping, layers, text, animation, interaction, a dashboard and a stress test.

Widget editor

A visual editor for widget layouts, itself written in F# and drawn by the module: palette, design surface, inspector, generated code.

Measure

Run the benchmark

The same thirteen kernels in F# and in JavaScript, in your browser.

Benchmark

Thirteen kernels in F# and in plain JavaScript, measured in your browser, with the method and the spread.

Before you start

What your browser needs

WebAssembly GC: Chrome and Edge 119 or later, Firefox 120 or later, Safari 18.2 or later. If a demo stays empty, that is the first thing to check — and tell us which browser it was.

Measured, not claimed

The benchmark runs the same thirteen kernels in F# and in JavaScript in your browser: results and method.

The backend

The same F# runs on a server too: F# on the edge, with an honest status.

Source

Every demo is in fsharp-wasm-runtime.