01
Python developers who need to run untrusted code safely now have a dependency-free WASM-based sandbox installable directly from PyPI.
Programmer Simon Willison released an alpha tool called micropython-wasm that runs Python code inside a sealed box, so the code cannot snoop on files, use the network, or crash the host computer. It works by running a miniature version of Python, called MicroPython, inside WebAssembly, a security technology web browsers use to run downloaded code safely. The tool is live on PyPI and is already used by his Datasette Agent.
Simon Willison released micropython-wasm, an alpha Python package on PyPI that executes untrusted code in a WebAssembly sandbox using MicroPython. Its 362KB WASM blob installs cleanly from PyPI with no extra steps, with memory limits via wasmtime and a 20 million 'fuel' cap on CPU operations. Practical use today is mostly within Willison's own Datasette Agent project; the package is explicitly an alpha, and the CPU limit value is unproven.
micropython-wasm compiles MicroPython to a 362KB WebAssembly binary run via the wasmtime Python library, built from Yamamoto Takahashi's experimental WASI support PR. Persistent sessions block the interpreter on a host function feeding code to eval(), queue-based, with host functions exposed via 78 lines of compiled C. Memory limits come from wasmtime; CPU limits use a fuel setting of 20 million, which the author flags as untested. It powers the datasette-agent-micropython plugin.
02
Gives Python developers a way to sandbox untrusted code in-process via WebAssembly instead of container or subprocess isolation, though at alpha maturity it is experimentation rather than production.
Simon Willison released micropython-wasm 0.1a0, an alpha Python package on 2nd June 2026. It runs MicroPython, a small version of the Python language, inside a WebAssembly sandbox, which is a sealed container in your browser or server that keeps untrusted code from touching the rest of your system. The sandbox is executed using a tool called wasmtime. No benchmarks, license details or use cases are given in the article.
Willison published micropython-wasm 0.1a0 on 2nd June 2026, an early alpha for executing untrusted Python code in a WebAssembly sandbox via wasmtime. For teams running AI-generated code, in-process sandboxing could reduce the cost and complexity of container isolation, but the alpha status means no production reliance yet. The article includes no benchmarks, pricing or roadmap.
micropython-wasm 0.1a0 bundles a lightly customized WASM build of MicroPython with a wrapper for executing code through wasmtime, offering an alternative to subprocess or container-based sandboxing of untrusted Python. As a 0.1 alpha it is explicitly experimental; the post dates to 2nd June 2026 and links prior sandboxing work like running Datasette in the browser with Pyodide. No performance figures, API examples or security guarantees are provided.
03
Anyone sandboxing untrusted or LLM-generated JavaScript gains a tiny engine with built-in memory and time limits, usable today via Python, WebAssembly or a playground.
Fabrice Bellard, the programmer behind ffmpeg and QEMU, has released MicroQuickJS, a very small engine for running JavaScript on embedded devices. It needs only 10 kB of RAM and about 100 kB of ROM, a fraction of what typical JavaScript engines require. Simon Willison tested it as a sandbox for safely running untrusted code, with limits on memory, CPU time, and network or file access. Developers building such sandboxes, and hobbyists working on tiny hardware, are the main audience.
MicroQuickJS gives teams executing untrusted or AI-generated JavaScript a credible, tiny sandbox option: it enforces memory and time limits internally and exposes no file or network primitives. Willison's Claude Code experiments built working Python and WebAssembly integrations, though the WebAssembly path needed a workaround due to setjmp/longjmp error handling. Early adopters gain a robust new tool; makers of heavier sandboxing solutions face a new, free competitor from a proven author.
MicroQuickJS targets embedded systems: under 10 kB RAM and roughly 100 kB ROM as ARM Thumb-2 including the C library, with speed comparable to QuickJS and support for a rich JavaScript subset. Interrupt handlers fire even during pathological regex backtracking, so configured time limits hold under resource-exhaustion attacks. Tested integrations include FFI Python bindings, a native CPython extension, Node.js, Deno and Pyodide; wasmtime only worked with a hack because setjmp/longjmp maps poorly to WebAssembly.