WebAssembly System Interface Preview 2

WASI Preview 2 is the first WASI release built on the Component Model. It defines a set of interfaces such as wasi:filesystem, wasi:io, wasi:http, wasi:cli, and wasi:sockets that components can import to interact with the host system in a portable, capability-based way.

API entry from apis.yml

apis.yml Raw ↑
aid: component-model:wasi-preview-2
name: WebAssembly System Interface Preview 2
description: WASI Preview 2 is the first WASI release built on the Component Model. It defines a set of
  interfaces such as wasi:filesystem, wasi:io, wasi:http, wasi:cli, and wasi:sockets that components can
  import to interact with the host system in a portable, capability-based way.
humanURL: https://wasi.dev/
baseURL: https://wasi.dev
tags:
- System Interface
- WASI
- Capabilities
properties:
- type: Documentation
  url: https://wasi.dev/
- type: GitHub Organization
  url: https://github.com/WebAssembly/WASI
- type: Reference
  url: https://github.com/WebAssembly/wasi-http
- type: Reference
  url: https://github.com/WebAssembly/wasi-filesystem
x-features:
- Capability-based system access
- Defined as a collection of WIT worlds
- wasi:http provides a portable HTTP server interface
- Worlds for CLI, HTTP proxy, and embedder customization
x-useCases:
- Building portable WebAssembly server functions
- Running components in Wasmtime, Jco, WasmEdge, and Spin
- Implementing capability-secure host bindings