WASM-sandboxed code execution. Python and JavaScript, no containers, no VMs.
npm install -g mimiboxOr run directly:
npx mimibox python 'print("hello")'# Inline code
mimibox python 'import math; print(math.pi)'
mimibox js 'console.log("hello")'
# From file
mimibox python -f script.py
mimibox js -f app.js
# From stdin
echo 'print("hello")' | mimibox python
cat script.js | mimibox js
# Options
mimibox python --timeout 10000 'slow_function()'
mimibox js --memory 100 'big_computation()'0— success1— execution error2— bad arguments
stdout— execution outputstderr— errors
Both run entirely inside WASM. No filesystem access, no network access from inside the sandbox.
- Python:
jsglobals: Object.create(null)blocks sandbox escape to Node.js globals - JavaScript: QuickJS runs in a true WASM sandbox with no host access
- Timeout: 30s default, configurable via
--timeout - Memory: QuickJS 50MB default, configurable via
--memory - Output: truncated at 1MB
A browser-based playground is also included at public/index.html — open it directly or serve it:
npx serve publicsrc/
cli.ts CLI entry point
python.ts Pyodide wrapper
javascript.ts QuickJS wrapper
public/
index.html Browser playground