Capsule

Capsule

Isolated, resource-limited WebAssembly execution for Python & JS/TS code.

Visit Capsule

About Capsule

Capsule is a sandboxed runtime for executing untrusted code in isolated WebAssembly environments, built for Python and TypeScript/JavaScript. It enables developers to safely run user-submitted or third-party code with fine-grained control over CPU, memory, execution time, and access permissions, supporting both CLI and SDK workflows. Ideal for applications needing secure code execution, resource limiting, and automatic failure recovery, such as code evaluation platforms, multi-tenant SaaS, and secure scripting.

Resources

Product Website

Visit Capsule's official website for product details and getting started.

Visit website →

Documentation

Comprehensive guide and API reference for Capsule's features and usage.

View docs →

GitHub Discussions

Community forum for asking questions, sharing use cases, and discussing features.

Join discussions →

Example Projects

Explore sample projects utilizing Capsule for various applications.

See examples →