#2525th of 25 in Sandboxes
capsulerun/runtime
WebAssembly sandbox runtime for running untrusted Python and TypeScript tasks
- Stars
- 303
- License
- Apache-2.0
- Last commit
- Oct 2026
- Last release
- Apr 2026
- Language
- Rust
277 on 28 Apr 2026303 on 24 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Capsule compiles Python or TypeScript/JavaScript functions into WebAssembly modules and runs each decorated task in its own wasmtime sandbox. Per-task limits cover CPU (via Wasm fuel metering), RAM, timeout and retries, plus allowlists for files, hosts and environment variables. It can be driven from the CLI (`capsule run`) or embedded through a `run()` function in the Python and TypeScript SDKs.
Who it is for: Developers running untrusted or LLM-generated code from Python or TS apps
Strengths
- Per-task limits on fuel-metered CPU, RAM, timeout and retries, set in a decorator
- Deny-by-default network, with per-task host allowlist and read-only or read-write folder mounts
- Precompiled .wasm artifacts via `capsule build --export` cut startup to milliseconds
- Each result returns a JSON envelope with duration, fuel used, peak RAM and host requests
Weaknesses
- Python C-extension packages such as numpy and pandas fail without a wasm32-wasi wheel
- First run of .py or .ts source takes a few seconds to compile
- Runner functions in TypeScript require the separate @capsule-run/cli package
- Entry point must be a task named "main"; Python only auto-creates one
What it needs
- no GPU
- Needs wasmtime, componentize-py, jco
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Sandboxes
See all 25| Rank | Project | Score |
|---|---|---|
| #20 | Open TerminalREST API shell and file server for AI agents to run commands and code | 64 out of 100 |
| #21 | sandbox-sdkTypeScript SDK for running untrusted code in per-user Cloudflare Container sandboxes | 60 out of 100 |
| #22 | spaceFirecracker microVM sandboxes for agent code, managed over an HTTP API | 59 out of 100 |
| #23 | code-interpreterRuns AI-generated code in isolated cloud sandboxes via JS and Python SDKs | 49 out of 100 |
| #24 | Browser Use Web UIGradio UI for running browser-use agents with your own Chrome | 44 out of 100 |