hono

Build HTTP APIs and edge functions with the Hono web framework across JavaScript runtimes.

Updated Sep 17, 2026
One-click install
npx skills add https://github.com/bramanda48/skills --skill hono-bramanda48
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hono
Source: https://github.com/bramanda48/skills/tree/main/skills/hono
Command: npx skills add https://github.com/bramanda48/skills --skill hono-bramanda48

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building web servers and APIs that run consistently across Cloudflare Workers, Deno, Bun, Node.js, AWS Lambda, and other JavaScript runtimes requires learning each platform's quirks. This Skill provides complete guidance for Hono, a Web Standards-based framework where the same application code runs everywhere with only entry-point wiring differing. ## Core Features & Use Cases - Routing, Middleware & Context: Register routes with path params, wildcards, and regex; compose middleware with typed context variables; handle requests, responses, cookies, and errors via HTTPException and app.onError. - Type-Safe RPC & Validation: Share route types between server and client with hc(), validate requests with validator() or zValidator, and infer path params automatically from inline handlers. - JSX, Streaming & SSG: Render server-side JSX with layouts and Suspense streaming, stream SSE and WebSocket responses, and generate static sites with toSSG. - Use Case: Build a REST API on Cloudflare Workers with D1 bindings, typed via the Bindings generic, validated with zValidator, and consumed by a fully typed RPC client in a frontend app. ## Quick Start Use the hono skill to scaffold a Hono API with routing, middleware, and typed RPC for deployment on Cloudflare Workers.

Frequently Asked Questions about hono

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a type-safe API client with Hono RPC?

Export the chained route's typeof as AppType on the server, then create a client with hc<AppType>(baseUrl). The client gets full autocompletion for paths, methods, inputs, and typed responses without code generation.

How to validate request bodies in Hono?

Use the built-in validator() middleware with a target like 'json' or 'form', returning a Response to reject invalid input. For schema validation, use @hono/zod-validator or @hono/standard-validator, then read typed data via c.req.valid().

Does Hono work on Cloudflare Workers and Node.js?

Yes, the same Hono application code runs on Cloudflare Workers, Node.js, Deno, Bun, AWS Lambda, Vercel, and more. Only the entry point differs: export default app for Workers, or use @hono/node-server's serve() for Node.js.

Which Hono preset should I use: hono, hono/quick, or hono/tiny?

Use the default hono preset (SmartRouter with RegExpRouter) for long-running servers. Use hono/quick when the app re-initializes per request, and hono/tiny (under 14KB) when bundle size is the primary constraint on edge environments.

Why do my Hono path params lose type inference?

Path params are inferred only when handlers are defined inline on the route. Extracting handlers into separate controller functions breaks inference; use createFactory().createHandlers() to extract handlers while preserving types.

How do I handle errors globally in a Hono app?

Throw HTTPException with a status and message for expected errors, and register app.onError() as a catch-all that maps HTTPException to its response and returns a generic 500 otherwise. Do not wrap next() in try/catch since Hono routes thrown errors to onError.