2048
The classic sliding-tile game, reimplemented in F#. Three variants — Original, Fibonacci and PlusMinus — with a reactive board and all styling in the template.
Charts, maps and grids drive Plotly, Leaflet and SlickGrid through WebSharper's typed JavaScript bindings — no hand-written interop. Forms shows the same idea with WebSharper's own typed form layer.
Samples
Every sample is a complete, open-source application built with WebSharper. The client-side ones compile to JavaScript and run entirely in the browser; the full-stack ones share F# types between a .NET server and the client.
No server code — every one is live on GitHub Pages.
The classic sliding-tile game, reimplemented in F#. Three variants — Original, Fibonacci and PlusMinus — with a reactive board and all styling in the template.
TodoMVC built with WebSharper.Mvu: a typed model, messages and update functions, composed into pages, with All/Active/Completed routing.
mbostock's rotating globe, drawn with the typed D3 binding — it spins around the world and pauses on every country in turn.
A tour of math.js: arbitrary-precision numbers, symbolic differentiation, vectors, matrices and units, with TeX results typeset by MathJax.
Compose a document in the browser, watch jsPDF render it live, then download it — with automatic line wrapping and page breaks.
A CodeMirror 6 playground configured entirely from F#: eight languages, line numbers and a one-click dark theme.
Typed, validated forms with WebSharper.Forms: per-field errors as you type and a dynamic list of pets you can add, reorder or delete.
Text-to-speech and live speech-to-text through the Web Speech API — no third-party JavaScript library involved.
A reactive shopping cart with a ListModel of items, per-item quantity controls and a live total — a compact tour of WebSharper.UI collections.
Shared F# types across a real .NET server and the browser. No hosted demos here — clone a repo and run it locally.
A typed StatefulAgent on the server pushes a new value every second over /ws; the client turns the JSON stream into a live Chart.js line chart and a message log.
A REST CRUD pair that shares its model and endpoints by project reference: sitelets on the server, a WebSharper.Mvu client with list, create and edit pages plus client-side routing. The two sides stay in sync by construction.