Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Web framework built on Web Standards
Interface for context renderer.
Interface for context variable mapping.
Interface for the execution context in a web worker or similar environment.
The Hono class extends the functionality of the HonoBase class. It sets up routing and allows for custom options to be passed.
Match the accept header with the given options.
Accepts events from API Gateway/ELB(APIGatewayProxyEvent
) and directly through Function Url(APIGatewayProxyEventV2
)
Basic Auth Middleware for Hono.
Bearer Auth Middleware for Hono.
Body Limit Middleware for Hono.
Get ConnInfo with Bun
Cache Middleware for Hono.
Compress Middleware for Hono.
Helper type
Context Storage Middleware for Hono.
CORS Middleware for Hono.
CSRF Protection Middleware for Hono.
Get conninfo with Deno
ETag Middleware for Hono.
Default headers to pass through on 304 responses. From the spec:
HTTPException
must be used when a fatal error such as authentication failure occurs.
ip-restriction
IP Restriction Middleware for Hono
- Children
- ErrorBoundary
- Fragment
- StrictMode
- Suspense
- cloneElement
- createContext
- createElement
- createRef
- forwardRef
- isValidElement
- memo
- startTransition
- startViewTransition
- use
- useActionState
- useCallback
- useContext
- useDebugValue
- useDeferredValue
- useEffect
- useId
- useImperativeHandle
- useInsertionEffect
- useLayoutEffect
- useMemo
- useOptimistic
- useReducer
- useRef
- useState
- useSyncExternalStore
- useTransition
- useViewTransition
- version
This code is based on React. https://github.com/facebook/react MIT License Copyright (c) Meta Platforms, Inc. and affiliates.
- a
- abbr
- address
- area
- article
- aside
- audio
- b
- base
- bdi
- bdo
- big
- blockquote
- body
- br
- button
- canvas
- caption
- center
- cite
- code
- col
- colgroup
- data
- datalist
- dd
- del
- details
- dfn
- dialog
- div
- dl
- dt
- em
- embed
- fieldset
- figcaption
- figure
- footer
- form
- h1
- h2
- h3
- h4
- h5
- h6
- head
- header
- hgroup
- hr
- html
- i
- iframe
- img
- input
- ins
- kbd
- keygen
- label
- legend
- li
- link
- main
- map
- mark
- menu
- menuitem
- meta
- meter
- nav
- noscript
- object
- ol
- optgroup
- option
- output
- p
- param
- picture
- pre
- progress
- q
- rp
- rt
- ruby
- s
- samp
- script
- search
- section
- select
- slot
- small
- source
- span
- strong
- style
- sub
- summary
- sup
- table
- tbody
- td
- template
- textarea
- tfoot
- th
- thead
- time
- title
- tr
- track
- u
- ul
- var
- video
- wbr
React types
JSX Renderer Middleware for hono.
useRequestContext for Hono.
- Children
- ErrorBoundary
- Fragment
- StrictMode
- Suspense
- cloneElement
- createContext
- createElement
- createPortal
- createRef
- flushSync
- forwardRef
- isValidElement
- memo
- startTransition
- startViewTransition
- use
- useActionState
- useCallback
- useContext
- useDebugValue
- useDeferredValue
- useEffect
- useFormStatus
- useId
- useImperativeHandle
- useInsertionEffect
- useLayoutEffect
- useMemo
- useOptimistic
- useReducer
- useRef
- useState
- useSyncExternalStore
- useTransition
- useViewTransition
- version
React types
This hook returns the current state and a function to update the state by form action
This hook returns the current form status
This hook returns the current state and a function to update the state optimistically The current state is updated optimistically and then reverted to the original state when all actions are resolved
Create a root object for rendering
Create a root object and hydrate app to the target element. In hono/jsx/dom, hydrate is equivalent to render.
Render JSX element to readable stream.
Render JSX element to string.
JWK Auth Middleware for Hono.
Detects language from Accept-Language header
Detects language from URL path
Detects language from query parameter
Type for detector functions
Type-safe detector map
Language detector middleware factory
Validate and normalize language codes
Parse Accept-Language header values with quality scores
Validate detector options
Logger Middleware for Hono.
Method Override Middleware for Hono.
Powered By Middleware for Hono.
Pretty JSON Middleware for Hono.
Fetch API wrapper for proxy.
The parameters and return value are the same as for fetch
(except for the proxy-specific options).
Error message indicating that a route cannot be added because the matcher is already built.
Constant representing all HTTP methods in uppercase.
Constant representing all HTTP methods in lowercase.
Array of supported HTTP methods.
Type representing a map of parameter indices.
Type representing a map of parameters.
Type representing a stash of parameters.
Type representing the result of a route match.
Error class representing an unsupported path error.
Secure Headers Middleware for Hono.
This middleware is not directly used by the user. Create a wrapper specifying getContent()
by the environment such as Deno or Bun.
service-worker
Service Worker Adapter for Hono.
Adapter for Service Worker
Define SSG Route
Timeout Middleware for Hono.
Append trailing slash middleware for Hono.
Append a trailing slash to the URL if it doesn't have one. For example, /path/to/page
will be redirected to /path/to/page/
.
Trailing Slash Middleware for Hono.
Parse an Accept header into an array of objects with type, parameters, and quality score.
Get whether color change on terminal is enabled or disabled.
If NO_COLOR
environment variable is set, this function returns false
.
StringBuffer contains string and Promise alternately The length of the array will be odd, the odd numbered element will be a string, and the even numbered element will be a Promise. When concatenating into a single string, it must be processed from the tail.
If you want to use an unofficial status, use UnofficialStatusCode
.
UnofficialStatusCode
can be used to specify an unofficial status code.
utils/ipaddr
Utils for IP Addresses
Convert a binary representation of an IPv4 address to a string.
Convert IPv4 to Uint8Array
Convert a binary representation of an IPv6 address to a string.
Convert IPv6 to Uint8Array
Distinct Remote Addr
Expand IPv6 Address
Union types for BaseMime
Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
A simple extension of Simplify that will deeply traverse array elements.
String literal types with auto-completion
Merge paths.
Create a WebSocket adapter/helper
Upgrade WebSocket Type
ReadyState for WebSocket