Webview
🕸️ webview bindings for bun runtime
Install / Use
/learn @evanwashere/WebviewREADME
<h1 align=center>@evan/webview</h1>
<div align=center>webview bindings for bun runtime</div>
<br />
Install
bun add @evan/webview
Examples
import { Window } from '@evan/webview';
// window is bound to bun's lifetime
// window will not prevent bun from exiting
const window = new Window({
titlebar: true, // enable/disable titlebar (default: true) [macos-only]
resizable: true, // enable/disable resizing window (default: true)
maximized: false, // start window maximized (default: false)
fullscreen: false, // start window in fullscreen mode (default: false)
title: 'Hello World', // set window's title (default: none)
always_on_top: false, // keep window always on top (default: false)
user_agent: 'bun!!!!', // set user agent (default: webkit's user agent)
js: 'console.log(1)', // inject js code before loading url/html (default: none)
url: 'https://www.google.com', // start window with url (default: blank)
// or html: '<h1>Hello World</h1>', // start window with html (default: "")
size: {
width: 800, height: 600, // default window size
min: { width: 400, height: 300 }, // min window size
max: { width: 1024, height: 768 }, // max window size
},
});
window.kill(); // close webview window
window.wait(); // wait for window to close (blocks main thread)
License
Apache-2.0 © Evan
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
