Hono ipc setup
Skill naporin0624/claude-plugin-hono-electron/skills/hono-ipc-setup
Set up Hono-based type-safe IPC for Electron. Use when implementing IPC or migrating from ipcRenderer to type-safe RPC.From its SKILL.md
npx -y skills add naporin0624/claude-plugin-hono-electron --skill hono-ipc-setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, as published. Nobody here has run it
Hono Electron IPC Setup
Resources
| Topic | File |
|---|---|
| Why shared/ directory | SHARED-DIRECTORY.md |
| Factory pattern with DI | FACTORY-PATTERN.md |
| Hono RPC API reference | 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
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', { ... });
Related Skills
- cqrs-pattern - Query/Command separation
- hono-ipc-routes - Route implementation