Host running DuckDB-WASM

The dashboard on the right lives in <iframe sandbox="allow-scripts"> with connect-src 'none': it cannot fetch anything. Its components use table="orders" and send QuerySpec objects (never SQL) through postMessage. This page compiles them to SQL and runs them in its own DuckDB-WASM worker.

SQL executed by the Host

Every expression sent by the iframe is checked against the columns of the table and a list of safe SQL functions before compilation.