5 mismatches found
01Hono Client `hc` function mentioned in docs but not listed in main exports documentation
src/client/client.ts
mediumIn the code
export const hc<T extends Hono<any, any, any>, Prefix extends string = string> = (baseUrl: Prefix, options?: ClientRequestOptions) => … // src/client/client.ts L133
In the docs
And, the Validator and Hono Client `hc` enable the RPC mode. In RPC mode, you can use your favorite validator such as Zod and easily share server-side API specs with the client and build type-safe applications.
The documentation mentions the `hc` client function in the Developer Experience section but provides no usage examples, import path, or guidance on how to use it. This is a critical client-side tool for RPC mode that developers would need to import from 'hono/client' and its usage is underexplained relative to its importance.
Suggested fix
Add a code example in the DX or RPC mode section showing: `import { hc } from 'hono/client'` and basic usage like `const client = hc('http://api.example.com')` with explanation of how it enables type-safe client calls.
02JSX exports from hono/jsx not mentioned in main documentation
src/jsx/index.ts
mediumIn the code
export { jsx } // L36
export { memo } // L36
export { Fragment } // L36
export { ErrorBoundary } // L36
export { createContext } // L36
export { useState } // L36
export { useEffect } // L36
... and 25+ other React-like exports from src/jsx/index.ts
In the docs
[JSX](https://hono.dev/docs/guides/jsx)
The documentation mentions JSX in the middleware list with a link, but does not document the full set of React-like hooks and utilities exported from 'hono/jsx' (useState, useEffect, useCallback, useContext, useMemo, ErrorBoundary, etc.). Developers looking for React patterns in Hono would not know these are available without consulting the JSX guide separately.
Suggested fix
Ensure the JSX guide documentation comprehensively lists all exported hooks and components available from 'hono/jsx', including useState, useEffect, useCallback, useContext, useMemo, ErrorBoundary, Fragment, memo, and other React-compat APIs.
03Validator exports not explained in documentation
src/validator/index.ts
mediumIn the code
export { validator } from './validator' // src/validator/index.ts L6
export { ValidationFunction } from './validator' // L7
export { InferInput } from './utils' // L8
In the docs
And, the Validator and Hono Client `hc` enable the RPC mode. In RPC mode, you can use your favorite validator such as Zod and easily share server-side API specs with the client and build type-safe applications.
The documentation mentions 'Validator' in the context of RPC mode but does not explain how to import or use the `validator` middleware function, nor does it document the `ValidationFunction` type or `InferInput` utility that are exported from 'hono/validator'.
Suggested fix
Add a code example showing: `import { validator } from 'hono/validator'` and demonstrate basic usage with a schema validator (e.g., Zod), explaining how `ValidationFunction` and `InferInput` work.
04Adapter exports not documented in main features section
src/adapter/aws-lambda/index.ts
mediumIn the code
export { handle } from './handler' // src/adapter/aws-lambda/index.ts L6
export { streamHandle } from './handler' // L6
export { upgradeWebSocket } from './websocket' // src/adapter/bun/index.ts L8
export { getConnInfo } from './conninfo' // L10
... multiple adapter-specific exports across various adapters
In the docs
And by using [a Node.js adapter](https://github.com/honojs/node-server), Hono works on Node.js. See [more information about Web Standards](https://hono.dev/docs/concepts/web-standard).
The documentation lists platforms (Cloudflare Workers, Deno, Bun, AWS Lambda, etc.) in the Web Standards section but does not provide detailed export listings or usage examples for adapter-specific functions like `handle`, `streamHandle`, `upgradeWebSocket`, `getConnInfo`, `serveStatic`, or `toSSG`. Developers need to know what is available per adapter.
Suggested fix
Create or update adapter documentation pages (AWS Lambda, Bun, Deno, Cloudflare Pages/Workers, Lambda@Edge) to list their exported functions and types with brief descriptions and import paths (e.g., `import { handle } from 'hono/aws-lambda'`).
05parseResponse and DetailedError from hc not mentioned in docs
src/client/index.ts
mediumIn the code
export { parseResponse } from './utils' // src/client/index.ts L7
export { DetailedError } from './utils' // L7
In the docs
(not documented)
The Hono client exports `parseResponse` utility and `DetailedError` exception class for error handling in RPC mode, but these are not documented. Developers using the `hc` client would not know how to properly handle errors or parse responses.
Suggested fix
Document `parseResponse` and `DetailedError` in the Hono Client guide, explaining when and how to use each for error handling and response parsing.