# Hono Ipc Setup

> Set up Hono-based type-safe IPC for Electron. Use when implementing IPC or migrating from ipcRenderer to type-safe RPC.

- Skill: `naporin0624/hono-ipc-setup` (Agent Skill, multi-file: 6 files)
- Install (CLI): `npx skillmds@latest add naporin0624/hono-ipc-setup`
- Raw SKILL.md: https://api.skillmd.com/api/skills/naporin0624/hono-ipc-setup/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: naporin0624 (https://skillmd.com/u/naporin0624)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/naporin0624/hono-ipc-setup

---


# Hono Electron IPC Setup

## Resources

| Topic | File |
|-------|------|
| Why shared/ directory | [SHARED-DIRECTORY.md](SHARED-DIRECTORY.md) |
| Factory pattern with DI | [FACTORY-PATTERN.md](FACTORY-PATTERN.md) |
| Hono RPC API reference | [REFERENCE.md](REFERENCE.md) |

## Directory Structure

```
src/
├── shared/callable/        # Factory, app creation, types.d.ts
├── main/callable/          # Service injection
└── renderer/src/adapters/  # Type-safe hc client
```

## Quick Start

```bash
pnpm add hono @hono/zod-validator zod
```

```typescript
// 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', { ... });
```

## Related Skills

- [cqrs-pattern](../cqrs-pattern/SKILL.md) - Query/Command separation
- [hono-ipc-routes](../hono-ipc-routes/SKILL.md) - Route implementation

