Skip to content

Examples Overview

cmd-ipc includes several example projects demonstrating different use cases of the library. All examples can be found in the examples/ folder in the repository and is a complete, runnable application. More examples will be added over time.

Web Workers

Offload computation to background threads while keeping the UI responsive. Shows MessagePortChannel with React and Vite.

View Example →

Electron

Type-safe IPC between main and renderer processes in desktop apps. Demonstrates shared schemas across processes.

View Example →

Cloudflare Workers

HTTP-based commands with remote schema generation. Shows HTTPChannel for edge computing.

View Example →

AI Agent MCP

Expose commands as AI agent tools via tool calling. Easily integrate with Vercel AI SDK, OpenAI, Anthropic, and other frameworks.

View Example →