hono-ipc-setup
Set up Hono-based type-safe IPC for Electron. Use when implementing IPC or migrating from ipcRenderer to type-safe RPC.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Set up Hono-based type-safe IPC for Electron. Use when implementing IPC or migrating from ipcRenderer to type-safe RPC.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Implement CQRS pattern for Electron services. Use when creating service methods with Observable queries and ResultAsync commands.
Advanced patterns for Hono-based Electron IPC including Zod validation and error handling. Use when adding validation or handling errors in routes.
Implement type-safe IPC routes in Electron using Hono RPC. Use when creating API routes between main and renderer processes.
Implement reactive state management with Jotai atoms in Electron renderer. Use when creating atoms with real-time IPC updates or hybrid stream + HTTP patterns.
Design React Suspense boundaries interactively. Use when planning loading states, configuring boundary granularity, or combining with ErrorBoundary.
| 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:*) |
| Topic | File |
|---|---|
| Why shared/ directory | SHARED-DIRECTORY.md |
| Factory pattern with DI | FACTORY-PATTERN.md |
| Hono RPC API reference | REFERENCE.md |
src/
├── shared/callable/ # Factory, app creation, types.d.ts
├── main/callable/ # Service injection
└── renderer/src/adapters/ # Type-safe hc client
pnpm add hono @hono/zod-validator zod
// Type export: src/shared/callable/types.d.ts
export type CallableType = ReturnType<typeof createApp>;
// Client: src/renderer/src/adapters/client.ts
export const client = hc<CallableType>('http://internal.localhost', { ... });