moxzi

moxzi documentation

moxzi is a Motoko compiler and a set of runtimes for the actors it builds. You write a Motoko actor once, compile it to a wasm module, and run that module wherever it fits:

WhereToolUse it for
Your machinemoxziCompiling Motoko to wasm. Works offline; no dfx or replica needed
A servermoxzidHosting actors behind HTTP, with durable state and upgrades
A browser tabmoxzi-webRunning actors, or the compiler itself, inside a web page
An actor platformmoxzi hostRunning an actor inside Dapr, Restate, Orleans, Akka, Temporal and others
The Internet Computerthe compiler canisterBuilding on-chain, so anyone can check what source produced a wasm
A gamemoxzi-gameWriting game logic as Motoko actors, drawn by a shared 3D player

The wasm is the same in every case. A module built on your laptop can be installed on the Internet Computer, hosted by moxzid or loaded in a browser without being rebuilt.

Start here#

  1. Install moxzi. One command on macOS and Linux.
  2. Your first actor. Build a counter, run it, call it, upgrade it. About ten minutes.
  3. Choose a runtime for what you're building.

Chapters#

Status#

moxzi is in alpha. The compiler targets Motoko 2.0.0: a program that compiles with moc compiles with moxzi and behaves the same way. The runtimes implement Internet Computer message semantics. Where either differs, it's listed in Differences from moc and the IC. Known limits are on each page and collected in Limits.

moxzi is source-available under the Business Source License 1.1. Non-commercial use and commercial development, testing and evaluation are free. Production commercial use and competing hosted services need a commercial license. Each release becomes Apache-2.0 four years after it ships.

On this pageStart hereChaptersStatus