hono

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

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Divith123/Flamingo --skill hono-divith123
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: hono
Source: https://github.com/Divith123/Flamingo/tree/main/.agents/skills/hono
Command: npx skills add https://github.com/Divith123/Flamingo --skill hono-divith123

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 spinning up a live server. ## Core Features & Use Cases - Routing & Middleware Reference: Provides inline API knowledge for Hono routing patterns, route grouping, built-in middleware (CORS, JWT, auth, cache), and custom middleware creation. - Validation & Type-Safe RPC: Covers Zod and Valibot validators plus the Hono client (hc) for end-to-end type-safe API calls with chained route definitions. - Endpoint Testing Without a Server: Uses npx hono request and app.request() to test endpoints directly, including POST bodies, FormData, and mocked Cloudflare Workers bindings. - Use Case: When building a REST API with Hono on Bun or Cloudflare Workers, ask the AI to scaffold routes with Zod validation, add JWT middleware, and verify each endpoint with npx hono request 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 API endpoints without starting a server?▼

Use `npx hono request [file] -P /path` from the CLI or call `app.request('/path')` in code. Both use Hono's internal request handling, so no HTTP server is needed, and you can pass JSON bodies, FormData, and mock environment 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. Attach it as middleware to a route, then access typed data via c.req.valid('json'), 'query', 'form', or 'param'.

Does Hono work with Cloudflare Workers bindings like KV and D1?▼

Yes, Hono supports Cloudflare Workers bindings through c.env, typed via the Env generics on the Hono constructor. However, `hono request` does not support bindings, so use `workers-fetch` or pass mock bindings to app.request() when testing.

Why is my Hono RPC client not inferring route types?▼

Type inference fails when routes are not chained. Chain all route definitions into a single expression, export its type with `export type AppType = typeof route`, and pass it to hc<AppType>() on the client.

Can Hono run on Node.js and other runtimes?▼

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