hono-third-party

Integrate @hono third-party middleware packages into Hono applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Choosing and correctly wiring the right @hono/* middleware package for a Hono app is time-consuming, since the honojs/middleware monorepo spans dozens of packages across validation, auth, observability, servers, renderers, OpenAPI, transpilers, and utilities. ## Core Features & Use Cases - Middleware Selection Guidance: Maps integration needs to the correct @hono package, covering validators (Zod, Valibot, TypeBox, ArkType, Ajv, Typia, Effect, Conform, Standard Schema, TypeDriver), auth (Auth.js, Clerk, Firebase, OIDC, OAuth providers, Stytch, Cloudflare Access, sessions), and observability (OpenTelemetry, Prometheus, Sentry). - Server & Renderer Integration: Provides working setup patterns for GraphQL, tRPC, and MCP servers, plus React Renderer, Qwik City, and Inertia SSR integrations. - OpenAPI & Utilities: Covers Swagger UI/Editor, Zod OpenAPI route definitions, esbuild/Bun transpilers, event emitters, structured logging, UA blocking, Casbin authorization, tsyringe DI, and SSG plugins. - Use Case: When adding request validation to a Hono API, the skill directs you to @hono/zod-validator with the shared validator(target, schema, hook) contract and shows how to read validated data via c.req.valid('json'). ## Quick Start Ask the agent to add Zod-based request validation to a Hono route using the appropriate @hono middleware package.

Frequently Asked Questions about hono-third-party

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

FAQPage Schema
How do I add request validation to a Hono app?

Install a validator package such as @hono/zod-validator and apply it as middleware with the shared contract validator(target, schema, hook). Access validated data in the handler via c.req.valid('json') or the matching target like 'query' or 'param'.

Which Hono validator should I use: Zod, Valibot, or TypeBox?

Choose Zod for the widest ecosystem familiarity, Valibot for a modular tree-shakable build, and TypeBox when JSON Schema must be the source of truth. All share the same validator(target, schema, hook) signature, so switching libraries requires minimal changes.

How do I add authentication to a Hono API?

Pick the @hono package matching your provider: @hono/auth-js for Auth.js, @hono/clerk-auth for Clerk, @hono/firebase-auth for Firebase ID tokens, @hono/oidc-auth for OpenID Connect, or @hono/oauth-providers for social logins like Google and GitHub. Each injects the session into the Hono context.

Does Hono middleware work on Cloudflare Workers?

Yes, most @hono packages are edge-compatible, including Firebase Auth, Cloudflare Access, and the esbuild transpiler via its Wasm build. Some packages have runtime notes, such as OpenTelemetry metrics being limited on Workers and node-ws being deprecated in favor of @hono/node-server.

How do I generate OpenAPI docs from a Hono API?

Use @hono/zod-openapi's OpenAPIHono class with createRoute to define validated routes, then call app.doc('/doc', {...}) to serve the OpenAPI definition. Pair it with @hono/swagger-ui to render interactive documentation at a route like /ui.

When should I avoid @hono/bun-compress?

Avoid @hono/bun-compress because it is deprecated; Bun now supports CompressionStream natively. Replace it with Hono's built-in hono/compress middleware, which exposes the identical API with no other code changes required.