← 开源
wasmerio

wasmer

🚀 Fast and lightweight sandboxes for your apps and AI agents

InfrastructureMake world agent-readyRust
在 GitHub 打开
增长势头
+224 小时新增 Star+0.0%
21.2k
Star
1.02k
Fork
100
贡献者
创建于 2018-10-11 · 更新于 2026-10-16 · 今日第 3263 名
主要开发者

wasmerio/wasmer 排名第 3,263,有 21,157 个星标。

同类别比较

wasmerio/wasmer 排名第 3,263,此处有 8 个同类条目;mlc-ai/mlc-llm 排名第 3,259。

同类别比较
名称排名指标
ndycode/codex-multi-auth3,217
语言:
TypeScript
星标数:
549
分叉数:
71
简介:
Codex CLI multi-account OAuth manager with account switching, health checks, runtime rotation, diagnostics, and recovery tools for @openai/codex
nomic-ai/gpt4all3,240
语言:
C++
星标数:
77,366
分叉数:
8,262
简介:
GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
zeroclaw-labs/zeroclaw3,249
语言:
Rust
星标数:
32,984
分叉数:
4,975
mlc-ai/mlc-llm3,259
语言:
Python
星标数:
23,250
分叉数:
2,184
简介:
Universal LLM Deployment Engine with ML Compilation
mlc-ai/web-llm3,271
语言:
TypeScript
星标数:
19,273
分叉数:
1,416
简介:
High-performance In-browser LLM Inference Engine
NVIDIA/open-gpu-kernel-modules3,281
语言:
C
星标数:
17,467
分叉数:
1,912
简介:
NVIDIA Linux open GPU kernel module source
weaviate/weaviate3,284
语言:
Go
星标数:
16,886
分叉数:
1,420
简介:
Weaviate is an open-source vector database that stores both objects and vectors, allowing for the combination of vector search with structured filtering with the fault tolerance and scalability of a cloud-native database​.
huggingface/transformers.js3,288
语言:
JavaScript
星标数:
16,350
分叉数:
1,203
简介:
State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!
关键参数与规格
关键参数与规格
参数值
语言Rust
类别Infrastructure
子类别Make world agent-ready
关键词Containers, DevOps, Security
星标数21,157
分叉数1,023
贡献者100
创建日期2018-10-11
更新日期2026-10-16
1 天星标数2
排名3,263
上次排名7,127
排名变化3,864
7 天星标排名19,066
上次 7 天星标排名18,981
7 天星标排名变化-85
总星标排名687
上次总星标排名687
总星标排名变化0
README 摘录

Lightweight sandboxes for your apps and AI agents Wasmer runs your apps in *fast*, *secure*, and *lightweight sandboxes*: locally, in the cloud, or in your browser. You control file, network, and environment access. Fast startup with a small memory footprint. Python, JavaScript, Bash, and more from the registry. Add sandboxes to your app with the Wasmer SDK. Run your first sandbox Install the CLI on macOS or Linux: Windows and other installation options **Windows (PowerShell)** **Homebrew (macOS / Linux)** See the

installation guide for more options. Run Python in a sandbox: Or try a shell command and Cowsay: Wasmer downloads the package and caches it for future runs. Use to separate Wasmer options from the arguments passed to your program. To work with local files, grant access to a directory with ; enable host networking with when your program needs it. **No installation needed:** open wasmer. Wasmer SDK Create a sandbox, choose your tools, and run code directly in your app with

the Wasmer SDK. Install the SDK **JavaScript / TypeScript** (Node. js 20 or newer): Rust The Rust SDK currently uses a source dependency. Clone , then point your application at its directory: Follow the Rust setup guide for the required toolchain and workspace patches. Python The SDK's Python wheels support macOS and Linux on Intel and ARM64. Swift (iOS and macOS) Use Swift 6 or newer. The SDK supports macOS 12+ and iOS 27+; iOS apps require Xcode 27 or newer. Add

the package to your dependencies: Then add the product to your target's dependencies: In Xcode, you can instead add the repository URL, select as a revision, and choose the **WasmerSDK** product. SwiftPM downloads the prebuilt macOS binaries and iOS runtime resources. For iOS, set the deployment target to **iOS 27. 0** and allow local networking in your app's : Both platforms use and the same API. On iOS, the SDK manages a hidden ; your app does not need to display one

