bun-webview

Installation
SKILL.md

Bun WebView Skill

When to Use This Skill

Use this skill when you are:

  • Creating a desktop window or browser automation target with Bun's Bun.WebView API
  • Loading HTML, navigating to URLs, or evaluating JavaScript in a page
  • Documenting or implementing Bun.WebView constructor options
  • Looking up instance methods such as navigate(), evaluate(), screenshot(), click(), type(), press(), scroll(), resize(), goBack(), goForward(), reload(), or cdp()
  • Using page state properties like view.url, view.title, and view.loading
  • Handling EventTarget events, especially Chrome backend CDP events dispatched as MessageEvent
  • Configuring backend selection, console capture, and persistent profiles

Product Summary

Bun.WebView is available starting in Bun v1.3.12.

Bun's Bun.WebView API provides a native webview/browser automation surface you can create directly from Bun. It supports multiple backends, including WebKit and Chrome, and is intended for lightweight desktop apps, internal tools, testing flows, and browser-driven automation without a full Electron-style stack.

Installs
1
First Seen
Oct 4, 2026