hono

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

3|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/langgenius/due-date-hq-jwl --skill hono-langgenius
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hono
Source: https://github.com/langgenius/due-date-hq-jwl/tree/main/.agents/skills/hono
Command: npx skills add https://github.com/langgenius/due-date-hq-jwl --skill hono-langgenius

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building web APIs with Hono requires knowing its specific routing patterns, middleware system, validation approach, and runtime adapters. This Skill provides inline API reference knowledge so you can write correct Hono code without constantly consulting external documentation. ## Core Features & Use Cases - Routing and Middleware Reference: Covers path parameters, wildcards, route grouping with app.route() and basePath(), built-in middleware like CORS, JWT, and basic auth, plus custom middleware with createMiddleware. - Validation, JSX, and Streaming: Shows Zod and Valibot validator integration, JSX server-side rendering with hono/jsx, and streaming responses including Server-Sent Events. - Testing and Type-Safe Clients: Explains endpoint testing via npx hono request and app.request() without starting a server, plus building type-safe RPC clients with hc() and chained route exports. - Use Case: You are building a REST API on Cloudflare Workers. Use this Skill to scaffold routes with Zod validation, add JWT middleware, test endpoints with npx hono request, and export the app type for a type-safe frontend client. ## Quick Start Ask the AI to create a Hono API with a validated POST endpoint and show how to 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 npx workers-fetch instead since hono request does not support bindings.

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. Apply it as middleware on the route, then access typed data with c.req.valid('json') in the handler.

Does Hono support type-safe API clients?

Yes, Hono provides an RPC client via hc() from hono/client. Routes must be chained and the app type exported as AppType for type inference to work. The client then infers request and response types automatically.

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 instance 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 to react-jsx with jsxImportSource set to hono/jsx. Alternatively add the pragma comment /** @jsxImportSource hono/jsx */ at the top of the file.