Skip to content

Type-safe Hono API client that infers routes, inputs, and response types from the server's exported AppType.

CCM score
59 of 100
skills.sh installs
462
GitHub stars
79
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the hc client setup, route chaining for type export, and request patterns for params, query, JSON, form, and headers
  • Includes response inference via InferResponseType for status-code-aware types and InferRequestType for request shapes
  • Requires chaining all routes into one expression, since separate statements drop routes from AppType
  • Designed for full-stack TypeScript monorepos that want typed API access without OpenAPI or code generation

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill hono-rpc -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Hono RPC - Type-Safe Client

Overview

Hono RPC enables sharing API specifications between server and client through TypeScript's type system. Export your server's type, and the client automatically knows all routes, request shapes, and response types - no code generation required.

Key Features:

  • Zero-codegen type-safe client
  • Automatic TypeScript inference
  • Works with Zod validators
  • Status code-aware response types
  • Supports path params, query, headers

When to Use This Skill

Use Hono RPC when:

  • Building full-stack TypeScript applications
  • Need type-safe API consumption without OpenAPI/codegen
  • Want compile-time validation of API calls
  • Sharing types between client and server in monorepos

Basic Setup

Server Side

// server/index.ts
import { Hono } from 'hono'
import { zValidator } from '@hono/zod-validator'
import { z } from 'zod'

const app = new Hono()

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Categories
Backend & APIs, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the hono-rpc skill do?

The hono-rpc skill generates an end-to-end type-safe API client for Hono servers using the hc client and TypeScript inference. The client learns every route, request shape and response type from the server's exported AppType, with no code generation step. It also works with Zod validators and supports path params, query, headers and form data.

How do I install the hono-rpc skill?

Run npx -y skills add bobmatnyc/claude-mpm-skills --skill hono-rpc -y in a project to install it. Once installed, the agent can build a typed Hono client for your server routes.

Which other skills is hono-rpc grouped with in Backend & APIs?

hono-rpc sits in the Backend & APIs category on Claude Marketplaces, alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. Its distinct focus is type-safe client calls shared between a Hono server and a TypeScript client.

More from bobmatnyc/claude-mpm-skills

All 154

Similar to Hono Rpc

More Backend & APIs