Fast and secure runtime for WebAssembly, from the Bytecode Alliance
open sourceApache-2.0 WITH LLVM-exceptionfree
Wasmtime is a standalone WebAssembly runtime from the Bytecode Alliance, used from the command line to run .wasm programs or embedded in applications to run untrusted code in a sandbox. It compiles WebAssembly with the optimizing Cranelift code generator, at runtime or ahead of time, and is tuned for fast instantiation, cheap calls between host and module and many concurrent instances, with configurable CPU and memory limits. It supports the WASI APIs for talking to the host, passes the official WebAssembly test suite, implements the standard wasm C API and tracks new WebAssembly proposals. Its development centres on security: features go through an RFC process, are fuzzed around the clock by Google's OSS-Fuzz, and parts are being formally verified. It's written in Rust and embeds from Rust, C, C++, Python, .NET, Go and Ruby.
Ways to install
Package managers
Problems it solves
- run a WebAssembly module outside the browser from the command line
- embed a sandbox in my application so users can run their own plugins safely
- run WASI programs compiled from Rust or C on a server
Features
- Cranelift JIT and ahead-of-time compilation
- WASI support
- fast instantiation and many concurrent instances
- configurable CPU and memory limits
- passes the official WebAssembly test suite
- standard wasm C API
- embeddings for Rust, C, C++, Python, .NET, Go and Ruby
- continuous fuzzing with OSS-Fuzz
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Wasmtime does.
- Wasmer Fast and lightweight sandboxes for your apps and AI agents
