Cross-platform native windows and webviews for Node.js, Bun, and Deno, backed by Rust, Tao, and Wry.
Install the package and open your first window with the getting started guide.
bun add webview-napiThe documentation is organized by task:
- Architecture — how the application, window, and webview layers fit together
- Application and event loop — high-level lifecycle and event pumping
- Windows — native window creation and control
- Webviews — URLs, HTML, scripts, cookies, and devtools
- IPC — messages between the host and page
- Pixel rendering — direct RGBA rendering without a webview
- Webview runtime — embedded and out-of-process backends
- Lifecycle and close — window destruction and close guards
- Linux / Wayland — platform notes and environment variables
- API reference — exported classes, methods, and enums
- Examples — runnable examples grouped by API
- Contributing — setup and development commands
npm install webview-napi
# or: pnpm add webview-napi
# or: bun add webview-napiLinux also needs the WebKitGTK development packages described in the platform guide.
import { Application } from 'webview-napi';
const app = new Application();
const window = app.createBrowserWindow({ title: 'Hello', width: 800, height: 600 });
window.createWebview({ url: 'https://nodejs.org' });
app.run();