Skip to main content

Introduction

Wasmrun is a WebAssembly runtime that simplifies development, compilation, and execution of WASM applications across multiple programming languages.

Four Modes, and a Process Manager​

Server Mode: wasmrun​

Compile and serve WebAssembly projects with a built-in dev server, live reload, and browser-based module inspection.

wasmrun ./my-rust-project --watch

Exec Mode: wasmrun exec​

Run WASM files natively using a built-in interpreter with WASI support. No browser, no server.

wasmrun exec ./program.wasm arg1 arg2

OS Mode: wasmrun os​

Browser-based execution environment with a WASM virtual machine, virtual filesystem, and multi-language runtime support.

wasmrun os ./my-node-project

Agent Mode: wasmrun agent​

A REST API that gives AI agents isolated sandboxes to execute code in, built on the exec-mode interpreter. No Docker, no daemon.

wasmrun agent --port 8430

Process Manager: wasmrun ps​

Keeps WASM programs running from a processes.toml: restarts with backoff, per-program logs, memory limits, all on exec mode's interpreter.

wasmrun ps start && wasmrun ps list

wasmrun init my-app --template rust|go|c|asc|python|nodejs|wasi starts a project for any of them.

Key Features​

  • Multi-Language: Rust, Go, Python, C/C++, AssemblyScript via plugins
  • Plugin Architecture: extensible system for language support and build tools
  • Live Reload: file watching with auto-recompilation
  • Native Execution: built-in WASM interpreter with WASI syscalls
  • OS Mode: browser-based sandboxed execution with network isolation
  • Zero Config: auto-detects project type, sensible defaults

Getting Started​

  1. Install wasmrun
  2. Quick start guide
  3. Pick a mode: Server, Exec, OS, Agent, or the Process Manager