Fable
fable.io
- Web
What Fable is
Fable is a free, open-source compiler that lets developers write applications in F# and convert them to other languages. JavaScript and TypeScript are stable targets, while Dart and Python are beta, Rust is alpha, and PHP and Beam (Erlang) are experimental. Its JavaScript output is described as readable, compatible with ES2015 standards, and usable with tools such as Webpack. F# code can import JavaScript modules and use NPM packages. Setup installs Fable as a .NET tool and adds Fable.Core to an F# project. The command-line interface provides release, watch, and clean commands, with output-directory and source-map options. The project names Visual Studio Code and JetBrains Rider as editor choices and links to an online REPL. Listed libraries include Fable.Core, Fable.Browser.Dom, Fable.Elmish.React, and Thoth.Json. Fable integrates with Vite, Parcel, and Webpack, uses NuGet for F# libraries, and supports testing through Fable.Mocha. Not every NuGet package works; Python targets require Python 3.12 or later, and Beam requires Erlang/OTP 25 or later plus rebar3.
Who it suits
It suits .NET and JavaScript developers who want to build applications, including browser UIs, with F#. It is useful when the desired target language and its maturity level fit the project.
Good to know, and what to watch
- Free open-source compiler
- JavaScript and TypeScript stable targets
- JavaScript module and NPM interoperability
- Release, watch, and clean CLI commands
- Online Fable REPL
- Many targets remain beta or experimental
- Not all NuGet packages work
- Python requires version 3.12 or later
- Beam requires Erlang/OTP 25 and rebar3
The verdict
Fable provides an F# source-to-source workflow with stable JavaScript and TypeScript output plus additional experimental targets. Review target maturity and library compatibility before selecting it for a project.
What the maker publishes
- Audience
- The documentation describes Fable as a way to build applications with F#, including browser UIs, and provides guidance for .NET and JavaScript developers. source
- Beam requirement
- The Beam setup guide requires Erlang/OTP 25 or higher and rebar3. source
- Build integrations
- For JavaScript projects, Fable integrates with bundlers including Vite, Parcel, and Webpack. source
- Build workflow
- The CLI supports release, watch, and clean commands, plus options such as output directory and source maps. source
- Compatibility limit
- Not all NuGet packages work with Fable; the documentation advises checking whether each library is Fable-compatible. source
- Dependencies
- Fable uses NuGet to load F# libraries, while JavaScript dependencies are listed in package.json. source
- Editor support
- The homepage names Visual Studio Code and JetBrains Rider as editor choices. source
- Editor support
- The official site names Visual Studio Code and JetBrains Rider among the editors usable with Fable. source
- JavaScript interop
- Fable supports importing JavaScript modules and using NPM packages from F# code. source
- JavaScript output
- The homepage says Fable produces readable JavaScript compatible with ES2015 standards and tooling such as Webpack. source
- JavaScript output
- Fable transpiles F# to ES2015 JavaScript. source
- Language features
- The site highlights F# features including immutability by default, pattern matching, units of measure, and type providers. source
- Libraries
- The documentation lists Fable.Core, Fable.Browser.Dom, Fable.Elmish.React, and Thoth.Json as libraries available for Fable projects, and cautions that not all NuGet libraries work with Fable. source
- License
- The Fable repository identifies its license as MIT. source
- Online access
- The homepage links to an online Fable REPL. source
- Other targets
- Dart and Python are listed as beta, Rust as alpha, and PHP and Beam (Erlang) as experimental. source
- Output targets
- Fable lists JavaScript and TypeScript as stable targets, Dart and Python as beta, Rust as alpha, and PHP and Beam (Erlang) as experimental. source
- Project setup
- The getting started guide installs Fable as a .NET tool and adds Fable.Core to an F# project. source
- Python requirement
- Fable Python targets Python 3.12 or higher; Python 3.10 and 3.11 are deprecated. source
- Stable targets
- JavaScript and TypeScript are listed as stable targets. source
- Support
- The project repository accepts bug reports and feature requests, and notes that maintainers do not check its Gitter chat regularly. source
- Testing
- The documentation says unit testing is available through Fable.Mocha and that another test runner can be used. source
- What it does
- Fable is a compiler that lets developers use F# to build applications for multiple target languages. source
- What it does
- Fable is a compiler that lets developers use F# to build applications. source
Checked against the maker's pages on 9 Oct 2026.