qmetrics.net

Wasmer SDK

Cross-language WebAssembly sandbox SDK

Wasmer SDK screenshot

Wasmer SDK runs registry packages inside sandboxes from JavaScript, Python, Swift, or Rust with a shared API model.

Overview

Wasmer SDK lets applications run real software inside lightweight WebAssembly sandboxes. Packages from the Wasmer registry can be composed into isolated environments where you supply files, environment variables, mounts, and network capabilities, then execute commands or keep long-lived processes under explicit control.

The design uses one conceptual model across languages: a client resolves packages and caching, sandboxes.create() assembles an isolated workspace, command(...).run() runs finite commands, and command(...).spawn() exposes stdin, stdout, stderr, and lifecycle for ongoing processes. Filesystem and guest port helpers sit on the sandbox rather than a separate hidden server abstraction.

Language bindings include JavaScript on npm, Python on pip, Rust via the workspace, and a Swift preview for macOS with a noted path toward iOS. JavaScript runs Wasmer in WebAssembly via wasm-bindgen with Node networking bridged through node:net and node:dns; Python and Swift share a UniFFI layer on the Rust SDK. Examples in the documentation cover browser shells, Python HTTP servers, PostgreSQL with psql, PHP sites, and mixed runtimes in one sandbox.

Shared package caching defaults to a .wasmer directory in the working folder, with registry metadata shared across native clients. The SDK remains in alpha, with cross-language shape settled but error codes and edge capabilities still evolving.

Key features

  • Composable WASM sandboxes
  • Wasmer registry package resolution
  • Run and spawn guest commands
  • Guest filesystem and port access
  • JavaScript, Python, Rust, Swift SDKs
  • Shared local package cache

Use cases

  • Running Python in a sandbox from Node
  • Browser Unix-style command examples
  • PostgreSQL in an isolated guest
  • Multi-runtime demos in one workspace

Tags

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

★ 40.9k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

★ 33.5k⟳ 9 days agoMIT