🚀 Fast, secure, lightweight containers based on WebAssembly
🚀 Fast, secure, lightweight containers based on WebAssembly
Wasmer is a blazing fast and secure WebAssembly runtime that enables incredibly lightweight containers to run anywhere: from Desktop to the Cloud, Edge and your browser.
curl https://get.wasmer.io -sSfL | shWasmer can be installed from various package managers. Choose the one that fits best for your environment:
iwr https://win.wasmer.io -useb | iexHomebrew (macOS, Linux)
brew install wasmerScoop (Windows)
scoop install wasmerChocolatey (Windows)
choco install wasmercargo binstall wasmer-cliNote: All the available
features are described in the wasmer-cli
crate docs
cargo install wasmer-cliLooking for more installation options? See the
wasmer-installrepository to learn more!
Note: You can also try Wasmer online in wasmer.sh
[!Tip]
As part of our commitment to open source, we want to reward all GitHub users. In addition to the free tier, you can get up to $200 in Wasmer Edge credits for your open-source contributions - Claim here.
You can start by running Cowsay:
$ wasmer run cowsay "hello world"
_____________
< hello world >
-------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||There are many more available packages, such as
wasmer/pythonorquickjs. Create your own package, or explore packages from the community: https://wasmer.io/explore
You can use the Wasmer runtime embedded in different languages with the Wasmer SDK:
| Language | Package | Documentation | |
|---|---|---|---|
| Rust | wasmer Rust crate |
Learn | |
| C | wasm.h header |
Learn | |
| C++ | wasm.hh header |
Learn | |
| C# | WasmerSharp NuGet package |
Learn | |
| D | wasmer Dub package |
Learn | |
| Zig | wasmer Zig package |
Learn | |
| Python | wasmer PyPI package |
Learn | |
| Javascript | @wasmerio NPM packages |
Learn | |
| Go | wasmer Go package |
Learn | |
| PHP | wasm PECL package |
Learn | |
| Ruby | wasmer Ruby Gem |
Learn | |
| Java | wasmer/wasmer-jni Bintray package |
Learn | |
| R | no published package | Learn | |
| R | no published package | Learn | |
| Postgres | no published package | Learn | |
| Swift | no published package | ||
| Dart | wasm pub package |
||
| Crystal | no published package | Learn | |
| Lisp | no published package | ||
| Julia | no published package | ||
| V | no published package | ||
| OCaml | wasmer OCaml package |
We have different guides to help you develop Wasmer:
wasmer run fails on WASIX packages using the wide-arithmetic proposal: "Failed to create V8 module" with no way to select a non-V8 engine
[BUG]: singlepass: narrow atomic RMW with an immediate operand wider than the access returns a wrong value (i32) or fails to compile (i64)
Cranelift: Exception::payload() zeroes all values after the first
Cranelift: host-thrown exception not caught by try_table, "uncaught exception"
Could not run `wasmer/edgejs` use the latest wasmer cli
Cannot rename files in mounted host directories
Fuzzing with ASan
V8 cannot be built for iOS nor for Android
[Windows][V8] Prebuilt V8 causes an ODR violation in MSVC STL std::unordered_map instantiations
Performance regression when i32.load and i32.store target the same address