#2525th of 25 in Sandboxes

capsulerun/runtime

WebAssembly sandbox runtime for running untrusted Python and TypeScript tasks

Releases and problems feed (RSS)

Stars
303
License
Apache-2.0
Last commit
Oct 2026
Last release
Apr 2026
Language
Rust
Stars, last 30 weeks+26
28 Apr 2026: 277 stars5 May 2026: 279 stars12 May 2026: 280 stars19 May 2026: 281 stars26 May 2026: 283 stars2 Jun 2026: 285 stars9 Jun 2026: 285 stars16 Jun 2026: 287 stars23 Jun 2026: 287 stars30 Jun 2026: 288 stars7 Jul 2026: 290 stars14 Jul 2026: 292 stars21 Jul 2026: 292 stars28 Jul 2026: 293 stars4 Aug 2026: 294 stars11 Aug 2026: 294 stars18 Aug 2026: 294 stars25 Aug 2026: 294 stars1 Sept 2026: 294 stars8 Sept 2026: 294 stars15 Sept 2026: 295 stars22 Sept 2026: 296 stars29 Sept 2026: 297 stars6 Oct 2026: 297 stars13 Oct 2026: 299 stars20 Oct 2026: 300 stars27 Oct 2026: 300 stars3 Nov 2026: 301 stars10 Nov 2026: 303 stars17 Nov 2026: 303 stars24 Nov 2026: 303 stars

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
Also in Sandboxes
RankProjectScore
#20Open TerminalREST API shell and file server for AI agents to run commands and code3.7k starsMIT64 out of 100
#21sandbox-sdkTypeScript SDK for running untrusted code in per-user Cloudflare Container sandboxes1.2k starscustom license60 out of 100
#22spaceFirecracker microVM sandboxes for agent code, managed over an HTTP API2.2k starsApache-2.059 out of 100
#23code-interpreterRuns AI-generated code in isolated cloud sandboxes via JS and Python SDKs2.4k starsApache-2.049 out of 100
#24Browser Use Web UIGradio UI for running browser-use agents with your own Chrome16.7k starsMIT44 out of 100