mxwasm

command
v1.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Rendered for js/wasm

Overview

mxwasm is the WebAssembly entry point for MX Script. It runs in the browser, exposes a single JS function `mxRun(source) -> result`, and wraps the same lex/parse/eval pipeline used by the native CLI.

Two interesting differences from native:

  1. SQL / Redis / Jobs / SMTP are stubbed (see interpreter/sql_wasm.go etc.) — the playground intentionally does not ship a database.
  2. stdout/stderr are captured into a string buffer and returned to JS instead of being written to a console — the page renders the result however it wants.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL