hono

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

Updated Aug 3, 2026
One-click install
npx skills add https://github.com/Mark-Atef/Nebu --skill hono-mark-atef
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hono
Source: https://github.com/Mark-Atef/Nebu/tree/main/.agents/skills/hono
Command: npx skills add https://github.com/Mark-Atef/Nebu --skill hono-mark-atef

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building Hono web applications requires knowing its specific APIs for routing, middleware, validation, JSX rendering, and streaming, and developers often need to test endpoints without starting a server. ## Core Features & Use Cases - Routing & Middleware Reference: Provides inline API knowledge for Hono routing patterns, route grouping, built-in middleware (CORS, JWT, auth, caching), and custom middleware creation. - Validation & Type-Safe RPC: Covers Zod and Valibot validators plus the Hono RPC client pattern for end-to-end type safety between server and client. - Endpoint Testing Without a Server: Use npx hono request or app.request() to test endpoints directly, with workers-fetch as a fallback for Cloudflare Workers bindings. - Use Case: When building a REST API with Hono on Cloudflare Workers, use this Skill to scaffold routes with Zod validation, chain them for RPC type inference, and test each endpoint via the CLI before deployment. ## 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 [file] -P /path` from the CLI or call `app.request()` in code with a method, body, and headers. For Cloudflare Workers bindings like KV or D1, use `npx 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. Access the parsed, typed data in the handler via `c.req.valid("json")`.

Does Hono support type-safe API clients?

Yes, Hono provides an RPC client via `hc<AppType>()` from hono/client. Routes must be chained on the server and exported as `export type AppType = typeof routes` for the client to infer request and response types.

Can Hono run 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.

Why does Hono JSX fail to compile in my project?

Files using Hono JSX must have a `.tsx` extension, and tsconfig must set `jsx: "react-jsx"` with `jsxImportSource: "hono/jsx"`. Alternatively, add the pragma `/** @jsxImportSource hono/jsx */` at the top of the file.