electrobun

Build Electrobun algo trading desktop apps with secure main-process logic and type-safe RPC.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/Mohitkoley/bakery-inventory --skill electrobun-mohitkoley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: electrobun
Source: https://github.com/Mohitkoley/bakery-inventory/tree/main/.opencode/skills/basic
Command: npx skills add https://github.com/Mohitkoley/bakery-inventory --skill electrobun-mohitkoley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design and implement production-grade Electrobun desktop applications for algo trading, broker connectivity, and real-time market workflows without exposing sensitive logic to the webview.

Core Features & Use Cases

  • Secure app architecture: Keeps authentication, order execution, database access, and other sensitive operations in the Bun main process.
  • Trading workflow support: Covers broker APIs, WebSocket market data, order lifecycle management, portfolio tracking, and strategy execution.
  • Operational guardrails: Guides sandboxing of external content, type-safe RPC between processes, encrypted secret storage, and fail-safe order handling.
  • Use case: Build a desktop trading terminal with live quotes, login flows, positions, orders, and strategy controls backed by Electrobun.

Quick Start

Ask for an Electrobun algo trading desktop app architecture or feature implementation plan tailored to your broker, data, and UI requirements.

Frequently Asked Questions about electrobun

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

FAQPage Schema
How do I build a desktop trading app with Bun without exposing broker API keys to the webview?

Build a desktop trading app with Bun using Electrobun to isolate sensitive operations like broker API keys and order execution in the main process. The architecture enforces type-safe RPC and sandboxed external content to keep webview interactions secure.

What's the best way to handle WebSocket market data reconnection in an Electrobun desktop app?

Handle WebSocket market data reconnection in an Electrobun desktop app by implementing operational guardrails in the Bun main process. The architecture requires prepared storage and fail-safe reconnection handling to maintain real-time data streaming continuity during network interruptions.

How does type-safe RPC work between the main process and webview in a trading dashboard?

Type-safe RPC in a trading dashboard works by enforcing structured communication between the Bun main process and webview. This ensures secure main-process logic handles authentication and order lifecycle management while the webview only receives validated data payloads.

Can I use Electrobun for paper trading and strategy execution across multiple windows?

Yes, you can use Electrobun for paper trading and strategy execution across multiple windows. The framework supports multi-window desktop workflows, allowing you to separate trading dashboards, position tracking, and strategy controls into isolated views.

Does building an algo trading terminal with Electrobun require encrypted secret storage?

Yes, building an algo trading terminal with Electrobun requires encrypted secret storage. The architecture mandates Bun-side secrets management and fail-safe order validation to protect broker credentials and prevent unauthorized execution of trades.