cloudflare-hono

Community

Typed Cloudflare Worker Env bindings for Hono apps

Authormorgs32
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Wire Cloudflare Worker Env typings into Hono apps, enabling type-safe access to the worker runtime environment via typed Bindings.

Core Features & Use Cases

  • Type Env as Bindings in Hono routers to ensure correct access to env bindings.
  • Import Env from the generated worker-configuration.d.ts and use c.env in routes for compile-time type checks.
  • Improve autocomplete and safety in Cloudflare Workers + Hono projects.

Quick Start

  • Run wrangler types in apps/api to generate apps/api/worker-configuration.d.ts.
  • Import type { Env } from "../worker-configuration" and create a router with new Hono<{ Bindings: Env }>().
  • Access environment values via c.env.ZEROSPIN_DATABASE or other Env properties in route handlers.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cloudflare-hono
Download link: https://github.com/morgs32/skills/archive/main.zip#cloudflare-hono

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.