Tip: QuickJS Python Sandbox — Execute Untrusted JavaScript Safely with asyncio from Python
Simon Willison·medium signal
Simon Willison's April 12 investigation into the quickjs Python package reveals a practical pattern for building JavaScript sandboxes with full asyncio support and the ability to expose Python functions to the sandboxed JS. This solves a real problem for agent builders: safely executing LLM-generated JavaScript (e.g., data transformations, browser automation scripts) without risking the host system — a lightweight alternative to Docker-based sandboxing.