Bun WebView

Automate Bun.WebView browser interactions and desktop window control.

39|3|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/jonaspm/bunwright --skill bun-webview
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Bun WebView
Source: https://github.com/jonaspm/bunwright/tree/main/.agents/skills/bun-webview
Command: npx skills add https://github.com/jonaspm/bunwright --skill bun-webview

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you build and document lightweight browser automation flows in Bun without reaching for a heavier end-to-end testing stack. It is ideal when you need to open a web page, drive a desktop browser window, inspect page state, or automate repetitive browser tasks with Bun.WebView.

Core Features & Use Cases

  • Browser window control: Create new Bun.WebView instances, choose a backend, and load remote or inline content.
  • Automation actions: Navigate pages, evaluate JavaScript, click elements, type text, press keys, scroll, resize, and take screenshots.
  • Advanced integrations: Use page state properties, capture console output, persist browser data, and send raw Chrome DevTools Protocol commands when needed.
  • Use case: A Bun script can log into an internal tool, wait for the dashboard, capture a screenshot, and inspect page events for a lightweight automated workflow.

Quick Start

Use this skill to create a Bun.WebView instance, navigate to a page, and automate clicks, typing, screenshots, or protocol calls for your target workflow.

Frequently Asked Questions about Bun WebView

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate browser windows and take screenshots using Bun?

You can automate browser windows and take screenshots in Bun by creating a Bun.WebView instance, navigating to a target page, and invoking the screenshot action to capture the current view.

Can I send raw Chrome DevTools Protocol commands with Bun.WebView?

Yes, you can send raw Chrome DevTools Protocol commands with Bun.WebView to handle advanced browser integrations and directly interact with the backend for specialized automation tasks.

What is the best way to automate form login flows in a Bun script?

Automating form login flows in a Bun script involves using Bun.WebView to navigate pages, type text, click elements, and wait for dashboard states to capture screenshots or inspect events.

Does Bun.WebView support capturing console output and persisting browser data?

Yes, Bun.WebView supports capturing console output and persisting browser data, allowing you to maintain session state and monitor page logs during your automated workflows.

Do I need a specific Bun version to use browser automation features?

Yes, you need Bun version 1.3.12 or newer to use the Bun.WebView browser automation features, including backend selection, navigation, evaluation, and event-driven input handling.

What are the limitations of using Bun.WebView for desktop browser automation?

Bun.WebView is designed for lightweight browser automation flows and may lack the comprehensive testing capabilities of heavier end-to-end testing stacks, making it less suitable for complex automated testing workflows.