electrobun-core

Solid

Use when working on any Electrobun desktop app — BrowserWindow, BrowserView, events, app lifecycle, ApplicationMenu, Tray, and electrobun.config.ts. Activates automatically when editing Electrobun project files.

AI & Automation 394 stars 68 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
86
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Electrobun Core Patterns Electrobun is a cross-platform desktop app framework (macOS/Windows/Linux) using Bun as runtime and a native system webview (or CEF) as renderer. The bun process and renderer run as separate processes; they communicate via RPC (see electrobun-rpc skill). ## Project Structure ``` src/ ├── bun/ # Main process (Bun side) │ └── index.ts # Entry point └── mainview/ # Renderer process ├── index.html ├── index.css └── index.ts ``` ## electrobun.config.ts ```typescript import { defineConfig } from "electrobun/config"; export default defineConfig({ app: { name: "MyApp", identifier: "com.example.myapp", version: "1.0.0", urlSchemes: ["myapp"], // enables myapp:// deep links }, build: { bun: { entrypoint: "src/bun/index.ts" }, views: { mainview: { entrypoint: "src/mainview/index.ts" }, }, mac: { bundleWGPU: false, bundleCEF: false, defaultRenderer: "native", // or "cef" codesign: true, notarize: true, icons: "assets/icon.icns", }, win: { bundleWGPU: false, bundleCEF: false, icon: "assets/icon.ico" }, linux: { bundleWGPU: false, bundleCEF: false }, copy: { "assets/": "assets/" }, }, runtime: { exitOnLastWindowClosed: true }, scripts: { preBuild: "bun run generate-assets.ts", postBuild: "echo Build complete", }, release: { baseUrl: "https://releases.example.com/myapp", generatePatch: true, }, }); ``` ## Br...

Details

Author
milady-ai
Repository
milady-ai/milady
Created
3 months ago
Last Updated
today
Language
HTML
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category