| name | hono-ipc-setup |
| description | Set up Hono-based type-safe IPC for Electron. Use when implementing IPC or migrating from ipcRenderer to type-safe RPC. |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash(npm:*), Bash(pnpm:*) |
Hono Electron IPC Setup
Resources
Directory Structure
src/
├── shared/callable/ # Factory, app creation, types.d.ts
├── main/callable/ # Service injection
└── renderer/src/adapters/ # Type-safe hc client
Quick Start
pnpm add hono @hono/zod-validator zod
export type CallableType = ReturnType<typeof createApp>;
export const client = hc<CallableType>('http://internal.localhost', { ... });
Related Skills