Bolero

screenshot of Bolero

Bolero

Bolero brings Blazor to F# developers with an easy to use Model-View-Update architecture, HTML combinators, hot reloaded templates, type-safe endpoints, advanced routing and remoting capabilities, and more.

Overview

Bolero is a set of tools and libraries that enable F# applications to run in WebAssembly using Blazor. It provides HTML functions with a syntax similar to WebSharper.UI or Elmish.React, as well as templating functionality to write HTML in a separate file and bind it to F# using a type provider. Bolero also offers Elmish integration, allowing users to run an Elmish program as a Blazor component and Blazor components as Elmish views. Other features include routing, remoting, and F#-specific optimizations to reduce the size of the served application.

Features

  • HTML functions with a familiar syntax
  • Templating for writing HTML in a separate file and binding it to F# using a type provider
  • Elmish integration for running Elmish programs as Blazor components and Blazor components as Elmish views
  • Routing to associate the current URL with a field in the Elmish model
  • Remoting to define asynchronous functions on the server and call them from the client
  • F#-specific optimizations for reducing the size of the served application