Skip to content
V2 has arrived! A lot has changed, so treat this as a fresh start.

BaseHonocordEnv

The BaseHonocordEnv interface defines the structure of the environment used by Honocord. It bridges Hono’s environment structure with Honocord’s internal variable needs.

export interface BaseHonocordEnv<TBindings extends Bindings = any, TVariables extends Variables = any> {
/**
* Bindings available in the environment (from the worker)
*/
Bindings: TBindings;
/**
* Variables available in the context (from Hono + Honocord)
*/
Variables: BaseVariables & TVariables;
}
  • Bindings: An object containing the environment bindings (like secrets, KV namespaces, etc.) provided by the deployment platform.
  • Variables: An object containing the variables stored in the context, including Honocord’s internal variables (autocomplete, command, modal, component) and your custom variables.