MicroQuickJS

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

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.

Read this as

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.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

MicroQuickJS QuickJS Claude Code ffmpeg QEMU Pyodide

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading