hono

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

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/Ahmed-Eldalatony/airbnb-clone-bench --skill hono-ahmed-eldalatony
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hono
Source: https://github.com/Ahmed-Eldalatony/airbnb-clone-bench/tree/main/.agents/skills/hono
Command: npx skills add https://github.com/Ahmed-Eldalatony/airbnb-clone-bench --skill hono-ahmed-eldalatony

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires hono, @hono/cli, @hono/zod-validator, @hono/standard-validator, @hono/node-server, zod, valibot.

What problem does it solve? Building Hono web applications requires knowing a wide API surface—routing patterns, middleware, validators, JSX rendering, streaming, and RPC clients—and looking up unfamiliar APIs or testing endpoints manually slows development. ## Core Features & Use Cases - Inline API Reference: Provides ready-to-use patterns for routing, context handling, middleware, Zod/Valibot validation, JSX components, streaming/SSE, and the type-safe Hono RPC client. - Documentation Lookup: Uses npx hono search and npx hono docs to find unfamiliar Hono APIs on demand. - Endpoint Testing: Tests routes without starting a server via npx hono request or app.request(). - Use Case: When adding a new authenticated POST endpoint with JSON validation to a Hono server, get the correct zValidator, middleware chaining, and typed RPC client code immediately. ## Quick Start Ask the assistant to create a Hono route with Zod validation and show how to test it with app.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 app.request() to send requests directly to your Hono app in tests, or run npx hono request with a file path, HTTP method, and JSON body. Both approaches return standard Response objects without binding a port.

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. Access the parsed, fully typed data in the handler via c.req.valid("json").

Does Hono support Cloudflare Workers bindings like KV and D1?

Yes, access bindings through c.env, such as c.env.KV or c.env.DATABASE, and define them via the Hono Env generics. Note that npx hono request does not support bindings, so use Wrangler when bindings are required.

Why is my Hono RPC client not type-safe?

Type inference fails when routes are not chained. Chain route definitions on the app, export the type with export type AppType = typeof routes, and pass it to hc<AppType>() on the client.

Can Hono render JSX on the server?

Yes, set jsxImportSource to hono/jsx in tsconfig and use .tsx files. Hono supports components, fragments, async components, and the jsxRenderer middleware for layouts, returned via c.html().