. See the Swift guide and iOS setup guide for more details. Run code in a sandbox **JavaScript / TypeScript** Save this as : Run it with . Python executes inside the sandbox; you don't need Python installed on the host. Python example Save this as : Run it with . Swift example (iOS and macOS) Use this code in an context: See the Swift guide for embedding in an iOS or macOS app and more examples. JavaScript in the browser Use the same JavaScript sandbox

API with the import. Your page needs cross-origin isolation ( and ) for worker-backed execution. Follow the browser setup guide or explore wasmer. Rust example See the Rust guide for workspace setup and more examples. Go further Build more with the sandbox API: **Commands**. Stream output and manage long-running tasks. Combine languages and packages in one sandbox. Run servers with explicit network access. See the language guides for platform support and capabilities, and the SDK examples for Python scripts

, an Edge. js HTTP server, PostgreSQL, and multiple tools sharing one sandbox. js-compatible apps | | | Bash | | | PHP | | | PostgreSQL | | | SQLite | | | FFmpeg

常见问题

记录了多少星标和分叉?

wasmerio/wasmer 有 21,157 个星标和 1,023 个分叉。

仓库排名是多少?

wasmerio/wasmer 排名第 3,263。

记录的语言和类别是什么?

wasmerio/wasmer 有 21,157 个星标,语言为 Rust,类别为 Infrastructure。

哪个仓库排名最接近?

wasmerio/wasmer 与 mlc-ai/mlc-llm 比较,后者排名第 3,259,有 23,250 个星标。

README

Lightweight sandboxes for your apps and AI agents

