Skip to content
Back to skills

Cloudflare Hono

ASecurity

Wire Cloudflare Workers Env typings into Hono apps. Use when working in Cloudflare Workers + Hono, when the user mentions wrangler types, worker-configuration.d.ts, or typing Bindings/Env in Hono.

  • 754 stars
  • 0 votes
  • 1 copy
  • 8 views
  • Added February 8, 2026
toolsapidatabase

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill cloudflare-hono --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloudflare Hono?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cloudflare Hono
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-cloudflare-hono/badge)](https://www.skillsdirectory.com/skills/majiayu000-cloudflare-hono)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cloudflare-hono
description: Wire Cloudflare Workers Env typings into Hono apps. Use when working in Cloudflare Workers + Hono, when the user mentions wrangler types, worker-configuration.d.ts, or typing Bindings/Env in Hono.
---

# Cloudflare Hono Env Typing

## Quick start

Use the Env type generated by `wrangler types` from `apps/api/worker-configuration.d.ts`, then pass it into Hono's generics.

```
import type { Env } from "../worker-configuration";
import { Hono } from "hono";

export const domainWorkersRouter = new Hono<{ Bindings: Env }>();
```

## Workflow

1. Generate or update typings:
   - Run `wrangler types` in `apps/api` (this creates/updates `apps/api/worker-configuration.d.ts`).
2. Import the Env type from `apps/api/worker-configuration.d.ts`:
   - `import type { Env } from "../worker-configuration";`
3. Thread Env into Hono:
   - `new Hono<{ Bindings: Env }>()`
4. Use typed bindings via `c.env`:
   - `const db = c.env.ZEROSPIN_DATABASE`

## Notes

- Keep the Env import as a type-only import.
- The `worker-configuration.d.ts` file is generated; do not hand-edit it.
- If the file path changes, update the import path in routes/modules accordingly.

## Example route snippet

```
import type { Env } from "../worker-configuration";
import { Hono } from "hono";

export const domainWorkersRouter = new Hono<{ Bindings: Env }>();

domainWorkersRouter.get("/", (c) => {
  const db = c.env.ZEROSPIN_DATABASE;
  return c.json({ ok: true, hasDb: Boolean(db) });
});
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.