Morphir, in MoonBit

Compile, inspect and run Morphir models in the browser, on the desktop and on the command line. One MoonBit code base targets JavaScript, WebAssembly and native code.

Try Morphir Read the docs

main.scm compiles to Morphir IR
; A small, portable Morphir model
(define (price quantity) (* quantity 12))
(define (total quantity) (+ (price quantity) 5))
(total 3)
  1. Scheme, Elm or MoonBit source
  2. Morphir IR
  3. Elm and MoonBit code, or a result

Morphir IR, every version

Explicit models and JSON codecs for IR v1 to v4, with migrations that refuse what they cannot represent.

Workbench in the browser

Write a model, compile it to Morphir IR, explore it and evaluate it, all on the client.

Generate Elm and MoonBit

Backends turn Morphir IR into readable Elm and MoonBit libraries.

Latest posts

  • Introducing the project site

    The Morphir MoonBit project now has a site with docs, design records, a blog and a live workbench.