Sandboxed ArrowJS widgets for Comark

A Comark plugin for ArrowJS. Turn a ```arrow fence or ::arrow directive into a live, interactive widget — with no upfront component registration. Agent-authored source runs inside @arrow-js/sandbox (QuickJS/WASM), not in the host page realm.
comark-arrow — ArrowJS sandboxes for Comark

Live widgets from markdown

    Fenced blocks and directives
    Write ` ```arrow ` fences with optional ` ```arrow-css `, or bind with `::arrow{:source="..."}`. Both emit the same AST node.
    Streaming-safe
    Incomplete frames stay non-executable while the host streams. Pending sandboxes show a placeholder and never boot the VM.
    Host bridge
    Expose allowlisted host functions to sandboxed code. Bridge functions never go on the AST — supply them from the app.
    Sandboxed execution
    Agent-authored source runs only inside QuickJS/WASM. Isolation is not correctness — review generated widgets like generated numbers.
    Static fallbacks
    HTML, ANSI, PDF, and email targets must not boot the VM. Use `comark-arrow/html` and fence attrs for source, placeholder, or caption.
    Parse or render
    Use the core plugin for AST-only parsing, or `comark-arrow/vue` with `ArrowSandbox` for interactive widgets in the browser.
Copyright © 2026