[Run with the CLI](#run-your-first-sandbox) ·
[Embed with the SDK](#wasmer-sdk) ·
[Try in your browser](https://wasmer.sh)





[![CLI release](https://img.shields.io/github/v/release/wasmerio/wasmer)](https://github.com/wasmerio/wasmer/releases)
[![MIT license](https://img.shields.io/github/license/wasmerio/wasmer.svg)](./LICENSE)
[![Wasmer Sandbox SDK](https://img.shields.io/badge/SDK-sandboxes-6f42c1)](https://github.com/wasmerio/wasmer-sdk)
[![Wasmer on Discord](https://img.shields.io/discord/1110300506942881873?label=Discord&logo=discord&logoColor=white)](https://discord.gg/rWkMNStrEW)

Wasmer runs your apps in fast, secure, and lightweight sandboxes: locally, in the cloud, or in your browser.

  • Secure by default. You control file, network, and environment access.
  • Lightweight. Fast startup with a small memory footprint.
  • Ready to run. Python, JavaScript, Bash, and more from the registry.
  • Embeddable. Add sandboxes to your app with the Wasmer SDK.

Run your first sandbox

Install the CLI on macOS or Linux:

curl https://get.wasmer.io -sSfL | sh

Windows and other installation options

Windows (PowerShell)

iwr https://win.wasmer.io -useb | iex

Homebrew (macOS / Linux)

brew install wasmer

See the installation guide for more options.

Run Python in a sandbox:

wasmer run python/python -- -c "print('Hello from Wasmer')"
Hello from Wasmer

Or try a shell command and Cowsay:

wasmer run wasmer/bash -- -c "echo 'Hello from Wasmer'"
wasmer run syrusakbary/cowsay -- "Hello from Wasmer"

Wasmer downloads the package and caches it for future runs. Use -- to separate Wasmer options from the arguments passed to your program. To work with local files, grant access to a directory with --volume; enable host networking with --net when your program needs it. See the CLI guide for details.

No installation needed: open wasmer.sh to try a sandbox in your browser.

Wasmer SDK

Create a sandbox, choose your tools, and run code directly in your app with the Wasmer SDK.

Install the SDK

JavaScript / TypeScript (Node.js 20 or newer):

npm install @wasmer/sdk

Rust

The Rust SDK currently uses a source dependency. Clone wasmerio/wasmer-sdk, then point your application at its rust directory:

[dependencies]
wasmer-sdk = { path = "../wasmer-sdk/rust" }
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }

Follow the Rust setup guide for the required toolchain and workspace patches. Crates.io publishing is currently disabled.

Python

python -m pip install wasmer-sdk

The SDK's Python wheels support macOS and Linux on Intel and ARM64. See the Python guide.

Swift (iOS and macOS)

Use Swift 6 or newer. The SDK supports macOS 12+ and iOS 27+; iOS apps require Xcode 27 or newer.

Add the package to your Package.swift dependencies:

.package(
    url: "https://github.com/wasmerio/wasmer-sdk.git",
    revision: "wasmer-sdk-swift-v0.4.0"
)

Then add the product to your target's dependencies:

.product(name: "WasmerSDK", package: "wasmer-sdk")

In Xcode, you can instead add the repository URL, select wasmer-sdk-swift-v0.4.0 as a revision, and choose the WasmerSDK product. SwiftPM downloads the prebuilt macOS binaries and iOS runtime resources.

For iOS, set the deployment target to iOS 27.0 and allow local networking in your app's Info.plist:

NSAppTransportSecurity

    NSAllowsLocalNetworking
    

Both platforms use import WasmerSDK and the same API. On iOS, the SDK manages a hidden WKWebView; your app does not need to display one. See the Swift guide and iOS setup guide for more details.

Run code in a sandbox

JavaScript / TypeScript

Save this as sandbox.mjs:

import { Wasmer } from "@wasmer/sdk/node";

const wasmer = new Wasmer();
const sandbox = await wasmer.sandboxes.create({
  packages: ["python/python@=3.13.20"],
});

const output = await sandbox
  .command("python", ["-c", "print('Hello from Wasmer')"])
  .run();

console.log(output.text());

Run it with node sandbox.mjs. Python executes inside the sandbox; you don't need Python installed on the host. See the JavaScript guide.

Python example

Save this as sandbox.py:

import asyncio

from wasmer_sdk import Wasmer


async def main():
    wasmer = Wasmer()
    sandbox = await wasmer.sandboxes.create(
        packages=["python/python@=3.13.20"],
    )
    output = await sandbox.command(
        "python", ["-c", "print('Hello from Wasmer')"]
    ).run()
    print(output.text())


asyncio.run(main())

Run it with python sandbox.py. See the Python guide.

Swift example (iOS and macOS)

Use this code in an async throws context:

import WasmerSDK

let wasmer = try Wasmer()
let sandbox = try await wasmer.sandboxes.create(
    packages: ["python/python@=3.13.20"]
)
let output = try await sandbox.command(
    "python", ["-c", "print('Hello from Swift!')"]
).run(timeout: 30)
print(try output.text())

See the Swift guide for embedding in an iOS or macOS app and more examples.

JavaScript in the browser

Use the same JavaScript sandbox API with the @wasmer/sdk/browser import. Execution happens in the browser. Your page needs cross-origin isolation (Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp) for worker-backed execution. Follow the browser setup guide or explore wasmer.sh.

Rust example

use wasmer_sdk::{Result, Wasmer};

#[tokio::main]
async fn main() -> Result<()> {
    let wasmer = Wasmer::new()?;
    let sandbox = wasmer
        .sandboxes()
        .create()
        .package("python/python@=3.13.20")
        .await?;

    let output = sandbox
        .command("python")
        .args(["-c", "print('Hello from Wasmer')"])
        .run()
        .await?;

    println!("{}", output.text()?);
    Ok(())
}

See the Rust guide for workspace setup and more examples.

Go further

Build more with the sandbox API:

  • Commands. Run code and capture output.
  • Processes. Stream output and manage long-running tasks.
  • Files. Read and write the sandbox workspace.
  • Tools. Combine languages and packages in one sandbox.
  • Services. Run servers with explicit network access.

The SDK is currently alpha. See the language guides for platform support and capabilities, and the SDK examples for Python scripts, an Edge.js HTTP server, PostgreSQL, and multiple tools sharing one sandbox.

Software you can run

Start with packages from the registry:

Software Package
Python python/python
JavaScript / Node.js-compatible apps wasmer/edgejs
Bash wasmer/bash
PHP php/php
PostgreSQL wasmer/pglite
SQLite sqlite/sqlite
FFmpeg wasmer/ffmpeg

Explore more packages, package your own software, or deploy an application to Wasmer Edge.

Develop and contribute

This repository contains the Wasmer runtime and CLI that power the sandbox experience. The sandbox SDKs live in wasmerio/wasmer-sdk. For lower-level WebAssembly embedding, see the Rust API and C API.

Contributions are welcome. For guidance on getting started, read Contributing to Complex Projects. Wasmer is MIT licensed.

Community

Get help, share what you're building, and meet other Wasmer users:

Discord · X · LinkedIn · Blog

Community translations (may describe an earlier version)

中文 · Deutsch · Español · Français · 日本語 · 한국어

排名相邻
同类项目