hono

Build and test Hono web applications with routing, middleware, validation, and streaming.

Updated Jul 25, 2026
One-click install
npx skills add https://github.com/regisleandro/clara-financas --skill hono-regisleandro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hono
Source: https://github.com/regisleandro/clara-financas/tree/main/.agents/skills/hono
Command: npx skills add https://github.com/regisleandro/clara-financas --skill hono-regisleandro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building APIs with Hono requires knowing its specific routing syntax, middleware patterns, validation helpers, and runtime adapters. This Skill provides inline API reference knowledge and testing workflows so you can write correct Hono code without leaving your editor to search documentation. ## Core Features & Use Cases - Routing & Middleware Reference: Covers path parameters, wildcards, route grouping with app.route() and basePath(), plus built-in middleware like CORS, JWT, and basic auth. - Validation & Type-Safe RPC: Shows Zod and Valibot validator integration and the Hono Client (hc) pattern for end-to-end type inference between server and client. - Endpoint Testing Without a Server: Uses npx hono request and app.request() to test endpoints directly, with workers-fetch as a fallback for Cloudflare Workers bindings. - Use Case: You are scaffolding a REST API on Cloudflare Workers. Use this Skill to set up typed routes with Zod validation, add JWT middleware, and verify each endpoint with npx hono request before deploying. ## Quick Start Ask the AI to create a Hono API route with Zod validation and test it using npx hono request.

Frequently Asked Questions about hono

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

FAQPage Schema
How do I test Hono endpoints without starting a server?

Use npx hono request with the file path and route, such as npx hono request src/index.ts -P /api/users, or call app.request() directly in tests. For Cloudflare Workers bindings like KV or D1, use workers-fetch instead since hono request does not support them.

How do I add request validation to Hono routes?

Use zValidator from @hono/zod-validator with a Zod schema, or sValidator from @hono/standard-validator with Valibot. Pass the target (json, query, form, param) and schema, then access typed data with c.req.valid().

Why is my Hono RPC client not inferring route types?

Hono Client type inference requires routes to be chained in a single expression. Export the chained routes as export type AppType = typeof route, then pass that type to hc<AppType>() on the client.

Does Hono work on Node.js and Cloudflare Workers?

Yes, the default Hono export works on Cloudflare Workers, Deno, and Bun. For Node.js, import serve from @hono/node-server and pass your app to it.

How do I share data between Hono middleware and handlers?

Use c.set() in middleware to store request-scoped values and c.get() or c.var in handlers to retrieve them. For typed sharing of Env across app, middleware, and handlers, use createFactory from hono/factory.