Agent skill

hono-ipc-setup

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

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/hono-ipc-setup-naporin0624-claude-plugin-hono-e-2

SKILL.md

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

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 - Query/Command separation
  • hono-ipc-routes - Route implementation

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results