hono

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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 slows development. This Skill provides inline Hono API knowledge plus CLI-based documentation search and endpoint testing so you can write correct Hono code without leaving your workflow. ## Core Features & Use Cases - Inline API Reference: Covers app construction, routing, context, request parsing, middleware, Zod/Valibot validation, JSX components, streaming/SSE, testing with app.request(), and the type-safe RPC client. - Documentation Search: Use npx hono search and npx hono docs to look up unfamiliar Hono APIs and middleware details on demand. - Request Testing: Use npx hono request or app.request() to test endpoints without starting an HTTP server. - Use Case: You are building a type-safe API backend and need to add validated POST routes, CORS middleware, and an RPC client export—this Skill gives you the exact patterns and type-chaining requirements to do it correctly. ## Quick Start Use the hono skill to create a Hono API with a validated POST /posts route, CORS middleware, and an exported AppType for the RPC client.

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 test Hono endpoints directly without starting an HTTP server. Pass a path and optional RequestInit object, for example await app.request('/posts', { method: 'POST', body: JSON.stringify(data) }), then assert on the response status and body.

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'.

Why is my Hono RPC client not type-safe?

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

Does Hono work on Node.js and Cloudflare Workers?

Hono runs on Cloudflare Workers, Deno, and Bun with the default export. For Node.js, use the @hono/node-server adapter and call serve(app). Note that hono request CLI testing does not support Cloudflare Workers bindings like KV or D1.

Why does Hono JSX fail to compile in my project?

Hono JSX requires files to use the .tsx extension and tsconfig configured with jsx: react-jsx and jsxImportSource: hono/jsx. Alternatively add the pragma /** @jsxImportSource hono/jsx */ at the top of the file.