Electrobun RPC
Installation
SKILL.md
Electrobun RPC System
Type-safe bidirectional communication between the Bun process and webview renderers. Uses WebSockets for transport with AES-GCM encryption. Two call types: requests (expects a response) and messages (fire-and-forget).
Schema Definition (shared type)
Define the schema in a shared file both sides import:
// src/shared/rpc-schema.ts
import type { ElectrobunRPCSchema, RPCSchema } from "electrobun/view";