18 releases (10 breaking)

0.17.1 Jun 24, 2020
0.16.2 Mar 12, 2020
0.12.0 Dec 19, 2019
0.11.0 Nov 24, 2019

#551 in WebAssembly

Download history 212/week @ 2021-08-08 202/week @ 2021-08-15 137/week @ 2021-08-22 111/week @ 2021-08-29 54/week @ 2021-09-05 95/week @ 2021-09-12 161/week @ 2021-09-19 113/week @ 2021-09-26 75/week @ 2021-10-03 61/week @ 2021-10-10 51/week @ 2021-10-17 52/week @ 2021-10-24 37/week @ 2021-10-31 54/week @ 2021-11-07 29/week @ 2021-11-14 47/week @ 2021-11-21

803 downloads per month
Used in 6 crates (via cosmwasm-simulate)

MIT license

530KB
12K SLoC


Wasmer is a fast and secure WebAssembly runtime that enables super lightweight containers to run anywhere: from Desktop to the Cloud, Edge and IoT devices.

This document is also available in: πŸ‡¨πŸ‡³ δΈ­ ζ–‡ -Chinese β€’ πŸ‡©πŸ‡ͺ Deutsch-German β€’ πŸ‡ͺπŸ‡Έ EspaΓ±ol-Spanish β€’ πŸ‡«πŸ‡· FranΓ§ais-French β€’ πŸ‡―πŸ‡΅ ζ—₯本 θͺž -Japanese β€’ πŸ‡°πŸ‡· ν•œκ΅­μΈ -Korean.

Features

  • Secure by default. No file, network, or environment access, unless explicitly enabled.
  • Supports WASI and Emscripten out of the box.
  • Fast. Run WebAssembly at near-native speeds.
  • Embeddable in multiple programming languages
  • Compliant with latest WebAssembly Proposals (SIMD, Reference Types, Threads, ...)

Install

Wasmer CLI ships as a single executable with no dependencies.

curl https://get.wasmer.io -sSfL | sh
Other installation options (Powershell, Brew, Cargo, ...)

Wasmer can be installed from various package managers. Choose the one that fits best for your environment:

  • Powershell (Windows)

    iwr https://win.wasmer.io -useb | iex
    
  • Homebrew (macOS, Linux)

    brew install wasmer
    
  • Scoop (Windows)

    scoop install wasmer
    
  • Chocolatey (Windows)

    choco install wasmer
    
  • Cargo

    Note: All the available features are described in the wasmer-cli crate docs

    cargo install wasmer-cli
    

Looking for more installation options? See the wasmer-install repository to learn more!

Quickstart

You can start by running QuickJS, a small and embeddable Javascript engine compiled as a WebAssembly module (qjs.wasm):

$ wasmer qjs.wasm
QuickJS - Type "\h" for help
qjs > const i = 1 + 2;
qjs > console.log("hello " + i);
hello 3

Here is what you can do next:

πŸ“¦ Language Integrations

The Wasmer runtime can be used as a library embedded in different languages, so you can use WebAssembly anywhere.

Language Package Documentation
Rust logo Rust wasmer Rust crate Learn
C logo C/C++ wasmer.h header Learn
C# logo C# WasmerSharp NuGet package Learn
D logo D wasmer Dub package Learn
Python logo Python wasmer PyPI package Learn
JS logo Javascript @wasmerio NPM packages Learn
Go logo Go wasmer Go package Learn
PHP logo PHP wasm PECL package Learn
Ruby logo Ruby wasmer Ruby Gem Learn
Java logo Java wasmer/wasmer-jni Bintray package Learn
Elixir logo Elixir wasmex hex package Learn
R logo R no published package Learn
Postgres logo Postgres no published package Learn
Swift no published package
Zig logo Zig no published package
Dart logo Dart wasm pub package
Lisp under heavy development - no published package

πŸ‘‹  Missing a language?

Contribute

We appreciate your help! πŸ’œ

Check our docs on how to build Wasmer from source or test your changes.

Community

Wasmer has an amazing community of developers and contributors. Welcome, please join us! πŸ‘‹

Dependencies

~6MB
~133K SLoC