Electrobun은 TypeScript 기반 크로스플랫폼 데스크톱 앱 프레임워크로, 메인 프로세스에 Bun을, 네이티브 바인딩에 Zig를 사용합니다. Electron과 Tauri의 한계를 극복하기 위해 개발되었으며, ~12MB 번들 크기, 14KB 업데이트 패치, 5분 코딩 → 10분 배포를 목표로 합니다.
# 프로젝트 생성npx create-electrobun my-app# 개발 모드cd my-app && bun run dev# 빌드 + 코드 서명 + 공증 + 패키징bun run build# → .dmg (macOS), .exe (Windows), .deb (Ubuntu)
// main.ts — 메인 프로세스import { app, BrowserWindow } from "electrobun";app.whenReady().then(() => { const win = new BrowserWindow({ width: 800, height: 600, }); win.loadURL("https://example.com"); // 또는 로컬 HTML win.loadFile("index.html");});