kb-rpc

Define TypeBox-validated RPC endpoints for kb server and renderer communication.

Updated May 8, 2026
One-click install
npx skills add https://github.com/roalcantara/kodexb --skill kb-rpc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kb-rpc
Source: https://github.com/roalcantara/kodexb/tree/main/.agents/skills/kb-rpc
Command: npx skills add https://github.com/roalcantara/kodexb --skill kb-rpc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires elysia, t, drizzle-typebox, @elysiajs/eden, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill facilitates reliable and secure remote procedure calls within the kb codebase, enabling efficient development and maintenance of cross-layer features.

Core Features & Use Cases

  • Define RPC Endpoints: Create server routes and corresponding client methods for the kb application's server and renderer.
  • Ensure Type Safety: Use TypeBox schemas for validation, reducing errors during data exchange.
  • Use Case: Developers can quickly implement a new API route for listing knowledge entries and invoke it seamlessly from the renderer for real-time updates.

Quick Start

Load this skill to set up the RPC server and client, enabling type-safe communication between the main process and renderer.

Frequently Asked Questions about kb-rpc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up type-safe RPC communication between an Electron main process and renderer?

You can achieve type-validated client-server communication by defining Elysia server routes and Eden client methods using TypeBox schemas. This validates data payloads and secures remote procedure calls between the main process and renderer.

How does TypeBox validation work for Elysia API routes?

TypeBox validation secures Elysia API routes by applying schema definitions to validate incoming and outgoing data payloads. This mechanism reduces data exchange errors by ensuring client-server communication strictly adheres to predefined TypeScript-compatible types.

Can I use drizzle-typebox to generate schemas for Elysia RPC endpoints?

Yes, drizzle-typebox integrates with Elysia RPC endpoints by generating TypeBox schemas from database definitions. This maintains strict type safety and validation from the database layer through to the client-server data exchange.

What's the best way to implement secure remote procedure calls in a desktop application?

Implementing secure remote procedure calls in a desktop application is best achieved using a type-validated IPC mechanism with Elysia and TypeBox. This approach streamlines API development by ensuring reliable, schema-validated data exchange between processes.

Does Eden client support type-safe integration with Elysia server routes?

Yes, the Eden client supports type-safe integration with Elysia server routes by automatically inferring TypeScript types from server definitions. This provides end-to-end type safety and validation for remote procedure calls without manual type syncing.