dexploarer/plugin-electrobun-dev/electrobun-rpc
Claude Code and agent skill by dexploarer/plugin-electrobun-dev
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks about "electrobun RPC", "defineElectrobunRPC", "Electroview.defineRPC", "ElectrobunRPCSchema", bun-to-renderer communication, or renderer-to-bun communication. Activates automatically when RPC code is present.
Install
npx vskill@latest install dexploarer/plugin-electrobun-dev/electrobun-rpcSKILL.md
The same SKILL.md was published earlier as dexploarer/plugin-electrobun-dev/electrobun-rpc.
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:
Bun Side — BrowserView.defineRPC
Renderer Side — Electroview.defineRPC
Key Rules
- `requests`: bidirectional, async, returns a value. Use for: data fetching, file I/O, native dialogs.
- `messages`: fire-and-forget, no return value. Use for: notifications, state updates, events.
- `maxRequestTime`: always set explicitly. Default may be too low for:
- File save dialogs: set ≥ 30000
- Database operations: set ≥ 10000
- Quick in-memory ops: 5000 is fine
- Type safety: the schema type is shared — import it on both sides. Never duplicate the type definition.
- Encryption: RPC uses AES-GCM. Keys are auto-generated per session. Don't bypass this.
Common Gotchas
- RPC not available yet: Wait for
dom-readyevent before callingview.rpc.request.*. - maxRequestTime timeout: Error message is generic. If you see "RPC timeout", increase
maxRequestTime. - sandbox: true: Disables RPC entirely. Don't set sandbox on windows that need RPC.
- Schema mismatch: If bun and renderer import different schema types, calls silently fail. Use a single shared type file.
- Renderer not initialized:
Electroview.defineRPCmust be called before anyrpc.request.*calls.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/electrobun-rpc/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 1
- 7-day trend score
- 9
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dexploarer/plugin-electrobun-dev/electrobun-rpc)