WebContainer API

A browser-based runtime API that executes Node.js applications and operating system commands directly inside a browser tab using WebAssembly. Provides classes and methods for booting a container instance, mounting file systems, spawning processes, managing files, and handling OAuth authentication. Supports npm, pnpm, and yarn natively and emits events for port bindings and server-ready states. Commercial use in production for-profit applications requires a license.

API entry from apis.yml

apis.yml Raw ↑
aid: stackblitz:webcontainer-api
name: WebContainer API
description: A browser-based runtime API that executes Node.js applications and operating system commands
  directly inside a browser tab using WebAssembly. Provides classes and methods for booting a container
  instance, mounting file systems, spawning processes, managing files, and handling OAuth authentication.
  Supports npm, pnpm, and yarn natively and emits events for port bindings and server-ready states. Commercial
  use in production for-profit applications requires a license.
humanURL: https://webcontainers.io/api
baseURL: https://webcontainers.io
tags:
- WebContainers
- Node.js
- Browser Runtime
- WebAssembly
properties:
- type: Documentation
  url: https://webcontainers.io/api
- type: GettingStarted
  url: https://webcontainers.io/guides/quickstart