Playground

Try mx in the browser

Edit code, watch the preview and its console, and look up the API. There's nothing to install, since the preview loads mx from the CDN in a sandboxed frame.

main.jsCmd/Ctrl+Enter runs. Tab indents, and Escape then Tab leaves the editor.ShareResetRun

Preview

ConsoleClear
console.log() output from the preview shows here.

API

Full API reference
Live preview
The preview reruns as you type.
No build step
Plain JavaScript, straight from the CDN.
Shareable
Share copies a link to this code.

Open in new tab

Fork this code into a second playground to compare two versions side by side.

Open copy