
Electrobun Best Practices
If you're building desktop apps with Electrobun and Bun, this gives you the safe path: typed RPC patterns between your Bun process and browser views, security defaults for sandboxing untrusted content, and the navigation rules you actually need. It covers the stuff that trips people up, like why RPC calls silently fail in sandboxed views, how to handle shutdown cleanup on Linux, and partition isolation for multi-account apps. The typed RPC examples are clean and minimal. Load this alongside the TypeScript best practices skill since Electrobun is TypeScript-first. Good reference for updater flows and build configuration too.
- skills.sh installs
- 209
- GitHub stars
- 48
- last updated
- Jun 3, 2026
Install
$ npx -y skills add 0xbigboss/claude-code --skill electrobun-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
Files
Electrobun Best Practices
Electrobun builds cross-platform desktop apps with TypeScript and Bun. This skill gives safe defaults, typed RPC patterns, and operational guidance for build/update/distribution.
Docs: https://blackboard.sh/electrobun/docs/
Pair with TypeScript Best Practices
Always load typescript-best-practices alongside this skill.
Version and Freshness
Electrobun APIs evolve quickly. Before relying on advanced options or platform-specific behavior, verify against current docs and CLI output.
Architecture
Electrobun apps run as Bun apps:
- Bun process (main): imports from
electrobun/bun - Browser context (views): imports from
electrobun/view - Shared types: RPC schemas shared between both contexts
IPC between bun and browser contexts uses postMessage, FFI, and (in some paths) encrypted WebSockets.
Quick Start
bunx electrobun init
bun install
bun start
Recommended scripts:
Sponsors
Details
- Repository
- github.com/0xbigboss/claude-code
- First seen
- Jun 3, 2026
More from 0xbigboss/claude-code
All 22- Tilt196
- Orbstack Best Practices180
- Canton Network Repos157
- Ios Device Screenshot155
- Atlas Best Practices154
- Git Best Practices149
- Git Rebase Sync146
- Testing Best Practices135
- E2e126
- Extract Transcripts122
- React Best Practices3K
- Typescript Best Practices2.9K
- Python Best Practices1.8K
- Web Fetch929
- Zig Best Practices388
- Nix Best Practices359
- Tamagui Best Practices290
- Openai Image Gen288
- Go Best Practices272
- Playwright Best Practices266
- Axe Ios Simulator239