A starter kit with typed, runtime-validated IPC, a sandboxed renderer,
error logging by default with a --debug mode for full diagnostics, and a modern React + TypeScript UI.
Ship with confidence from day one.
Features
Sane defaults and guardrails that hold up in production, with clear seams to extend as your app grows.
Typed IPC end-to-end
Every channel declared once in shared/protocol.ts as a Zod schema. Compile-time types and runtime validation — both from the same source of truth.
Sandboxed renderer
sandbox: true, contextIsolation: true, nodeIntegration: false. The renderer's only capability is the minimal window.api exposed via contextBridge.
Multi-window, zero boilerplate
Single bundle, URL hash routing. One createWindow({ entry, parent }) factory for every window — modal child support included.
Cross-window reactive state
State lives in the main process. Typed broadcast() events keep every open window in sync — no client-state library can do this across processes.
Errors by default, full logs on demand
Production logs only errors, with no file created until one occurs. Launch with --debug for info, debug, and the full IPC stream. Sensitive keys are scrubbed from payloads, and files rotate to the last 5.
Built to extend
Add a channel: declare a schema, declare a response type, implement the handler. Typed, validated, and errors are logged — automatically. The compiler guides you.
Auto-Update (VSCode-style)
Check → Download → Restart, all user-initiated. electron-updater with a GitHub provider, typed update:* events, and a tag-triggered release workflow. No-op in dev.
Stack
Every choice is here for a reason — and swappable when your requirements differ.
Quick Start
Create your own copy from the template, install, and run. No configuration required to get started.
# On GitHub: Use this template → Create a new repository, then git clone https://github.com/<you>/<your-app>.git cd <your-app> # Install dependencies npm install # Start in development mode (renderer HMR) npm run dev # Build a Windows installer npm run build:win
Before your first release, replace the template's identifiers — see Make It Yours in the README. Otherwise your installed app will check this repository's releases for updates.
Dev (renderer HMR)
npm run dev
Dev (full rebuild)
npm run dev:watch
Type check
npm run typecheck
Package for Windows
npm run build:win
Create your copy from the template, run npm install, and start building your app on a foundation that holds up in production.
Auto-Update
Check → Download → Restart. Three steps, all user-initiated. A tag push is all it takes to ship a new version.
How it works
autoDownload: false and autoInstallOnAppQuit: false — the user is always in control.
Shipping a release
# bump version in package.json, then: git tag v1.2.0 git push && git push --tags # release workflow builds + publishes automatically
Self-hosted runner
Need code signing or a private fork? Change runs-on: windows-latest to runs-on: [self-hosted, Windows] in release.yml and register your dev machine as a runner in repo settings. Set GH_TOKEN and GH_TOKEN_RO as machine-level env vars.