electrobun-best-practices

Provides recommended patterns for building secure & compliant desktop apps with this technology stack.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/awfixers-stuff/opencode-config --skill electrobun-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: electrobun-best-practices
Source: https://github.com/awfixers-stuff/opencode-config/tree/main/skills/electrobun-best-practices
Command: npx skills add https://github.com/awfixers-stuff/opencode-config --skill electrobun-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide a structured, battle-tested set of conventions and patterns to reduce security risks, confusion, and architectural drift when building Electrobun desktop apps with TypeScript.

Core Features & Use Cases

  • Safe defaults and typed RPC patterns for inter-context communication between Bun and browser contexts.
  • Guidance for building, updating, and distributing Electrobun apps with consistent configuration.
  • Clear architectural guidance for BrowserWindow/BrowserView usage, partitions, and webview security.

Quick Start

Review and adopt the Electrobun best-practices when scaffolding or updating your project.

Frequently Asked Questions about electrobun-best-practices

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

FAQPage Schema
How do I secure RPC communication between Bun and browser contexts in Electrobun?

Securing RPC communication in Electrobun requires enforcing typed RPC schemas and safe defaults for inter-context data exchange. This prevents unvalidated data from crossing between Bun and browser contexts, reducing security risks in desktop apps.

What are the best practices for configuring BrowserWindow and BrowserView security in Electrobun?

BrowserWindow and BrowserView security in Electrobun involves applying clear architectural guidance for partition usage and webview security configurations. Adopting these safe defaults prevents context isolation failures and restricts unauthorized webview access to privileged APIs.

How do I manage update and distribution flows for Electrobun desktop apps?

Managing update and distribution flows for Electrobun apps requires consistent configuration using electrobun.config.ts. Following operational guidance ensures updater flows and distribution artifacts are built with secure, typed conventions.

Can I use TypeScript to enforce typed schemas for Electrobun RPC calls?

Yes, TypeScript enforces typed schemas for Electrobun RPC calls. Applying strict TypeScript definitions for inter-context communication boundaries ensures type safety between Bun and browser contexts.

How do I prevent architectural drift when building Electrobun desktop apps?

Preventing architectural drift in Electrobun desktop apps involves adopting structured, battle-tested conventions. Enforcing typed RPC schemas and safe defaults maintains architectural consistency throughout the application lifecycle.